UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

93 lines (92 loc) 3.38 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * 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, 2025-04-01, 2025-05-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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getCacheRule(args: GetCacheRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetCacheRuleResult>; export interface GetCacheRuleArgs { /** * The name of the cache rule. */ cacheRuleName: string; /** * The name of the container registry. */ registryName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } /** * An object that represents a cache rule for a container registry. */ export interface GetCacheRuleResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The creation date of the cache rule. */ readonly creationDate: string; /** * The ARM resource ID of the credential store which is associated with the cache rule. */ readonly credentialSetResourceId?: string; /** * The resource ID. */ readonly id: string; /** * The name of the resource. */ readonly name: string; /** * Provisioning state of the resource. */ readonly provisioningState: string; /** * Source repository pulled from upstream. */ readonly sourceRepository?: string; /** * Metadata pertaining to creation and last modification of the resource. */ readonly systemData: outputs.containerregistry.SystemDataResponse; /** * Target repository specified in docker pull command. * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag} */ readonly targetRepository?: string; /** * The type of the resource. */ readonly type: string; } /** * 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, 2025-04-01, 2025-05-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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getCacheRuleOutput(args: GetCacheRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCacheRuleResult>; export interface GetCacheRuleOutputArgs { /** * The name of the cache rule. */ cacheRuleName: pulumi.Input<string>; /** * The name of the container registry. */ registryName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }