Skip to main content

Services

RPC methods exposed by this API.

ResourceAttributeService

MethodRequestResponseDescription
CreateResourceAttributeKeyCreateResourceAttributeKeyRequestCreateResourceAttributeKeyResponse
GetResourceAttributeKeyGetResourceAttributeKeyRequestGetResourceAttributeKeyResponse
ListResourceAttributeKeysListResourceAttributeKeysRequestListResourceAttributeKeysResponse
UpdateResourceAttributeKeyUpdateResourceAttributeKeyRequestUpdateResourceAttributeKeyResponse
CheckResourceAttributeKeyArchiveImpactCheckResourceAttributeKeyArchiveImpactRequestCheckResourceAttributeKeyArchiveImpactResponse
ArchiveResourceAttributeKeyArchiveResourceAttributeKeyRequestArchiveResourceAttributeKeyResponseArchives a resource_attribute key AND all its associated enum values AND all its associated resource-attributes.
UnarchiveResourceAttributeKeyUnarchiveResourceAttributeKeyRequestUnarchiveResourceAttributeKeyResponseUnarchives a resource_attribute key BUT NOT its associated enum values OR resource-attributes.
BatchArchiveResourceAttributeKeysBatchArchiveResourceAttributeKeysRequestBatchArchiveResourceAttributeKeysResponseArchives multiple resource_attribute keys AND all their associated enum values AND all their associated resource-attributes.
BatchUnarchiveResourceAttributeKeysBatchUnarchiveResourceAttributeKeysRequestBatchUnarchiveResourceAttributeKeysResponseUnarchives multiple resource_attribute keys BUT NOT their associated enum values OR resource-attributes.
CreateResourceAttributeEnumValueCreateResourceAttributeEnumValueRequestCreateResourceAttributeEnumValueResponse
GetResourceAttributeEnumValueGetResourceAttributeEnumValueRequestGetResourceAttributeEnumValueResponse
ListResourceAttributeEnumValuesListResourceAttributeEnumValuesRequestListResourceAttributeEnumValuesResponse
UpdateResourceAttributeEnumValueUpdateResourceAttributeEnumValueRequestUpdateResourceAttributeEnumValueResponse
ArchiveResourceAttributeEnumValueArchiveResourceAttributeEnumValueRequestArchiveResourceAttributeEnumValueResponseArchives an enum value and migrates all resource-attributes with that value to a replacement value.
UnarchiveResourceAttributeEnumValueUnarchiveResourceAttributeEnumValueRequestUnarchiveResourceAttributeEnumValueResponseUnarchives an enum value BUT DOES NOT migrate resource-attributes with a replacement value back to the original value.
BatchArchiveResourceAttributeEnumValuesBatchArchiveResourceAttributeEnumValuesRequestBatchArchiveResourceAttributeEnumValuesResponseArchives multiple enum values and migrates all resource-attributes with those values to their respective replacement values.
BatchUnarchiveResourceAttributeEnumValuesBatchUnarchiveResourceAttributeEnumValuesRequestBatchUnarchiveResourceAttributeEnumValuesResponseUnarchives multiple enum values BUT DOES NOT migrate resource-attributes with a replacement value back to the original value.
BatchCreateResourceAttributesBatchCreateResourceAttributesRequestBatchCreateResourceAttributesResponseCreates resource-attributes for multiple entities with the same key-value pair.
GetResourceAttributeGetResourceAttributeRequestGetResourceAttributeResponse
ListResourceAttributesListResourceAttributesRequestListResourceAttributesResponse
ListResourceAttributesByEntityListResourceAttributesByEntityRequestListResourceAttributesByEntityResponseLists all resource-attributes for a specific entity. Excludes archived by default.
BatchListResourceAttributesByEntityBatchListResourceAttributesByEntityRequestBatchListResourceAttributesByEntityResponseBatch lists all resource-attributes for multiple entities. Excludes archived by default.
ArchiveResourceAttributeArchiveResourceAttributeRequestArchiveResourceAttributeResponse
UnarchiveResourceAttributeUnarchiveResourceAttributeRequestUnarchiveResourceAttributeResponse
BatchArchiveResourceAttributesBatchArchiveResourceAttributesRequestBatchArchiveResourceAttributesResponseArchives multiple resource-attributes.
BatchUnarchiveResourceAttributesBatchUnarchiveResourceAttributesRequestBatchUnarchiveResourceAttributesResponseUnarchives multiple resource-attributes.

Messages

Data models used across requests/responses.

ArchiveResourceAttributeEnumValueRequest

FieldTypeLabelDescription
archived_enum_value_idstring
replacement_enum_value_idstringWhen the archived_enum_value_id is archived all resource-attributes that reference it will be migrated to the replacement_enum_value_id if provided. Otherwise, resource-attributes that reference it will be archived as well.

ArchiveResourceAttributeEnumValueResponse

FieldTypeLabelDescription
resource_attributes_migratedint32Total number of resource-attributes migrated or archived by this operation. When a replacement enum value is provided, this represents attributes migrated to the new value. When no replacement is provided, this represents attributes that were archived.

ArchiveResourceAttributeKeyRequest

FieldTypeLabelDescription
resource_attribute_key_idstring

ArchiveResourceAttributeKeyResponse

This message has no fields.

ArchiveResourceAttributeRequest

FieldTypeLabelDescription
resource_attribute_idstring

ArchiveResourceAttributeResponse

This message has no fields.

BatchArchiveResourceAttributeEnumValuesRequest

FieldTypeLabelDescription
archival_requestsBatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchivalrepeated

BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchival

FieldTypeLabelDescription
archived_enum_value_idstringThe enum value ID to archive.
replacement_enum_value_idstringWhen the archived_enum_value_id is archived all resource-attributes that reference it will be migrated to the replacement_enum_value_id if provided. Otherwise, resource-attributes that reference it will be archived as well.

BatchArchiveResourceAttributeEnumValuesResponse

FieldTypeLabelDescription
total_resource_attributes_migratedint32Total number of resource-attributes migrated or archived across all enum value operations. This includes both attributes migrated to replacement values and attributes archived without replacement.

BatchArchiveResourceAttributeKeysRequest

FieldTypeLabelDescription
resource_attribute_key_idsstringrepeated

BatchArchiveResourceAttributeKeysResponse

This message has no fields.

BatchArchiveResourceAttributesRequest

FieldTypeLabelDescription
resource_attribute_idsstringrepeated

BatchArchiveResourceAttributesResponse

This message has no fields.

BatchCreateResourceAttributesRequest

ResourceAttribute RPC messages
FieldTypeLabelDescription
resource_attribute_key_idstring
oneof value. resource_attribute_enum_value_idstringFor ENUM type: exactly one enum value ID.
oneof value. resource_attribute_enum_value_idsResourceAttributeEnumValueIdListFor SET_OF_ENUM type: one or more enum value IDs representing the complete desired set. Omitted enum values that are currently active for each entity+key will be archived.
oneof value. boolean_valuebool
oneof value. number_valueint64
entitiesResourceAttributeEntityIdentifierrepeated

BatchCreateResourceAttributesResponse

FieldTypeLabelDescription
resource_attributesResourceAttributerepeated

BatchListResourceAttributesByEntityRequest

FieldTypeLabelDescription
entitiesResourceAttributeEntityIdentifierrepeated
include_archivedboolWhether to include archived resource-attributes. Defaults to false.

BatchListResourceAttributesByEntityResponse

BatchListResourceAttributesByEntityResponse.EntityResourceAttributes

FieldTypeLabelDescription
entityResourceAttributeEntityIdentifierThe entity the attributes belong to
resource_attributesResourceAttributerepeatedAll resource-attributes for this entity

BatchUnarchiveResourceAttributeEnumValuesRequest

FieldTypeLabelDescription
resource_attribute_enum_value_idsstringrepeated

BatchUnarchiveResourceAttributeEnumValuesResponse

This message has no fields.

BatchUnarchiveResourceAttributeKeysRequest

FieldTypeLabelDescription
resource_attribute_key_idsstringrepeated

BatchUnarchiveResourceAttributeKeysResponse

This message has no fields.

BatchUnarchiveResourceAttributesRequest

FieldTypeLabelDescription
resource_attribute_idsstringrepeated

BatchUnarchiveResourceAttributesResponse

This message has no fields.

CheckResourceAttributeKeyArchiveImpactRequest

FieldTypeLabelDescription
resource_attribute_key_idstring

CheckResourceAttributeKeyArchiveImpactResponse

FieldTypeLabelDescription
active_resource_attribute_assignment_countint64The number of active resource attribute assignments that will be affected by archiving this key.

CreateResourceAttributeEnumValueRequest

ResourceAttribute Enum Value RPC messages
FieldTypeLabelDescription
resource_attribute_key_idstring
display_namestring
descriptionstring

CreateResourceAttributeEnumValueResponse

FieldTypeLabelDescription
resource_attribute_enum_valueResourceAttributeEnumValue

CreateResourceAttributeKeyRequest

ResourceAttribute Key RPC messages
FieldTypeLabelDescription
display_namestring
descriptionstring
typeResourceAttributeKeyType
initial_enum_valuesCreateResourceAttributeKeyRequest.InitialEnumValuerepeatedOptional initial enum values to create alongside the key. Only applicable for ENUM type keys.

CreateResourceAttributeKeyRequest.InitialEnumValue

Nested message for initial enum values in create requests.
FieldTypeLabelDescription
display_namestring
descriptionstring

CreateResourceAttributeKeyResponse

FieldTypeLabelDescription
resource_attribute_keyResourceAttributeKey
enum_valuesResourceAttributeEnumValuerepeatedThe enum values created alongside the key, if any were provided in the request.

GetResourceAttributeEnumValueRequest

FieldTypeLabelDescription
resource_attribute_enum_value_idstring

GetResourceAttributeEnumValueResponse

FieldTypeLabelDescription
resource_attribute_enum_valueResourceAttributeEnumValue

GetResourceAttributeKeyRequest

FieldTypeLabelDescription
resource_attribute_key_idstring

GetResourceAttributeKeyResponse

FieldTypeLabelDescription
resource_attribute_keyResourceAttributeKey

GetResourceAttributeRequest

FieldTypeLabelDescription
resource_attribute_idstring

GetResourceAttributeResponse

FieldTypeLabelDescription
resource_attributeResourceAttribute

ListResourceAttributeEnumValuesRequest

FieldTypeLabelDescription
resource_attribute_key_idstring
page_sizeuint32The maximum number of enum values to return. The service may return fewer than this value. If unspecified, at most 50 enum values will be returned. The maximum value is 100; values above 100 will be coerced to 100.
page_tokenstringA page token, received from a previous ListResourceAttributeEnumValues call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourceAttributeEnumValues must match the call that provided the page token.
filterstringA Common Expression Language (CEL) filter string. Available fields to filter by are resource_attribute_enum_value_id, name, description, created_by_user_id, modified_by_user_id, created_date, and modified_date. Archive state is controlled via the include_archived field below, not via filter. For further information about how to use CELs, please refer to this guide.
order_bystringHow to order the retrieved enum values. Formatted as a comma-separated string i.e. “FIELD_NAME[ desc],…”. Available fields to order_by are created_date, modified_date, and name. If left empty, items are ordered by created_date in descending order (newest-first). For more information about the format of this field, read this Example: “name,created_date desc”
include_archivedboolWhether to include archived enum values. Defaults to false.

ListResourceAttributeEnumValuesResponse

FieldTypeLabelDescription
resource_attribute_enum_valuesResourceAttributeEnumValuerepeated
next_page_tokenstring

ListResourceAttributeKeysRequest

FieldTypeLabelDescription
page_sizeuint32The maximum number of resource_attribute keys to return. The service may return fewer than this value. If unspecified, at most 50 resource_attribute keys will be returned. The maximum value is 100; values above 100 will be coerced to 100.
page_tokenstringA page token, received from a previous ListResourceAttributeKeys call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourceAttributeKeys must match the call that provided the page token.
filterstringA Common Expression Language (CEL) filter string. Available fields to filter by are resource_attribute_key_id, name, description, key_type, and created_date. Archive state is controlled via the include_archived field below, not via filter. For further information about how to use CELs, please refer to this guide.
order_bystringHow to order the retrieved resource_attribute keys. Formatted as a comma-separated string i.e. “FIELD_NAME[ desc],…”. Available fields to order_by are created_date, modified_date, and name. If left empty, items are ordered by created_date in descending order (newest-first). For more information about the format of this field, read this Example: “created_date desc,name”
include_archivedboolWhether to include archived resource_attribute keys. Defaults to false.

ListResourceAttributeKeysResponse

FieldTypeLabelDescription
resource_attribute_keysResourceAttributeKeyrepeated
next_page_tokenstring

ListResourceAttributesByEntityRequest

FieldTypeLabelDescription
entityResourceAttributeEntityIdentifier
include_archivedboolWhether to include archived resource-attributes. Defaults to false.
page_sizeuint32The maximum number of resource-attributes to return. The service may return fewer than this value. If unspecified, at most 50 resource-attributes will be returned. The maximum value is 100; values above 100 will be coerced to 100.
page_tokenstringA page token, received from a previous ListResourceAttributesByEntity call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourceAttributesByEntity must match the call that provided the page token.

ListResourceAttributesByEntityResponse

FieldTypeLabelDescription
resource_attributesResourceAttributerepeated
next_page_tokenstring

ListResourceAttributesRequest

FieldTypeLabelDescription
page_sizeuint32The maximum number of resource-attributes to return. The service may return fewer than this value. If unspecified, at most 50 resource-attributes will be returned. The maximum value is 100; values above 100 will be coerced to 100.
page_tokenstringA page token, received from a previous ListResourceAttributes call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourceAttributes must match the call that provided the page token.
filterstringA Common Expression Language (CEL) filter string. Available fields to filter by are resource_attribute_id, entity_id, entity_type, resource_attribute_key_id, resource_attribute_enum_value_id, boolean_value, number_value, created_by_user_id, and created_date. Archive state is controlled via the include_archived field below, not via filter. For further information about how to use CELs, please refer to this guide.
order_bystringHow to order the retrieved resource-attributes. Formatted as a comma-separated string i.e. “FIELD_NAME[ desc],…”. Available fields to order_by are created_date and entity.entity_id. If left empty, items are ordered by created_date in descending order (newest-first). For more information about the format of this field, read this Example: “entity.entity_id,created_date desc”
include_archivedboolWhether to include archived resource-attributes. Defaults to false.

ListResourceAttributesResponse

FieldTypeLabelDescription
resource_attributesResourceAttributerepeated
next_page_tokenstring

ResourceAttribute

Represents the assignment of a resource_attribute key-value pair to an entity (asset or channel).
FieldTypeLabelDescription
resource_attribute_idstring
organization_idstring
entityResourceAttributeEntityIdentifier
resource_attribute_key_idstring
keyResourceAttributeKeyPopulated in responses with full key details.
oneof value. resource_attribute_enum_value_idstring
oneof value. boolean_valuebool
oneof value. number_valueint64
enum_value_detailsResourceAttributeEnumValuePopulated in responses with full enum value details.
created_dategoogle.protobuf.TimestampThe timestamp when the relation between the Entity and ResourceAttribute Key and Value was created.
created_by_user_idstring
archived_dategoogle.protobuf.Timestamp
is_archivedboolWhether or not the resource attribute is archived. This is inferred from whether archived_date is set.

ResourceAttributeEntityIdentifier

Represents an entity to which a resource_attribute will be assigned.
FieldTypeLabelDescription
entity_idstring
entity_typeResourceAttributeEntityType

ResourceAttributeEnumValue

Represents a possible enumerable value for ENUM type resource_attribute keys. Users can add new enum values as needed.
FieldTypeLabelDescription
resource_attribute_enum_value_idstring
resource_attribute_key_idstring
display_namestring
descriptionstring
created_dategoogle.protobuf.Timestamp
created_by_user_idstring
modified_dategoogle.protobuf.Timestamp
modified_by_user_idstring
archived_dategoogle.protobuf.Timestamp
is_archivedboolWhether or not the enum value is archived. This is inferred from whether archived_date is set.

ResourceAttributeEnumValueIdList

FieldTypeLabelDescription
idsstringrepeated

ResourceAttributeKey

A ResourceAttribute Key defines an attribute that can be assigned to Entities for the purpose of attribute based access control (ABAC).
FieldTypeLabelDescription
resource_attribute_key_idstring
organization_idstring
display_namestring
descriptionstring
typeResourceAttributeKeyType
created_dategoogle.protobuf.Timestamp
created_by_user_idstring
modified_dategoogle.protobuf.Timestamp
modified_by_user_idstring
archived_dategoogle.protobuf.Timestamp
is_archivedboolWhether or not the key is archived. This is inferred from whether archived_date is set.

UnarchiveResourceAttributeEnumValueRequest

FieldTypeLabelDescription
resource_attribute_enum_value_idstring

UnarchiveResourceAttributeEnumValueResponse

This message has no fields.

UnarchiveResourceAttributeKeyRequest

FieldTypeLabelDescription
resource_attribute_key_idstring

UnarchiveResourceAttributeKeyResponse

This message has no fields.

UnarchiveResourceAttributeRequest

FieldTypeLabelDescription
resource_attribute_idstring

UnarchiveResourceAttributeResponse

This message has no fields.

UpdateResourceAttributeEnumValueRequest

FieldTypeLabelDescription
resource_attribute_enum_value_idstring
display_namestring
descriptionstring
update_maskgoogle.protobuf.FieldMaskThe list of fields to be updated. The fields available to be updated are description and archived_date.

UpdateResourceAttributeEnumValueResponse

FieldTypeLabelDescription
resource_attribute_enum_valueResourceAttributeEnumValue

UpdateResourceAttributeKeyRequest

FieldTypeLabelDescription
resource_attribute_key_idstring
display_namestring
descriptionstring
update_maskgoogle.protobuf.FieldMaskThe list of fields to be updated. The fields available to be updated are description and archived_date.

UpdateResourceAttributeKeyResponse

FieldTypeLabelDescription
resource_attribute_keyResourceAttributeKey

Enums

Allowed constant values used in message fields.

ResourceAttributeEntityType

NameNumberDescription
RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED0
RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET1
RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL2
RESOURCE_ATTRIBUTE_ENTITY_TYPE_RUN3

ResourceAttributeKeyType

Values become selectable enumerable options.
NameNumberDescription
RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED0
RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM1
RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN2
RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER3
RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM4