Skip to main content

reference_service_keys

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

Overview​

Namereference_service_keys
TypeResource
Idovh.okms.reference_service_keys

Fields​

The following fields are returned by SELECT queries:

Service key type, size, curve, operations and protectionLevel combination

NameDatatypeDescription
curvesarrayAllowed service key curves for type
defaultbooleanIs default service key type?
operationsarrayAllowed service key operations for type
protection_levelarrayAllowed protection level for type (wire: protectionLevel)
sizesarrayAllowed service key sizes for type
typestringService key type (EC, RSA, oct)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregionx_pagination_cursor, x_pagination_sizeReturns the valid combinations of key type, size, curve, operations and protection level for a region. Use it before creating or importing a service key.

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"}})
regionstringOKMS Region
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the valid combinations of key type, size, curve, operations and protection level for a region. Use it before creating or importing a service key.

SELECT
curves,
default,
operations,
protection_level,
sizes,
type
FROM ovh.okms.reference_service_keys
WHERE region = '{{ region }}' -- required
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
;