Obtaining a Dedicated Keystore
Function
This API is used to obtain a dedicated keystore.
Calling Method
For details, see Calling APIs.
URI
GET /v1.0/{project_id}/keystores/{keystore_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID. For details, see Obtaining a Project ID. Constraints N/A Range The value returned by the IAM API is used, which contains 32 characters. Default Value N/A |
| keystore_id | Yes | String | Definition Keystore ID Constraints The value must match the regular expression [0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$. Range N/A Default Value N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition User token. It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. Constraints N/A Range Obtain the value by calling the IAM API for obtaining the user token. Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| keystore | KeystoreDetails object | Definition Keystore details Range N/A |
| Parameter | Type | Description |
|---|---|---|
| keystore_id | String | Definition Keystore ID Range N/A |
| domain_id | String | Definition User domain ID Range N/A |
| keystore_alias | String | Definition Keystore alias Range N/A |
| keystore_type | String | Definition Keystore type Range N/A |
| hsm_cluster_id | String | Definition DHSM cluster ID Range N/A |
| create_time | String | Definition Keystore creation time, which is a UTC timestamp. Range N/A |
| cluster_id | String | Definition Cluster ID Range N/A |
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{
"keystore" : {
"keystore_id" : "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e",
"domain_id" : "b168fe00ff56492495a7d22974df2d0b",
"keystore_alias" : "test",
"keystore_type" : "typetest",
"hsm_cluster_id" : "hsm_cluster_id",
"cluster_id" : "cluster_id",
"create_time" : "1581507580000"
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
Error Codes
See Error Codes.