IDrive® Compute provides secure storage, provisioning and management of secret data such as SSH keys via OpenStack Barbican service. You need to create SSH keys for your account and the same can be selected during instance creation for secure access to the instance.
List of SSH-keys
GET |
https://key-manager.api.idrivecompute.io/v1/secrets |
Authorizations |
X-Auth-Token |
Request Samples
curl -H "X-Auth-Token: ${TOKEN}" \ -X GET \ https://key-manager.api.idrivecompute.io/v1/secrets
Response Samples
{ "secrets": [ { "status": "ACTIVE", "secret_type": "opaque", "updated": "2021-07-01T23:00:24", "name": "john smith", "algorithm": "aes", "created": "2021-07-01T23:00:24", "secret_ref": "https://key-manager.api.idrivecompute.io/v1/secrets/ 11a6ba47-be35-4987-a4d7-73143a45729d", "content_types": { "default": "text/plain" }, "creator_id": "e28a6c3017d64ea0bcc7f02d30927f91", "mode": "cbs", "bit_length": 256, "expiration": null }, { "status": "ACTIVE", "secret_type": "opaque", "updated": "2021-11-18T08:46:57", "name": "john_smith", "algorithm": "aes", "created": "2021-11-18T08:46:57", "secret_ref": "https://key-manager.api.idrivecompute.io/v1/ secrets/135913a7-f46c-4808-81be-8cda346b88b1", "content_types": { "default": "text/plain" }, "creator_id": "191931bc755f410784fe42594c8e588d", "mode": "cbs", "bit_length": 256, "expiration": null } ], "total": 17, "next": "https://key-manager.api.idrivecompute.io/v1/secrets? limit=2&offset=2" }
Create SSH-Key
POST |
https://key-manager.api.idrivecompute.io/v1/secrets/ |
Authorization |
X-Auth-Token |
Request Samples
curl -H "X-Auth-Token: ${TOKEN}" \ -H "Content-Type: application/json" \ -X POST \ -d "{ "name": "john_smith", "algorithm": "aes", "mode": "cbc", "bit_length": 256, "secret_type": "opaque", "payload": "${SSH_KEY_CONTENTS}", "payload_content_type": "text/plain" }" \ https://key-manager.api.idrivecompute.io/v1/secrets/
Response Samples
{ "secret_ref": "https://key-manager.api.idrivecompute.io/v1/secrets/ 82bb6fe0-68b5-42ec-9d35-f90c31cfac33" }
View SSH-Key
GET |
https://key-manager.api.idrivecompute.io/v1/secrets/{secret_id}/payload |
Authorization |
X-Auth-Token |
Request Samples
curl -H "X-Auth-Token: ${TOKEN}" \ -H "Accept: text/plain" \ -X GET \ https://key-manager.api.idrivecompute.io/v1/secrets/ 82bb6fe0-68b5-42ec-9d35-f90c31cfac33/payload
Response Samples
The response is SSH key and returns the HTTP 200 response code in the case of a successful request.
Delete SSH-Key
DELETE |
https://key-manager.api.idrivecompute.io/v1/secrets/{secret-id} |
Authorization |
X-Auth-Token |
Request Samples
curl -H "X-Auth-Token: ${TOKEN}" \ -X DELETE \ https://key-manager.api.idrivecompute.io/v1/secrets/ 82bb6fe0-68b5-42ec-9d35-f90c31cfac33
Response Samples
The response is empty and returns the HTTP 204 response code in the case of a successful request.