Viewing docs for Google Cloud v7.38.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Google Cloud v7.38.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 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)
public static Output<GetTagValueResult> getTagValue(GetTagValueArgs args, InvokeOptions options)
fn::invoke:
function: gcp:tags/getTagValue:getTagValue
arguments:
# arguments dictionaryThe following arguments are supported:
- parent str
- The resource name of the parent tagKey in format
tagKey/{name}. - short_
name str - The tag value's short_name.
getTagValue Result
The following output properties are available:
- Create
Time 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.
- Namespaced
Name string - Namespaced name of the TagValue.
- Parent string
- Short
Name string - Update
Time 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 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.
- Namespaced
Name string - Namespaced name of the TagValue.
- Parent string
- Short
Name string - Update
Time 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 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.
- namespaced
Name String - Namespaced name of the TagValue.
- parent String
- short
Name String - update
Time 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 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.
- namespaced
Name string - Namespaced name of the TagValue.
- parent string
- short
Name string - update
Time 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".
- create
Time 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.
- namespaced
Name String - Namespaced name of the TagValue.
- parent String
- short
Name String - update
Time 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-betaTerraform Provider.
Viewing docs for Google Cloud v7.38.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
