@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
109 lines • 3.91 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get information about Artifact Registry tags.
* See [the official documentation](https://cloud.google.com/artifact-registry/docs/overview)
* and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.packages.tags/list).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myTags = gcp.artifactregistry.getTags({
* location: "us-central1",
* repositoryId: "example-repo",
* packageName: "example-package",
* });
* ```
*/
export declare function getTags(args: GetTagsArgs, opts?: pulumi.InvokeOptions): Promise<GetTagsResult>;
/**
* A collection of arguments for invoking getTags.
*/
export interface GetTagsArgs {
/**
* An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are `name` and `version`. Further information can be found in the [REST API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.packages.tags/list#query-parameters).
*/
filter?: string;
/**
* The location of the Artifact Registry repository.
*/
location: string;
/**
* The name of the package.
*/
packageName: string;
/**
* The project ID in which the resource belongs. If it is not provided, the provider project is used.
*/
project?: string;
/**
* The last part of the repository name to fetch from.
*/
repositoryId: string;
}
/**
* A collection of values returned by getTags.
*/
export interface GetTagsResult {
readonly filter?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
readonly packageName: string;
readonly project?: string;
readonly repositoryId: string;
/**
* A list of all retrieved Artifact Registry tags. Structure is defined below.
*/
readonly tags: outputs.artifactregistry.GetTagsTag[];
}
/**
* Get information about Artifact Registry tags.
* See [the official documentation](https://cloud.google.com/artifact-registry/docs/overview)
* and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.packages.tags/list).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myTags = gcp.artifactregistry.getTags({
* location: "us-central1",
* repositoryId: "example-repo",
* packageName: "example-package",
* });
* ```
*/
export declare function getTagsOutput(args: GetTagsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagsResult>;
/**
* A collection of arguments for invoking getTags.
*/
export interface GetTagsOutputArgs {
/**
* An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are `name` and `version`. Further information can be found in the [REST API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.packages.tags/list#query-parameters).
*/
filter?: pulumi.Input<string | undefined>;
/**
* The location of the Artifact Registry repository.
*/
location: pulumi.Input<string>;
/**
* The name of the package.
*/
packageName: pulumi.Input<string>;
/**
* The project ID in which the resource belongs. If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* The last part of the repository name to fetch from.
*/
repositoryId: pulumi.Input<string>;
}
//# sourceMappingURL=getTags.d.ts.map