Return a list of effective tags for the given Google Cloud resource, as specified in parent
.
HTTP request
GET https://cloudresourcemanager.googleapis.com/v3/effectiveTags
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
parent |
Required. The full resource name of a resource for which you want to list the effective tags. E.g. "//cloudresourcemanager.googleapis.com/projects/123" |
pageSize |
Optional. The maximum number of effective tags to return in the response. The server allows a maximum of 300 effective tags to return in a single page. If unspecified, the server will use 100 as the default. |
pageToken |
Optional. A pagination token returned from a previous call to |
Request body
The request body must be empty.
Response body
The response of effectiveTags.list.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"effectiveTags": [
{
object ( |
Fields | |
---|---|
effectiveTags[] |
A possibly paginated list of effective tags for the specified resource. |
nextPageToken |
Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the When Pagination tokens have a limited lifetime. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only
For more information, see the Authentication Overview.
EffectiveTag
An EffectiveTag represents a tag that applies to a resource during policy evaluation. Tags can be either directly bound to a resource or inherited from its ancestor. EffectiveTag contains the name and namespacedName of the tag value and tag key, with additional fields of inherited
to indicate the inheritance status of the effective tag.
JSON representation |
---|
{ "tagValue": string, "namespacedTagValue": string, "tagKey": string, "namespacedTagKey": string, "tagKeyParentName": string, "inherited": boolean } |
Fields | |
---|---|
tagValue |
Resource name for TagValue in the format |
namespacedTagValue |
The namespaced name of the TagValue. Can be in the form |
tagKey |
The name of the TagKey, in the format |
namespacedTagKey |
The namespaced name of the TagKey. Can be in the form |
tagKeyParentName |
The parent name of the tag key. Must be in the format |
inherited |
Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource, inherited will be false. |