Skip to main content

role_members

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

Overview​

Namerole_members
TypeResource
Idovh.dbaas_logs.role_members

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
created_atstring (date-time)Membership creation (wire: createdAt)
notestringCustom note
usernamestringUsername on DBaaS Logs

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectrole_id, service_name, usernameReturns the role member. (Deprecated, will be removed)
listselectrole_id, service_namex_pagination_modeReturns the role members of the Logs Data Platform service. (Deprecated, will be removed)
createinsertrole_id, service_name, usernameAdds a member to the role. (Deprecated, will be removed)
updateupdaterole_id, service_name, usernameUpdates a member of the role. (Deprecated, will be removed)
deletedeleterole_id, service_name, usernameRemoves a member from the role. (Deprecated, will be removed)

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"}})
role_idstring (uuid)Role ID (wire: roleId)
service_namestringService name (wire: serviceName)
usernamestringUsername
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​

Returns the role member. (Deprecated, will be removed)

SELECT
created_at,
note,
username
FROM ovh.dbaas_logs.role_members
WHERE role_id = '{{ role_id }}' -- required
AND service_name = '{{ service_name }}' -- required
AND username = '{{ username }}' -- required
;

INSERT examples​

Adds a member to the role. (Deprecated, will be removed)

INSERT INTO ovh.dbaas_logs.role_members (
note,
username,
role_id,
service_name
)
SELECT
'{{ note }}',
'{{ username }}' /* required */,
'{{ role_id }}',
'{{ service_name }}'
RETURNING
alias_id,
dashboard_id,
encryption_key_id,
index_id,
input_id,
operation_id,
osd_id,
role_id,
stream_id,
subscription_id,
tenant_id,
token_id,
service_name,
created_at,
state,
updated_at
;

UPDATE examples​

Updates a member of the role. (Deprecated, will be removed)

UPDATE ovh.dbaas_logs.role_members
SET
note = '{{ note }}'
WHERE
role_id = '{{ role_id }}' --required
AND service_name = '{{ service_name }}' --required
AND username = '{{ username }}' --required
RETURNING
alias_id,
dashboard_id,
encryption_key_id,
index_id,
input_id,
operation_id,
osd_id,
role_id,
stream_id,
subscription_id,
tenant_id,
token_id,
service_name,
created_at,
state,
updated_at;

DELETE examples​

Removes a member from the role. (Deprecated, will be removed)

DELETE FROM ovh.dbaas_logs.role_members
WHERE role_id = '{{ role_id }}' --required
AND service_name = '{{ service_name }}' --required
AND username = '{{ username }}' --required
;