获取实例创建进度
功能介绍
获取实例创建进度接口
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
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 |
实例创建进度信息 |
错误码
请参见错误码。