Credentials
All operations require authentication.
List access credentialsProduction
Returns the access credentials of the service, with their identity, status and expiry. Private keys are never returned.
Path parameters
Okms ID
Headers
Pagination cursor
Pagination size
Response
Certificate PEM of the credential
Type of the certificate (ECDSA or RSA)
ECDSARSACreation time of the credential
Description of the credential
Expiration time of the credential
Is the credential generated from CSR
Unique identifier of the credential
List of identity URNs associated with the credential
Name of the credential
Status of the credential
CREATINGDELETINGERROREXPIREDREADYExample uses okmsId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ okms/ resource/ {okmsId}/ credential \
-H "authorization: Bearer $OVH_TOKEN"[ { "certificatePEM": "string", "certificateType": "ECDSA", "createdAt": "2024-01-01T12:00:00Z", "description": "string", "expiredAt": "2024-01-01T12:00:00Z", "fromCSR": true, "id": "00000000-0000-0000-0000-000000000000", "identityURNs": [ "string" ], "name": "string", "status": "CREATING" }]
Create an access credentialProduction
Issues a certificate-based access credential bound to the given identity URNs.
With a CSR, only the signed certificate is produced. Without one, a key pair is generated and the private key is returned in this response only. It can never be retrieved afterward.
Path parameters
Okms ID
Request body (required)
Type of the certificate (ECDSA or RSA, incompatible with CSR)
ECDSARSAValid Certificate Signing Request
Description of the credential. At most 200.
List of identity URNs associated with the credential. At most 25.
Name of the credential. At most 50.
Validity in days (default 365, max 365)
Response
Type of the certificate (ECDSA or RSA)
ECDSARSACreation time of the credential
Description of the credential
Expiration time of the credential
Is the credential generated from CSR
Unique identifier of the credential
List of identity URNs associated with the credential
Name of the credential
Private Key PEM of the credential if no CSR is provided (cannot be retrieve later)
Status of the credential
CREATINGDELETINGERROREXPIREDREADYExample uses okmsId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ okms/ resource/ {okmsId}/ credential \
-H "authorization: Bearer $OVH_TOKEN"{ "certificateType": "ECDSA", "createdAt": "2024-01-01T12:00:00Z", "description": "string", "expiredAt": "2024-01-01T12:00:00Z", "fromCSR": true, "id": "00000000-0000-0000-0000-000000000000", "identityURNs": [ "string" ], "name": "string", "privateKeyPEM": "string", "status": "CREATING"}
Get an access credentialProduction
Returns the metadata and certificate of an access credential. The private key is returned only when the credential is created and can never be retrieved afterward.
Path parameters
Credential ID
Okms ID
Response
Certificate PEM of the credential
Type of the certificate (ECDSA or RSA)
ECDSARSACreation time of the credential
Description of the credential
Expiration time of the credential
Is the credential generated from CSR
Unique identifier of the credential
List of identity URNs associated with the credential
Name of the credential
Status of the credential
CREATINGDELETINGERROREXPIREDREADYExample uses credentialId = 00000000-0000-0000-0000-000000000000, okmsId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ okms/ resource/ {okmsId}/ credential/ {credentialId} \
-H "authorization: Bearer $OVH_TOKEN"{ "certificatePEM": "string", "certificateType": "ECDSA", "createdAt": "2024-01-01T12:00:00Z", "description": "string", "expiredAt": "2024-01-01T12:00:00Z", "fromCSR": true, "id": "00000000-0000-0000-0000-000000000000", "identityURNs": [ "string" ], "name": "string", "status": "CREATING"}
Delete an access credentialProduction
Revokes the credential and removes it. It can no longer be used to authenticate to the KMS.
Path parameters
Credential ID
Okms ID
Response
Certificate PEM of the credential
Type of the certificate (ECDSA or RSA)
ECDSARSACreation time of the credential
Description of the credential
Expiration time of the credential
Is the credential generated from CSR
Unique identifier of the credential
List of identity URNs associated with the credential
Name of the credential
Status of the credential
CREATINGDELETINGERROREXPIREDREADYExample uses credentialId = 00000000-0000-0000-0000-000000000000, okmsId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ okms/ resource/ {okmsId}/ credential/ {credentialId} \
-H "authorization: Bearer $OVH_TOKEN"{ "certificatePEM": "string", "certificateType": "ECDSA", "createdAt": "2024-01-01T12:00:00Z", "description": "string", "expiredAt": "2024-01-01T12:00:00Z", "fromCSR": true, "id": "00000000-0000-0000-0000-000000000000", "identityURNs": [ "string" ], "name": "string", "status": "CREATING"}