We recommend using Azure Native.
azure.containerservice.TokenPassword
Explore with Pulumi AI
Manages a Container Registry Token Password.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resource-group
      location: West Europe
  exampleRegistry:
    type: azure:containerservice:Registry
    name: example
    properties:
      name: example-registry
      resourceGroupName: ${example.name}
      location: ${example.location}
      sku: Premium
      adminEnabled: false
      georeplicationLocations:
        - East US
        - West Europe
  exampleRegistryScopeMap:
    type: azure:containerservice:RegistryScopeMap
    name: example
    properties:
      name: example-scope-map
      containerRegistryName: ${exampleRegistry.name}
      resourceGroupName: ${example.name}
      actions:
        - repositories/repo1/content/read
        - repositories/repo1/content/write
  exampleRegistryToken:
    type: azure:containerservice:RegistryToken
    name: example
    properties:
      name: exampletoken
      containerRegistryName: ${exampleRegistry.name}
      resourceGroupName: ${example.name}
      scopeMapId: ${exampleRegistryScopeMap.id}
  exampleTokenPassword:
    type: azure:containerservice:TokenPassword
    name: example
    properties:
      containerRegistryTokenId: ${exampleRegistryToken.id}
      password1:
        expiry: 2023-03-22T17:57:36+08:00
Create TokenPassword Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TokenPassword(name: string, args: TokenPasswordArgs, opts?: CustomResourceOptions);@overload
def TokenPassword(resource_name: str,
                  args: TokenPasswordArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def TokenPassword(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  container_registry_token_id: Optional[str] = None,
                  password1: Optional[TokenPasswordPassword1Args] = None,
                  password2: Optional[TokenPasswordPassword2Args] = None)func NewTokenPassword(ctx *Context, name string, args TokenPasswordArgs, opts ...ResourceOption) (*TokenPassword, error)public TokenPassword(string name, TokenPasswordArgs args, CustomResourceOptions? opts = null)
public TokenPassword(String name, TokenPasswordArgs args)
public TokenPassword(String name, TokenPasswordArgs args, CustomResourceOptions options)
type: azure:containerservice:TokenPassword
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TokenPasswordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TokenPasswordArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TokenPasswordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TokenPasswordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TokenPasswordArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var tokenPasswordResource = new Azure.ContainerService.TokenPassword("tokenPasswordResource", new()
{
    ContainerRegistryTokenId = "string",
    Password1 = new Azure.ContainerService.Inputs.TokenPasswordPassword1Args
    {
        Expiry = "string",
        Value = "string",
    },
    Password2 = new Azure.ContainerService.Inputs.TokenPasswordPassword2Args
    {
        Expiry = "string",
        Value = "string",
    },
});
example, err := containerservice.NewTokenPassword(ctx, "tokenPasswordResource", &containerservice.TokenPasswordArgs{
	ContainerRegistryTokenId: pulumi.String("string"),
	Password1: &containerservice.TokenPasswordPassword1Args{
		Expiry: pulumi.String("string"),
		Value:  pulumi.String("string"),
	},
	Password2: &containerservice.TokenPasswordPassword2Args{
		Expiry: pulumi.String("string"),
		Value:  pulumi.String("string"),
	},
})
var tokenPasswordResource = new TokenPassword("tokenPasswordResource", TokenPasswordArgs.builder()
    .containerRegistryTokenId("string")
    .password1(TokenPasswordPassword1Args.builder()
        .expiry("string")
        .value("string")
        .build())
    .password2(TokenPasswordPassword2Args.builder()
        .expiry("string")
        .value("string")
        .build())
    .build());
token_password_resource = azure.containerservice.TokenPassword("tokenPasswordResource",
    container_registry_token_id="string",
    password1={
        "expiry": "string",
        "value": "string",
    },
    password2={
        "expiry": "string",
        "value": "string",
    })
const tokenPasswordResource = new azure.containerservice.TokenPassword("tokenPasswordResource", {
    containerRegistryTokenId: "string",
    password1: {
        expiry: "string",
        value: "string",
    },
    password2: {
        expiry: "string",
        value: "string",
    },
});
type: azure:containerservice:TokenPassword
properties:
    containerRegistryTokenId: string
    password1:
        expiry: string
        value: string
    password2:
        expiry: string
        value: string
TokenPassword Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TokenPassword resource accepts the following input properties:
- ContainerRegistry stringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- Password1
TokenPassword Password1 
- One passwordblock as defined below.
- Password2
TokenPassword Password2 
- One passwordblock as defined below.
- ContainerRegistry stringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- Password1
TokenPassword Password1Args 
- One passwordblock as defined below.
- Password2
TokenPassword Password2Args 
- One passwordblock as defined below.
- containerRegistry StringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- password1
TokenPassword Password1 
- One passwordblock as defined below.
- password2
TokenPassword Password2 
- One passwordblock as defined below.
- containerRegistry stringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- password1
TokenPassword Password1 
- One passwordblock as defined below.
- password2
TokenPassword Password2 
- One passwordblock as defined below.
- container_registry_ strtoken_ id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- password1
TokenPassword Password1Args 
- One passwordblock as defined below.
- password2
TokenPassword Password2Args 
- One passwordblock as defined below.
- containerRegistry StringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- password1 Property Map
- One passwordblock as defined below.
- password2 Property Map
- One passwordblock as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the TokenPassword resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TokenPassword Resource
Get an existing TokenPassword resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TokenPasswordState, opts?: CustomResourceOptions): TokenPassword@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        container_registry_token_id: Optional[str] = None,
        password1: Optional[TokenPasswordPassword1Args] = None,
        password2: Optional[TokenPasswordPassword2Args] = None) -> TokenPasswordfunc GetTokenPassword(ctx *Context, name string, id IDInput, state *TokenPasswordState, opts ...ResourceOption) (*TokenPassword, error)public static TokenPassword Get(string name, Input<string> id, TokenPasswordState? state, CustomResourceOptions? opts = null)public static TokenPassword get(String name, Output<String> id, TokenPasswordState state, CustomResourceOptions options)resources:  _:    type: azure:containerservice:TokenPassword    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- ContainerRegistry stringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- Password1
TokenPassword Password1 
- One passwordblock as defined below.
- Password2
TokenPassword Password2 
- One passwordblock as defined below.
- ContainerRegistry stringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- Password1
TokenPassword Password1Args 
- One passwordblock as defined below.
- Password2
TokenPassword Password2Args 
- One passwordblock as defined below.
- containerRegistry StringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- password1
TokenPassword Password1 
- One passwordblock as defined below.
- password2
TokenPassword Password2 
- One passwordblock as defined below.
- containerRegistry stringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- password1
TokenPassword Password1 
- One passwordblock as defined below.
- password2
TokenPassword Password2 
- One passwordblock as defined below.
- container_registry_ strtoken_ id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- password1
TokenPassword Password1Args 
- One passwordblock as defined below.
- password2
TokenPassword Password2Args 
- One passwordblock as defined below.
- containerRegistry StringToken Id 
- The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created.
- password1 Property Map
- One passwordblock as defined below.
- password2 Property Map
- One passwordblock as defined below.
Supporting Types
TokenPasswordPassword1, TokenPasswordPassword1Args      
TokenPasswordPassword2, TokenPasswordPassword2Args      
Import
Container Registry Token Passwords can be imported using the resource id, e.g.
$ pulumi import azure:containerservice/tokenPassword:TokenPassword example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/tokens/token1/passwords/password
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.