Skip to main content

capabilities

Creates, updates, deletes, gets or lists a capabilities resource.

Overview

Namecapabilities
TypeResource
Idgoogle.cloudresourcemanager.capabilities

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Identifier. The resource name of the capability. Must be in the following form: * folders/{folder_id}/capabilities/{capability_name} For example, folders/123/capabilities/app-management Following are the allowed {capability_name} values: * app-management
valuebooleanRequired. The configured value of the capability at the given parent resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfoldersId, capabilitiesIdRetrieves the Capability identified by the supplied resource name.
patchupdatefoldersId, capabilitiesIdupdateMaskUpdates the Capability.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
capabilitiesIdstring
foldersIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Retrieves the Capability identified by the supplied resource name.

SELECT
name,
value
FROM google.cloudresourcemanager.capabilities
WHERE foldersId = '{{ foldersId }}' -- required
AND capabilitiesId = '{{ capabilitiesId }}' -- required;

UPDATE examples

Updates the Capability.

UPDATE google.cloudresourcemanager.capabilities
SET
data__name = '{{ name }}',
data__value = {{ value }}
WHERE
foldersId = '{{ foldersId }}' --required
AND capabilitiesId = '{{ capabilitiesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;