Skip to main content

reference_actions

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

Overview​

Namereference_actions
TypeResource
Idovh.iam.reference_actions

Fields​

The following fields are returned by SELECT queries:

Action that can be allowed or denied on a resource

NameDatatypeDescription
actionstringName of the action
categoriesarrayList of categories the action belongs to
descriptionstringDescription of the action
has_query_parametersbooleanWhether you can use the action with additional parameters (wire: hasQueryParameters)
resource_typestringResource type related to the action (wire: resourceType)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectx_pagination_cursor, x_pagination_size, resource_typeReturns the IAM actions that can be used in policies. Set resourceType to keep only the actions of given resource types.

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
resource_typearrayFilter actions for specific resource types (wire: resourceType)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the IAM actions that can be used in policies. Set resourceType to keep only the actions of given resource types.

SELECT
action,
categories,
description,
has_query_parameters,
resource_type
FROM ovh.iam.reference_actions
WHERE x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
AND resource_type = '{{ resource_type }}'
;