Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.datacatalog/v1beta1.getPolicyTag
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets a policy tag.
Using getPolicyTag
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 getPolicyTag(args: GetPolicyTagArgs, opts?: InvokeOptions): Promise<GetPolicyTagResult>
function getPolicyTagOutput(args: GetPolicyTagOutputArgs, opts?: InvokeOptions): Output<GetPolicyTagResult>
def get_policy_tag(location: Optional[str] = None,
policy_tag_id: Optional[str] = None,
project: Optional[str] = None,
taxonomy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyTagResult
def get_policy_tag_output(location: Optional[pulumi.Input[str]] = None,
policy_tag_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
taxonomy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyTagResult]
func LookupPolicyTag(ctx *Context, args *LookupPolicyTagArgs, opts ...InvokeOption) (*LookupPolicyTagResult, error)
func LookupPolicyTagOutput(ctx *Context, args *LookupPolicyTagOutputArgs, opts ...InvokeOption) LookupPolicyTagResultOutput
> Note: This function is named LookupPolicyTag
in the Go SDK.
public static class GetPolicyTag
{
public static Task<GetPolicyTagResult> InvokeAsync(GetPolicyTagArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyTagResult> Invoke(GetPolicyTagInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyTagResult> getPolicyTag(GetPolicyTagArgs args, InvokeOptions options)
public static Output<GetPolicyTagResult> getPolicyTag(GetPolicyTagArgs args, InvokeOptions options)
fn::invoke:
function: google-native:datacatalog/v1beta1:getPolicyTag
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Policy
Tag stringId - Taxonomy
Id string - Project string
- Location string
- Policy
Tag stringId - Taxonomy
Id string - Project string
- location String
- policy
Tag StringId - taxonomy
Id String - project String
- location string
- policy
Tag stringId - taxonomy
Id string - project string
- location str
- policy_
tag_ strid - taxonomy_
id str - project str
- location String
- policy
Tag StringId - taxonomy
Id String - project String
getPolicyTag Result
The following output properties are available:
- List<string>
- Resource names of child policy tags of this policy tag.
- Description string
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- Display
Name string - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- Name string
- Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
- Parent
Policy stringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- []string
- Resource names of child policy tags of this policy tag.
- Description string
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- Display
Name string - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- Name string
- Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
- Parent
Policy stringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- List<String>
- Resource names of child policy tags of this policy tag.
- description String
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- display
Name String - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- name String
- Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
- parent
Policy StringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- string[]
- Resource names of child policy tags of this policy tag.
- description string
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- display
Name string - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- name string
- Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
- parent
Policy stringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- Sequence[str]
- Resource names of child policy tags of this policy tag.
- description str
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- display_
name str - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- name str
- Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
- parent_
policy_ strtag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- List<String>
- Resource names of child policy tags of this policy tag.
- description String
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- display
Name String - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- name String
- Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
- parent
Policy StringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi