azure-native.containerregistry.getToken
Explore with Pulumi AI
Gets the properties of the specified token.
Uses Azure REST API version 2024-11-01-preview.
Other available API versions: 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview, 2022-12-01, 2023-01-01-preview, 2023-06-01-preview, 2023-07-01, 2023-08-01-preview, 2023-11-01-preview, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native containerregistry [ApiVersion]. See the version guide for details.
Using getToken
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getToken(args: GetTokenArgs, opts?: InvokeOptions): Promise<GetTokenResult>
function getTokenOutput(args: GetTokenOutputArgs, opts?: InvokeOptions): Output<GetTokenResult>def get_token(registry_name: Optional[str] = None,
              resource_group_name: Optional[str] = None,
              token_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetTokenResult
def get_token_output(registry_name: Optional[pulumi.Input[str]] = None,
              resource_group_name: Optional[pulumi.Input[str]] = None,
              token_name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetTokenResult]func LookupToken(ctx *Context, args *LookupTokenArgs, opts ...InvokeOption) (*LookupTokenResult, error)
func LookupTokenOutput(ctx *Context, args *LookupTokenOutputArgs, opts ...InvokeOption) LookupTokenResultOutput> Note: This function is named LookupToken in the Go SDK.
public static class GetToken 
{
    public static Task<GetTokenResult> InvokeAsync(GetTokenArgs args, InvokeOptions? opts = null)
    public static Output<GetTokenResult> Invoke(GetTokenInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTokenResult> getToken(GetTokenArgs args, InvokeOptions options)
public static Output<GetTokenResult> getToken(GetTokenArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:containerregistry:getToken
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Registry
Name string - The name of the container registry.
 - Resource
Group stringName  - The name of the resource group. The name is case insensitive.
 - Token
Name string - The name of the token.
 
- Registry
Name string - The name of the container registry.
 - Resource
Group stringName  - The name of the resource group. The name is case insensitive.
 - Token
Name string - The name of the token.
 
- registry
Name String - The name of the container registry.
 - resource
Group StringName  - The name of the resource group. The name is case insensitive.
 - token
Name String - The name of the token.
 
- registry
Name string - The name of the container registry.
 - resource
Group stringName  - The name of the resource group. The name is case insensitive.
 - token
Name string - The name of the token.
 
- registry_
name str - The name of the container registry.
 - resource_
group_ strname  - The name of the resource group. The name is case insensitive.
 - token_
name str - The name of the token.
 
- registry
Name String - The name of the container registry.
 - resource
Group StringName  - The name of the resource group. The name is case insensitive.
 - token
Name String - The name of the token.
 
getToken Result
The following output properties are available:
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Creation
Date string - The creation date of scope map.
 - Id string
 - The resource ID.
 - Name string
 - The name of the resource.
 - Provisioning
State string - Provisioning state of the resource.
 - System
Data Pulumi.Azure Native. Container Registry. Outputs. System Data Response  - Metadata pertaining to creation and last modification of the resource.
 - Type string
 - The type of the resource.
 - Credentials
Pulumi.
Azure Native. Container Registry. Outputs. Token Credentials Properties Response  - The credentials that can be used for authenticating the token.
 - Scope
Map stringId  - The resource ID of the scope map to which the token will be associated with.
 - Status string
 - The status of the token example enabled or disabled.
 
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Creation
Date string - The creation date of scope map.
 - Id string
 - The resource ID.
 - Name string
 - The name of the resource.
 - Provisioning
State string - Provisioning state of the resource.
 - System
Data SystemData Response  - Metadata pertaining to creation and last modification of the resource.
 - Type string
 - The type of the resource.
 - Credentials
Token
Credentials Properties Response  - The credentials that can be used for authenticating the token.
 - Scope
Map stringId  - The resource ID of the scope map to which the token will be associated with.
 - Status string
 - The status of the token example enabled or disabled.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - creation
Date String - The creation date of scope map.
 - id String
 - The resource ID.
 - name String
 - The name of the resource.
 - provisioning
State String - Provisioning state of the resource.
 - system
Data SystemData Response  - Metadata pertaining to creation and last modification of the resource.
 - type String
 - The type of the resource.
 - credentials
Token
Credentials Properties Response  - The credentials that can be used for authenticating the token.
 - scope
Map StringId  - The resource ID of the scope map to which the token will be associated with.
 - status String
 - The status of the token example enabled or disabled.
 
- azure
Api stringVersion  - The Azure API version of the resource.
 - creation
Date string - The creation date of scope map.
 - id string
 - The resource ID.
 - name string
 - The name of the resource.
 - provisioning
State string - Provisioning state of the resource.
 - system
Data SystemData Response  - Metadata pertaining to creation and last modification of the resource.
 - type string
 - The type of the resource.
 - credentials
Token
Credentials Properties Response  - The credentials that can be used for authenticating the token.
 - scope
Map stringId  - The resource ID of the scope map to which the token will be associated with.
 - status string
 - The status of the token example enabled or disabled.
 
- azure_
api_ strversion  - The Azure API version of the resource.
 - creation_
date str - The creation date of scope map.
 - id str
 - The resource ID.
 - name str
 - The name of the resource.
 - provisioning_
state str - Provisioning state of the resource.
 - system_
data SystemData Response  - Metadata pertaining to creation and last modification of the resource.
 - type str
 - The type of the resource.
 - credentials
Token
Credentials Properties Response  - The credentials that can be used for authenticating the token.
 - scope_
map_ strid  - The resource ID of the scope map to which the token will be associated with.
 - status str
 - The status of the token example enabled or disabled.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - creation
Date String - The creation date of scope map.
 - id String
 - The resource ID.
 - name String
 - The name of the resource.
 - provisioning
State String - Provisioning state of the resource.
 - system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
 - type String
 - The type of the resource.
 - credentials Property Map
 - The credentials that can be used for authenticating the token.
 - scope
Map StringId  - The resource ID of the scope map to which the token will be associated with.
 - status String
 - The status of the token example enabled or disabled.
 
Supporting Types
SystemDataResponse  
- Created
At string - The timestamp of resource creation (UTC).
 - Created
By string - The identity that created the resource.
 - Created
By stringType  - The type of identity that created the resource.
 - Last
Modified stringAt  - The timestamp of resource modification (UTC).
 - Last
Modified stringBy  - The identity that last modified the resource.
 - Last
Modified stringBy Type  - The type of identity that last modified the resource.
 
- Created
At string - The timestamp of resource creation (UTC).
 - Created
By string - The identity that created the resource.
 - Created
By stringType  - The type of identity that created the resource.
 - Last
Modified stringAt  - The timestamp of resource modification (UTC).
 - Last
Modified stringBy  - The identity that last modified the resource.
 - Last
Modified stringBy Type  - The type of identity that last modified the resource.
 
- created
At String - The timestamp of resource creation (UTC).
 - created
By String - The identity that created the resource.
 - created
By StringType  - The type of identity that created the resource.
 - last
Modified StringAt  - The timestamp of resource modification (UTC).
 - last
Modified StringBy  - The identity that last modified the resource.
 - last
Modified StringBy Type  - The type of identity that last modified the resource.
 
- created
At string - The timestamp of resource creation (UTC).
 - created
By string - The identity that created the resource.
 - created
By stringType  - The type of identity that created the resource.
 - last
Modified stringAt  - The timestamp of resource modification (UTC).
 - last
Modified stringBy  - The identity that last modified the resource.
 - last
Modified stringBy Type  - The type of identity that last modified the resource.
 
- created_
at str - The timestamp of resource creation (UTC).
 - created_
by str - The identity that created the resource.
 - created_
by_ strtype  - The type of identity that created the resource.
 - last_
modified_ strat  - The timestamp of resource modification (UTC).
 - last_
modified_ strby  - The identity that last modified the resource.
 - last_
modified_ strby_ type  - The type of identity that last modified the resource.
 
- created
At String - The timestamp of resource creation (UTC).
 - created
By String - The identity that created the resource.
 - created
By StringType  - The type of identity that created the resource.
 - last
Modified StringAt  - The timestamp of resource modification (UTC).
 - last
Modified StringBy  - The identity that last modified the resource.
 - last
Modified StringBy Type  - The type of identity that last modified the resource.
 
TokenCertificateResponse  
- Encoded
Pem stringCertificate  - Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
 - Expiry string
 - The expiry datetime of the certificate.
 - Name string
 - Thumbprint string
 - The thumbprint of the certificate.
 
- Encoded
Pem stringCertificate  - Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
 - Expiry string
 - The expiry datetime of the certificate.
 - Name string
 - Thumbprint string
 - The thumbprint of the certificate.
 
- encoded
Pem StringCertificate  - Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
 - expiry String
 - The expiry datetime of the certificate.
 - name String
 - thumbprint String
 - The thumbprint of the certificate.
 
- encoded
Pem stringCertificate  - Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
 - expiry string
 - The expiry datetime of the certificate.
 - name string
 - thumbprint string
 - The thumbprint of the certificate.
 
- encoded_
pem_ strcertificate  - Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
 - expiry str
 - The expiry datetime of the certificate.
 - name str
 - thumbprint str
 - The thumbprint of the certificate.
 
- encoded
Pem StringCertificate  - Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
 - expiry String
 - The expiry datetime of the certificate.
 - name String
 - thumbprint String
 - The thumbprint of the certificate.
 
TokenCredentialsPropertiesResponse   
TokenPasswordResponse  
- Value string
 - The password value.
 - Creation
Time string - The creation datetime of the password.
 - Expiry string
 - The expiry datetime of the password.
 - Name string
 - The password name "password1" or "password2"
 
- Value string
 - The password value.
 - Creation
Time string - The creation datetime of the password.
 - Expiry string
 - The expiry datetime of the password.
 - Name string
 - The password name "password1" or "password2"
 
- value String
 - The password value.
 - creation
Time String - The creation datetime of the password.
 - expiry String
 - The expiry datetime of the password.
 - name String
 - The password name "password1" or "password2"
 
- value string
 - The password value.
 - creation
Time string - The creation datetime of the password.
 - expiry string
 - The expiry datetime of the password.
 - name string
 - The password name "password1" or "password2"
 
- value str
 - The password value.
 - creation_
time str - The creation datetime of the password.
 - expiry str
 - The expiry datetime of the password.
 - name str
 - The password name "password1" or "password2"
 
- value String
 - The password value.
 - creation
Time String - The creation datetime of the password.
 - expiry String
 - The expiry datetime of the password.
 - name String
 - The password name "password1" or "password2"
 
Package Details
- Repository
 - Azure Native pulumi/pulumi-azure-native
 - License
 - Apache-2.0