1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. tags
  5. getTagValues
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.tags.getTagValues

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Get tag values from a parent key.

    Example Usage

    data "google_tags_tag_values" "environment_tag_values"{
      parent = "tagKeys/56789"
    }
    

    Using getTagValues

    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 getTagValues(args: GetTagValuesArgs, opts?: InvokeOptions): Promise<GetTagValuesResult>
    function getTagValuesOutput(args: GetTagValuesOutputArgs, opts?: InvokeOptions): Output<GetTagValuesResult>
    def get_tag_values(parent: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetTagValuesResult
    def get_tag_values_output(parent: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetTagValuesResult]
    func GetTagValues(ctx *Context, args *GetTagValuesArgs, opts ...InvokeOption) (*GetTagValuesResult, error)
    func GetTagValuesOutput(ctx *Context, args *GetTagValuesOutputArgs, opts ...InvokeOption) GetTagValuesResultOutput

    > Note: This function is named GetTagValues in the Go SDK.

    public static class GetTagValues 
    {
        public static Task<GetTagValuesResult> InvokeAsync(GetTagValuesArgs args, InvokeOptions? opts = null)
        public static Output<GetTagValuesResult> Invoke(GetTagValuesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTagValuesResult> getTagValues(GetTagValuesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:tags/getTagValues:getTagValues
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    Parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    parent String
    The resource name of the parent tagKey in format tagKey/{name}.
    parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    parent str
    The resource name of the parent tagKey in format tagKey/{name}.
    parent String
    The resource name of the parent tagKey in format tagKey/{name}.

    getTagValues Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Parent string
    The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
    Values List<GetTagValuesValue>
    Id string
    The provider-assigned unique ID for this managed resource.
    Parent string
    The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
    Values []GetTagValuesValue
    id String
    The provider-assigned unique ID for this managed resource.
    parent String
    The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
    values List<GetTagValuesValue>
    id string
    The provider-assigned unique ID for this managed resource.
    parent string
    The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
    values GetTagValuesValue[]
    id str
    The provider-assigned unique ID for this managed resource.
    parent str
    The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
    values Sequence[GetTagValuesValue]
    id String
    The provider-assigned unique ID for this managed resource.
    parent String
    The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
    values List<Property Map>

    Supporting Types

    GetTagValuesValue

    CreateTime string
    Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Description string
    User-assigned description of the TagValue.
    Name string
    an identifier for the resource with format tagValues/{{name}}
    NamespacedName string
    Namespaced name of the TagValue.
    Parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    ShortName string
    User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
    UpdateTime string
    Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    CreateTime string
    Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Description string
    User-assigned description of the TagValue.
    Name string
    an identifier for the resource with format tagValues/{{name}}
    NamespacedName string
    Namespaced name of the TagValue.
    Parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    ShortName string
    User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
    UpdateTime string
    Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime String
    Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    description String
    User-assigned description of the TagValue.
    name String
    an identifier for the resource with format tagValues/{{name}}
    namespacedName String
    Namespaced name of the TagValue.
    parent String
    The resource name of the parent tagKey in format tagKey/{name}.
    shortName String
    User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
    updateTime String
    Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime string
    Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    description string
    User-assigned description of the TagValue.
    name string
    an identifier for the resource with format tagValues/{{name}}
    namespacedName string
    Namespaced name of the TagValue.
    parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    shortName string
    User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
    updateTime string
    Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    create_time str
    Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    description str
    User-assigned description of the TagValue.
    name str
    an identifier for the resource with format tagValues/{{name}}
    namespaced_name str
    Namespaced name of the TagValue.
    parent str
    The resource name of the parent tagKey in format tagKey/{name}.
    short_name str
    User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
    update_time str
    Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime String
    Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    description String
    User-assigned description of the TagValue.
    name String
    an identifier for the resource with format tagValues/{{name}}
    namespacedName String
    Namespaced name of the TagValue.
    parent String
    The resource name of the parent tagKey in format tagKey/{name}.
    shortName String
    User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
    updateTime String
    Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi