Skip to main content

identity_groups

Creates, updates, deletes, gets or lists an identity_groups resource.

Overview​

Nameidentity_groups
TypeResource
Idovh.me.identity_groups

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringGroup's name
creationstring (date-time)Creation date of this group
default_groupbooleanWhether it is a default group. This kind of group can't be edited or deleted (wire: defaultGroup)
descriptionstringGroup's description
last_updatestring (date-time)Last update of this group (wire: lastUpdate)
rolestringGroup's role (ADMIN, NONE, REGULAR, UNPRIVILEGED)
urnstringIAM identity URN of the group

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectgroupGet an IAM group
listselectx_pagination_modeRetrieve all IAM groups of this account
createinsertnameCreate a new IAM group
updateupdategroupAlter an IAM group
deletedeletegroupDelete an IAM group

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"}})
groupstringGroup
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get an IAM group

SELECT
name,
creation,
default_group,
description,
last_update,
role,
urn
FROM ovh.me.identity_groups
WHERE group = '{{ group }}' -- required
;

INSERT examples​

Create a new IAM group

INSERT INTO ovh.me.identity_groups (
description,
name,
role
)
SELECT
'{{ description }}',
'{{ name }}' /* required */,
'{{ role }}'
RETURNING
name,
creation,
default_group,
description,
last_update,
role,
urn
;

UPDATE examples​

Alter an IAM group

UPDATE ovh.me.identity_groups
SET
description = '{{ description }}',
role = '{{ role }}'
WHERE
group = '{{ group }}' --required;

DELETE examples​

Delete an IAM group

DELETE FROM ovh.me.identity_groups
WHERE group = '{{ group }}' --required
;