Cloud HSM
All operations require authentication.
List Cloud HSM servicesBeta
Returns the Cloud HSM services, each with its region and its partitions.
IAM actions
Query parameters
Filter resources on IAM tags
Headers
Pagination cursor
Pagination size
Response
Hash of targetSpec. Send it back in the body of a PUT request to detect concurrent updates.
Date the Cloud HSM service was created
Current state of the Cloud HSM service: its region, its partitions and its IP allowlist
IAM resource metadata
Unique identifier of the Cloud HSM service
Readiness of the Cloud HSM service. Partitions can be used only in READY status.
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGTarget specification of the Cloud HSM service, which holds its IP allowlist
Date of the last update of the Cloud HSM service. Null when it was never updated since its creation.
Reads your token from $OVH_TOKEN
$ curl https:/ / api.eu.ovhcloud.com/ v2/ cloudHSM/ resource \
-H "authorization: Bearer $OVH_TOKEN"[ { "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "ipAllowlist": [ { "cidr": "192.0.2.0/24", "description": "string" } ], "partitions": [ { "az": "string", "endpoint": "string", "id": "00000000-0000-0000-0000-000000000000", "model": "string", "region": "af-north-lz-rba", "vendor": "string" } ], "region": "af-north-lz-rba" }, "iam": { "displayName": "string", "id": "00000000-0000-0000-0000-000000000000", "state": "EXPIRED", "tags": { "key": "string" }, "urn": "string" }, "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "ipAllowlist": [ { "cidr": "192.0.2.0/24", "description": "string" } ] }, "updatedAt": "2024-01-01T12:00:00Z" }]
Get a Cloud HSM serviceBeta
Returns the Cloud HSM service, its region and its partitions, one per HSM appliance.
IAM actions
Path parameters
Cloud hsmid
Response
Hash of targetSpec. Send it back in the body of a PUT request to detect concurrent updates.
Date the Cloud HSM service was created
Current state of the Cloud HSM service: its region, its partitions and its IP allowlist
IAM resource metadata
Unique identifier of the Cloud HSM service
Readiness of the Cloud HSM service. Partitions can be used only in READY status.
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGTarget specification of the Cloud HSM service, which holds its IP allowlist
Date of the last update of the Cloud HSM service. Null when it was never updated since its creation.
Example uses cloudHSMId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ cloudHSM/ resource/ {cloudHSMId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "ipAllowlist": [ { "cidr": "192.0.2.0/24", "description": "string" } ], "partitions": [ { "az": "string", "endpoint": "string", "id": "00000000-0000-0000-0000-000000000000", "model": "string", "region": "af-north-lz-rba", "vendor": "string" } ], "region": "af-north-lz-rba" }, "iam": { "displayName": "string", "id": "00000000-0000-0000-0000-000000000000", "state": "EXPIRED", "tags": { "key": "string" }, "urn": "string" }, "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "ipAllowlist": [ { "cidr": "192.0.2.0/24", "description": "string" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Update a Cloud HSM serviceBeta
Replaces the target specification of the Cloud HSM service. Its only setting is the IP allowlist. This list holds the source IP ranges allowed to send KMIP (Key Management Interoperability Protocol) requests to the service.
The request is a full replacement. The ipAllowlist sent replaces the one currently set. To add a range, send the current list plus the new range. An empty list allows any IP.
The checksum protects your change against concurrent updates. To use it:
- Get the service. Keep its
checksumand itstargetSpec. - Send the new
targetSpecwith thatchecksum. - When the service changed since your read, the request is refused with a 412 (
ChecksumMismatch). Get the service again and redo your change.
When the checksum is omitted, the update is applied without this check, and it can overwrite a concurrent change.
The update is done when the response is sent. The response carries the new targetSpec and its new checksum. The ranges are returned as stored, in normalized form and sorted by address.
A new IP allowlist is enforced within 30 seconds, on new connections and on the connections already open.
The service must be in READY status.
IAM actions
Path parameters
Cloud hsmid
Request body (required)
Hash of targetSpec, as returned by the last read. The request is refused with a 412 when it differs from the current one. When omitted, the update is applied without this check.
New target specification of the Cloud HSM service. It replaces the current one.
Response
Hash of targetSpec. Send it back in the body of a PUT request to detect concurrent updates.
Date the Cloud HSM service was created
Current state of the Cloud HSM service: its region, its partitions and its IP allowlist
Unique identifier of the Cloud HSM service
Readiness of the Cloud HSM service. Partitions can be used only in READY status.
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGTarget specification of the Cloud HSM service, which holds its IP allowlist
Date of the last update of the Cloud HSM service. Null when it was never updated since its creation.
Example uses cloudHSMId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ cloudHSM/ resource/ {cloudHSMId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "ipAllowlist": [ { "cidr": "192.0.2.0/24", "description": "string" } ], "partitions": [ { "az": "string", "endpoint": "string", "id": "00000000-0000-0000-0000-000000000000", "model": "string", "region": "af-north-lz-rba", "vendor": "string" } ], "region": "af-north-lz-rba" }, "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "ipAllowlist": [ { "cidr": "192.0.2.0/24", "description": "string" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}