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

gcp.tags.getTagValue

Explore with Pulumi AI

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

    Get a tag value by parent key and short_name.

    Example Usage

    data "google_tags_tag_value" "environment_prod_tag_value"{
      parent = "tagKeys/56789"
      short_name = "production"
    }
    

    Using getTagValue

    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 getTagValue(args: GetTagValueArgs, opts?: InvokeOptions): Promise<GetTagValueResult>
    function getTagValueOutput(args: GetTagValueOutputArgs, opts?: InvokeOptions): Output<GetTagValueResult>
    def get_tag_value(parent: Optional[str] = None,
                      short_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetTagValueResult
    def get_tag_value_output(parent: Optional[pulumi.Input[str]] = None,
                      short_name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetTagValueResult]
    func LookupTagValue(ctx *Context, args *LookupTagValueArgs, opts ...InvokeOption) (*LookupTagValueResult, error)
    func LookupTagValueOutput(ctx *Context, args *LookupTagValueOutputArgs, opts ...InvokeOption) LookupTagValueResultOutput

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

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

    The following arguments are supported:

    Parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    ShortName string
    The tag value's short_name.
    Parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    ShortName string
    The tag value's short_name.
    parent String
    The resource name of the parent tagKey in format tagKey/{name}.
    shortName String
    The tag value's short_name.
    parent string
    The resource name of the parent tagKey in format tagKey/{name}.
    shortName string
    The tag value's short_name.
    parent str
    The resource name of the parent tagKey in format tagKey/{name}.
    short_name str
    The tag value's short_name.
    parent String
    The resource name of the parent tagKey in format tagKey/{name}.
    shortName String
    The tag value's short_name.

    getTagValue Result

    The following output properties are available:

    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
    Id string
    an identifier for the resource with format tagValues/{{name}}
    Name string
    The generated numeric id for the TagValue.
    NamespacedName string
    Namespaced name of the TagValue.
    Parent string
    ShortName string
    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
    Id string
    an identifier for the resource with format tagValues/{{name}}
    Name string
    The generated numeric id for the TagValue.
    NamespacedName string
    Namespaced name of the TagValue.
    Parent string
    ShortName string
    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
    id String
    an identifier for the resource with format tagValues/{{name}}
    name String
    The generated numeric id for the TagValue.
    namespacedName String
    Namespaced name of the TagValue.
    parent String
    shortName String
    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
    id string
    an identifier for the resource with format tagValues/{{name}}
    name string
    The generated numeric id for the TagValue.
    namespacedName string
    Namespaced name of the TagValue.
    parent string
    shortName string
    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
    id str
    an identifier for the resource with format tagValues/{{name}}
    name str
    The generated numeric id for the TagValue.
    namespaced_name str
    Namespaced name of the TagValue.
    parent str
    short_name str
    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
    id String
    an identifier for the resource with format tagValues/{{name}}
    name String
    The generated numeric id for the TagValue.
    namespacedName String
    Namespaced name of the TagValue.
    parent String
    shortName String
    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