1. Packages
  2. Azure Classic
  3. API Docs
  4. containerservice
  5. TokenPassword

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.containerservice.TokenPassword

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    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

    The TokenPassword resource accepts the following input properties:

    ContainerRegistryTokenId string
    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 TokenPasswordPassword1
    One password block as defined below.
    Password2 TokenPasswordPassword2
    One password block as defined below.
    ContainerRegistryTokenId string
    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 TokenPasswordPassword1Args
    One password block as defined below.
    Password2 TokenPasswordPassword2Args
    One password block as defined below.
    containerRegistryTokenId String
    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 TokenPasswordPassword1
    One password block as defined below.
    password2 TokenPasswordPassword2
    One password block as defined below.
    containerRegistryTokenId string
    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 TokenPasswordPassword1
    One password block as defined below.
    password2 TokenPasswordPassword2
    One password block as defined below.
    container_registry_token_id str
    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 TokenPasswordPassword1Args
    One password block as defined below.
    password2 TokenPasswordPassword2Args
    One password block as defined below.
    containerRegistryTokenId String
    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 password block as defined below.
    password2 Property Map
    One password block 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) -> TokenPassword
    func 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    ContainerRegistryTokenId string
    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 TokenPasswordPassword1
    One password block as defined below.
    Password2 TokenPasswordPassword2
    One password block as defined below.
    ContainerRegistryTokenId string
    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 TokenPasswordPassword1Args
    One password block as defined below.
    Password2 TokenPasswordPassword2Args
    One password block as defined below.
    containerRegistryTokenId String
    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 TokenPasswordPassword1
    One password block as defined below.
    password2 TokenPasswordPassword2
    One password block as defined below.
    containerRegistryTokenId string
    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 TokenPasswordPassword1
    One password block as defined below.
    password2 TokenPasswordPassword2
    One password block as defined below.
    container_registry_token_id str
    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 TokenPasswordPassword1Args
    One password block as defined below.
    password2 TokenPasswordPassword2Args
    One password block as defined below.
    containerRegistryTokenId String
    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 password block as defined below.
    password2 Property Map
    One password block as defined below.

    Supporting Types

    TokenPasswordPassword1, TokenPasswordPassword1Args

    Expiry string
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    Value string
    The value of the password (Sensitive).
    Expiry string
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    Value string
    The value of the password (Sensitive).
    expiry String
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    value String
    The value of the password (Sensitive).
    expiry string
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    value string
    The value of the password (Sensitive).
    expiry str
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    value str
    The value of the password (Sensitive).
    expiry String
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    value String
    The value of the password (Sensitive).

    TokenPasswordPassword2, TokenPasswordPassword2Args

    Expiry string
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    Value string
    The value of the password (Sensitive).
    Expiry string
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    Value string
    The value of the password (Sensitive).
    expiry String
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    value String
    The value of the password (Sensitive).
    expiry string
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    value string
    The value of the password (Sensitive).
    expiry str
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    value str
    The value of the password (Sensitive).
    expiry String
    The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created.
    value String
    The value of the password (Sensitive).

    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi