azure-native.containerregistry.getCacheRule
Explore with Pulumi AI
Gets the properties of the specified cache rule resource.
Uses Azure REST API version 2024-11-01-preview.
Other available API versions: 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 getCacheRule
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 getCacheRule(args: GetCacheRuleArgs, opts?: InvokeOptions): Promise<GetCacheRuleResult>
function getCacheRuleOutput(args: GetCacheRuleOutputArgs, opts?: InvokeOptions): Output<GetCacheRuleResult>def get_cache_rule(cache_rule_name: Optional[str] = None,
                   registry_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetCacheRuleResult
def get_cache_rule_output(cache_rule_name: Optional[pulumi.Input[str]] = None,
                   registry_name: Optional[pulumi.Input[str]] = None,
                   resource_group_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetCacheRuleResult]func LookupCacheRule(ctx *Context, args *LookupCacheRuleArgs, opts ...InvokeOption) (*LookupCacheRuleResult, error)
func LookupCacheRuleOutput(ctx *Context, args *LookupCacheRuleOutputArgs, opts ...InvokeOption) LookupCacheRuleResultOutput> Note: This function is named LookupCacheRule in the Go SDK.
public static class GetCacheRule 
{
    public static Task<GetCacheRuleResult> InvokeAsync(GetCacheRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetCacheRuleResult> Invoke(GetCacheRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCacheRuleResult> getCacheRule(GetCacheRuleArgs args, InvokeOptions options)
public static Output<GetCacheRuleResult> getCacheRule(GetCacheRuleArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:containerregistry:getCacheRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Cache
Rule stringName  - The name of the cache rule.
 - Registry
Name string - The name of the container registry.
 - Resource
Group stringName  - The name of the resource group. The name is case insensitive.
 
- Cache
Rule stringName  - The name of the cache rule.
 - Registry
Name string - The name of the container registry.
 - Resource
Group stringName  - The name of the resource group. The name is case insensitive.
 
- cache
Rule StringName  - The name of the cache rule.
 - registry
Name String - The name of the container registry.
 - resource
Group StringName  - The name of the resource group. The name is case insensitive.
 
- cache
Rule stringName  - The name of the cache rule.
 - registry
Name string - The name of the container registry.
 - resource
Group stringName  - The name of the resource group. The name is case insensitive.
 
- cache_
rule_ strname  - The name of the cache rule.
 - registry_
name str - The name of the container registry.
 - resource_
group_ strname  - The name of the resource group. The name is case insensitive.
 
- cache
Rule StringName  - The name of the cache rule.
 - registry
Name String - The name of the container registry.
 - resource
Group StringName  - The name of the resource group. The name is case insensitive.
 
getCacheRule Result
The following output properties are available:
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Creation
Date string - The creation date of the cache rule.
 - 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.
 - Credential
Set stringResource Id  - The ARM resource ID of the credential store which is associated with the cache rule.
 - Source
Repository string - Source repository pulled from upstream.
 - Target
Repository string - Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
 
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Creation
Date string - The creation date of the cache rule.
 - 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.
 - Credential
Set stringResource Id  - The ARM resource ID of the credential store which is associated with the cache rule.
 - Source
Repository string - Source repository pulled from upstream.
 - Target
Repository string - Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - creation
Date String - The creation date of the cache rule.
 - 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.
 - credential
Set StringResource Id  - The ARM resource ID of the credential store which is associated with the cache rule.
 - source
Repository String - Source repository pulled from upstream.
 - target
Repository String - Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
 
- azure
Api stringVersion  - The Azure API version of the resource.
 - creation
Date string - The creation date of the cache rule.
 - 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.
 - credential
Set stringResource Id  - The ARM resource ID of the credential store which is associated with the cache rule.
 - source
Repository string - Source repository pulled from upstream.
 - target
Repository string - Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
 
- azure_
api_ strversion  - The Azure API version of the resource.
 - creation_
date str - The creation date of the cache rule.
 - 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.
 - credential_
set_ strresource_ id  - The ARM resource ID of the credential store which is associated with the cache rule.
 - source_
repository str - Source repository pulled from upstream.
 - target_
repository str - Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - creation
Date String - The creation date of the cache rule.
 - 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.
 - credential
Set StringResource Id  - The ARM resource ID of the credential store which is associated with the cache rule.
 - source
Repository String - Source repository pulled from upstream.
 - target
Repository String - Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
 
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.
 
Package Details
- Repository
 - Azure Native pulumi/pulumi-azure-native
 - License
 - Apache-2.0