创建密钥对
创建密钥对
Query Parameters
subscription_name string
订阅
resource_group_name string
资源组
zone string
可用区
application/json
Request Body required
name string
密钥对名称
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
响应返回码
message string
响应消息
data object
密钥对
id string
密钥对id
name string
密钥对名称
public_key string
公钥
private_key string
私钥
key_id string
KMS的公钥id
tenant_id string
租户id
user_id string
用户id
tags object
属性标签
property name* string
instances object[]
绑定的裸金属实例列表
id string
裸金属实例id
name string
裸金属实例名称
display_name string
裸金属实例展示名称
create_time date-time
创建时间
update_time date-time
更新时间
{
"code": 0,
"message": "string",
"data": {
"id": "string",
"name": "string",
"public_key": "string",
"private_key": "string",
"key_id": "string",
"tenant_id": "string",
"user_id": "string",
"tags": {},
"instances": [
{
"id": "string",
"name": "string",
"display_name": "string"
}
],
"create_time": "2024-12-05T02:41:59.025Z",
"update_time": "2024-12-05T02:41:59.025Z"
}
}
Default error response
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
@type string
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...