获取实例创建进度 - GetCreateInstanceProcessV2
功能介绍
获取实例创建进度接口。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限,具体权限要求请参见权限和授权项。
URI
GET /v2/{projectId}/instances/{instanceId}/process
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
projectId |
是 |
String |
项目集ID。 |
|
instanceId |
是 |
String |
实例ID。 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
X-AUTH-TOKEN |
是 |
String |
用户Token。 |
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
instance |
instance object |
实例对象。 |
|
currentTime |
Integer |
当前时间。 |
|
instance_id |
String |
实例ID。 |
|
name |
String |
实例名称。 |
|
start_time |
Integer |
开始时间。 |
|
taken_time |
Integer |
发实例使用时间。 |
|
end_time |
Integer |
结束时间。 |
|
progress |
Integer |
进度。 |
|
status |
String |
状态。 |
|
item |
Array of item objects |
子服务对象集。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
instanceId |
String |
实例ID。 |
|
name |
String |
实例名称。 |
|
status |
String |
实例状态(CREATING|RUNNING|CREATE_FAILED);创建中|运行中|创建失败。 |
|
connectAddress |
String |
连接地址。 |
|
connectAddressWithPP |
String |
源地址透传(下一代APIC专用)。 |
|
mgmtConnectAddress |
String |
管理面访问数据面连接地址(下一代专用)。 |
|
mgmtExtraConnectAddress |
String |
管理面访问数据面连接地址(下一代FDI专用)。 |
|
port |
String |
端口(弃用)。 |
|
conAmount |
String |
连接数(连接池模式专用)。 |
|
type |
String |
实例类型。 |
|
location |
String |
位置(弃用)。 |
|
productId |
String |
产品ID。 |
|
engine |
String |
引擎(弃用)。 |
|
engineVersion |
String |
引擎版本(弃用)。 |
|
chargingMode |
Integer |
付费模式。 |
|
description |
String |
描述。 |
|
errorCode |
String |
错误码。 |
|
errorMessage |
String |
错误信息。 |
|
resTenantId |
String |
资源租户资源集ID。 |
|
resDomainId |
String |
资源租户DomainID。 |
|
resVpcId |
String |
资源租户VPCID。 |
|
resSubnetId |
String |
资源租户子网ID。 |
|
resSecurityGroupId |
String |
资源租户安全组ID。 |
|
tenantId |
String |
租户资源集ID。 |
|
tenantVpcId |
String |
租户VPCID。 |
|
tenantSubnetId |
String |
租户子网ID。 |
|
tenantSecurityGroupId |
String |
租户安全组ID。 |
|
userId |
String |
用户ID。 |
|
userName |
String |
用户名称。 |
|
domainId |
String |
域ID。 |
|
virtualRouterId |
String |
虚拟路由ID。 |
|
orderId |
String |
订单ID。 |
|
createdAt |
Integer |
创建时间。 |
|
updatedAt |
Integer |
更新时间。 |
|
deletedAt |
String |
删除时间。 |
|
availableZones |
String |
可用区。 |
|
maintainBegin |
String |
维护时间窗开始时间。 |
|
maintainEnd |
String |
维护时间窗结束时间。 |
|
taskStatus |
String |
任务状态。 |
|
noPasswordAccess |
Boolean |
无密码访问。 |
|
accessUser |
String |
访问用户。 |
|
publicipId |
String |
公网访问IP的ID。 |
|
publicipAddr |
String |
公网访问IP地址。 |
|
publicipBounded |
Boolean |
是否绑定公网IP地址。 |
|
outZones |
String |
忽略,无效字段。 |
|
resourceList |
String |
资源列表。 |
|
nameLike |
String |
忽略,无效字段。 |
|
instanceIdLike |
String |
忽略,无效字段。 |
|
specCode |
String |
规格编码。 |
|
statusIncluded |
String |
忽略,无效字段。 |
|
epId |
String |
企业项目ID。 |
|
resLeakStatus |
String |
资源残留状态。 |
|
tagEntries |
String |
标签。 |
|
epIds |
String |
系统标签。 |
|
typeExcluded |
String |
忽略,无效字段。 |
|
ipv6Enable |
Boolean |
开启IPV6。 |
|
ipv6ConnectAddress |
String |
IPV6连接地址。 |
|
bandwidths |
Integer |
带宽。 |
|
ingressBandwidthSize |
String |
入口带宽(下一代)。 |
|
resInstanceClusterId |
String |
实例所在集群ID。 |
|
scope |
String |
区域;center和edge代表中心区和边缘区。 |
|
cpuArch |
String |
cpu架构;arm和x86。 |
|
cryptoType |
String |
加密类型。 |
|
rocketmqEnable |
Boolean |
是否启用RocketMQ。 |
|
externalElbEnable |
Boolean |
是否启用外接ELB。 |
|
ltsLogGroupId |
String |
LTS日志组ID。 |
|
demondPay |
Boolean |
是否按需付费。 |
|
prePay |
Boolean |
是否预付费。 |
|
epIdOrDefault |
String |
企业项目ID。 |
请求示例
无
响应示例
状态码:200
实例创建进度信息。
{
"instance" : {
"instanceId" : "b037d389-62a4-464a-8461-c88797ad4f23",
"name" : "roma-2222",
"status" : "CREATING",
"connectAddress" : null,
"connectAddressWithPP" : null,
"mgmtConnectAddress" : null,
"mgmtExtraConnectAddress" : null,
"port" : null,
"conAmount" : "25",
"type" : "basic",
"location" : null,
"productId" : "00300-30101-0--0",
"engine" : "ROMA",
"engineVersion" : "1.0.0",
"chargingMode" : 1,
"description" : null,
"errorCode" : "JOB-0d42a6bc-3f3d-446a-8351-00a110f56137",
"errorMessage" : null,
"resTenantId" : "#",
"resDomainId" : "#",
"resVpcId" : "#",
"resSubnetId" : "#",
"resSecurityGroupId" : "#",
"tenantId" : "c29445cce74b445682de4fcf3102cec4",
"tenantVpcId" : "f33728c1-e774-4a9b-a0bb-30b840645628",
"tenantSubnetId" : "f65009c8-7009-403c-abdf-3100f9817762",
"tenantSecurityGroupId" : "272338c9-b3ee-41ae-a2b6-3942f31030da",
"userId" : "9167977213674566b8d89570083e2ba0",
"userName" : "zhangyue",
"domainId" : null,
"virtualRouterId" : null,
"orderId" : "20250306120108660165176",
"createdAt" : 1741262473785,
"updatedAt" : 1741262475453,
"deletedAt" : null,
"availableZones" : "[\"az0.dc0\"]",
"maintainBegin" : "12:01:13",
"maintainEnd" : "12:01:13",
"taskStatus" : null,
"noPasswordAccess" : false,
"accessUser" : null,
"publicipId" : null,
"publicipAddr" : null,
"publicipBounded" : false,
"outZones" : null,
"resourceList" : null,
"nameLike" : null,
"instanceIdLike" : null,
"specCode" : "roma.basic.001",
"statusIncluded" : null,
"epId" : "0",
"resLeakStatus" : null,
"tagEntries" : null,
"epIds" : null,
"typeExcluded" : null,
"ipv6Enable" : false,
"ipv6ConnectAddress" : null,
"bandwidths" : 0,
"ingressBandwidthSize" : null,
"resInstanceClusterId" : "#",
"scope" : "center",
"cpuArch" : "x86_64",
"cryptoType" : null,
"rocketmqEnable" : false,
"externalElbEnable" : false,
"ltsLogGroupId" : null,
"demondPay" : true,
"prePay" : false,
"epIdOrDefault" : "0"
},
"currentTime" : 1741262503894,
"instance_id" : "b037d389-62a4-464a-8461-c88797ad4f23",
"name" : "roma-2222",
"start_time" : 1741262473785,
"taken_time" : 1,
"end_time" : 0,
"progress" : 0,
"status" : "creating",
"item" : [ {
"name" : "mqs",
"start_time" : 0,
"end_time" : 0,
"status" : "creating",
"taken_time" : 0,
"progress" : 0,
"error_msg" : "",
"error_code" : ""
}, {
"name" : "lvs",
"start_time" : 1741262473785,
"end_time" : 0,
"status" : "creating",
"taken_time" : 1,
"progress" : 0,
"error_msg" : "",
"error_code" : ""
} ]
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
实例创建进度信息。 |
错误码
请参见错误码。