We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.containerservice.getRegistryCacheRule
Explore with Pulumi AI
Use this data source to access information about an existing Container Registry Cache Rule.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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}
Using getRegistryCacheRule
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 getRegistryCacheRule(args: GetRegistryCacheRuleArgs, opts?: InvokeOptions): Promise<GetRegistryCacheRuleResult>
function getRegistryCacheRuleOutput(args: GetRegistryCacheRuleOutputArgs, opts?: InvokeOptions): Output<GetRegistryCacheRuleResult>
def get_registry_cache_rule(container_registry_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegistryCacheRuleResult
def get_registry_cache_rule_output(container_registry_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegistryCacheRuleResult]
func LookupRegistryCacheRule(ctx *Context, args *LookupRegistryCacheRuleArgs, opts ...InvokeOption) (*LookupRegistryCacheRuleResult, error)
func LookupRegistryCacheRuleOutput(ctx *Context, args *LookupRegistryCacheRuleOutputArgs, opts ...InvokeOption) LookupRegistryCacheRuleResultOutput
> Note: This function is named LookupRegistryCacheRule
in the Go SDK.
public static class GetRegistryCacheRule
{
public static Task<GetRegistryCacheRuleResult> InvokeAsync(GetRegistryCacheRuleArgs args, InvokeOptions? opts = null)
public static Output<GetRegistryCacheRuleResult> Invoke(GetRegistryCacheRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegistryCacheRuleResult> getRegistryCacheRule(GetRegistryCacheRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:containerservice/getRegistryCacheRule:getRegistryCacheRule
arguments:
# arguments dictionary
The following arguments are supported:
- Container
Registry stringId - The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- Container
Registry stringId - The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- container
Registry StringId - The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- container
Registry stringId - The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- container_
registry_ strid - The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- container
Registry StringId - The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
getRegistryCacheRule Result
The following output properties are available:
- Container
Registry stringId - Credential
Set stringId - The ARM resource ID of the credential store which is associated with the cache rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Source
Repo string - The name of the source repository path.
- Target
Repo string - The name of the new repository path to store artifacts.
- Container
Registry stringId - Credential
Set stringId - The ARM resource ID of the credential store which is associated with the cache rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Source
Repo string - The name of the source repository path.
- Target
Repo string - The name of the new repository path to store artifacts.
- container
Registry StringId - credential
Set StringId - The ARM resource ID of the credential store which is associated with the cache rule.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- source
Repo String - The name of the source repository path.
- target
Repo String - The name of the new repository path to store artifacts.
- container
Registry stringId - credential
Set stringId - The ARM resource ID of the credential store which is associated with the cache rule.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- source
Repo string - The name of the source repository path.
- target
Repo string - The name of the new repository path to store artifacts.
- container_
registry_ strid - credential_
set_ strid - The ARM resource ID of the credential store which is associated with the cache rule.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- source_
repo str - The name of the source repository path.
- target_
repo str - The name of the new repository path to store artifacts.
- container
Registry StringId - credential
Set StringId - The ARM resource ID of the credential store which is associated with the cache rule.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- source
Repo String - The name of the source repository path.
- target
Repo String - The name of the new repository path to store artifacts.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.