authorization_checks
Creates, updates, deletes, gets or lists an authorization_checks resource.
Overview​
| Name | authorization_checks |
| Type | Resource |
| Id | ovh.iam.authorization_checks |
Fields​
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create | insert | actions, resource_urns | x_pagination_cursor, x_pagination_size | Checks the listed actions against each resourceURN.<br />Returns, per resource, which actions are authorized and which are not. |
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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
x_pagination_cursor | string | Pagination cursor (wire: X-Pagination-Cursor) |
x_pagination_size | integer | Pagination size (wire: X-Pagination-Size) |
INSERT examples​
- create
- Manifest
Checks the listed actions against each resourceURN.<br />Returns, per resource, which actions are authorized and which are not.
INSERT INTO ovh.iam.authorization_checks (
actions,
resource_urns,
x_pagination_cursor,
x_pagination_size
)
SELECT
'{{ actions }}' /* required */,
'{{ resource_urns }}' /* required */,
'{{ x_pagination_cursor }}',
'{{ x_pagination_size }}'
RETURNING
authorized_actions,
resource_urn,
unauthorized_actions
;
# Description fields are for documentation purposes
- name: authorization_checks
props:
- name: actions
value:
- "{{ actions }}"
description: |
List of actions to check authorizations for
- name: resource_urns
value:
- "{{ resource_urns }}"
description: |
Resources on which accesses should be checked
- name: x_pagination_cursor
value: "{{ x_pagination_cursor }}"
description: Pagination cursor
description: Pagination cursor
- name: x_pagination_size
value: {{ x_pagination_size }}
description: Pagination size
description: Pagination size