创建密码服务集群
功能介绍
创建密码服务集群

调用方法
请参见如何调用API。
URI
POST /v1/{project_id}/dew/cpcs/cluster
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目ID |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户token,参见:IAM token获取方法 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
charging_mode |
是 |
Integer |
计费模式
|
region_id |
是 |
String |
局点ID |
period_type |
是 |
Integer |
周期类型
|
period_num |
是 |
Integer |
周期数量 |
subscription_num |
是 |
Integer |
实例数量 |
period_product_id |
是 |
String |
产品id |
period_resource_spec_code |
是 |
String |
产品规格code |
cluster_name |
是 |
String |
集群名称 |
service_type |
是 |
String |
服务类型
|
share_type |
是 |
String |
共享类型
|
image_id |
否 |
String |
镜像id |
is_auto_renew |
是 |
Integer |
是否自动续费 |
promotion_info |
否 |
String |
折扣 |
app_id |
否 |
String |
应用id |
enterprise_project_id |
否 |
String |
企业项目id |
type |
否 |
String |
实例类型
|
az |
是 |
String |
az |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
order_id |
String |
集群订单ID |
请求示例
请求头中的X-Auth-Token字段需要填写token,且该token需要具有本API的访问权限
POST https://cpcs.com/v1/{project_id}/dew/cpcs/cluster { "charging_mode" : 0, "region_id" : "cn-north-9", "period_type" : 2, "period_num" : 1, "subscription_num" : 1, "period_product_id" : "OFFI1015101891137228800", "period_resource_spec_code" : "cpcs.crypto.instance.standard", "cluster_name" : "0719", "service_type" : "SSL_VPN", "share_type" : "EXCLUSIVE", "image_id" : "00ee2d5f-3f56-4729-8315-b10ed7724324", "is_auto_renew" : 0, "promotion_info" : "", "app_id" : "ea04bbba983d461a9ac8759074d5f6e0", "enterprise_project_id" : "0", "type" : "SINGLE", "az" : "AUTO-AZ" }
响应示例
状态码:200
请求已成功
{ "order_id" : "a6bbf0be-79f3-4f66-858a-0fdcb96dfcbe" }
状态码
状态码 |
描述 |
---|---|
200 |
请求已成功 |
错误码
请参见错误码。