getRegistryCacheRule

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

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.containerservice.ContainerserviceFunctions;
import com.pulumi.azure.containerservice.inputs.GetRegistryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = ContainerserviceFunctions.getRegistry(GetRegistryArgs.builder()
.name("testacr")
.containerRegistryId("test")
.build());
ctx.export("cacheRuleSourceRepo", exampleAzurermContainerRegistryCacheRule.sourceRepo());
}
}
variables:
example:
fn::invoke:
function: azure:containerservice:getRegistry
arguments:
name: testacr
containerRegistryId: test
outputs:
cacheRuleSourceRepo: ${exampleAzurermContainerRegistryCacheRule.sourceRepo}

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