getRegistryCacheRule

Use this data source to access information about an existing Container Registry Cache Rule.

Example Usage

variables:
example:
fn::invoke:
function: azure:containerservice:getRegistry
arguments:
name: testacr
containerRegistryId: test
outputs:
cacheRuleSourceRepo: ${exampleAzurermContainerRegistryCacheRule.sourceRepo}

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.ContainerRegistry: 2023-07-01

Return

A collection of values returned by getRegistryCacheRule.

Parameters

argument

A collection of arguments for invoking getRegistryCacheRule.


suspend fun getRegistryCacheRule(containerRegistryId: String, name: String): GetRegistryCacheRuleResult

Return

A collection of values returned by getRegistryCacheRule.

Parameters

containerRegistryId

The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created.

name

Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.

See also


Return

A collection of values returned by getRegistryCacheRule.

Parameters

argument

Builder for com.pulumi.azure.containerservice.kotlin.inputs.GetRegistryCacheRulePlainArgs.

See also