获取指定应用的基本信息、校验结果、计费结果、部署结果。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
        
            调试
        
    
授权信息
| 
                                 操作  | 
                            
                                 访问级别  | 
                            
                                 资源类型  | 
                            
                                 条件关键字  | 
                            
                                 关联操作  | 
                        
| 
                                 bpstudio:GetApplication  | 
                            
                                 get  | 
                            
                                     *Application 
  | 
                            无 | 无 | 
请求参数
| 
                             名称  | 
                        
                             类型  | 
                        
                             必填  | 
                        
                             描述  | 
                        
                             示例值  | 
                    
| ApplicationId | 
                             string  | 
                        
                             是  | 
                        
                             应用 ID  | 
                        
                             VVK605ZH00OA4MRT  | 
                    
| ResourceGroupId | 
                             string  | 
                        
                             否  | 
                        
                             资源组 ID  | 
                        
                             rg-acfmyjt3c5om3hi  | 
                    
返回参数
| 
                             名称  | 
                        
                             类型  | 
                        
                             描述  | 
                        
                             示例值  | 
                    
| 
                             object  | 
                        |||
| Message | 
                             string  | 
                        
                             请求失败原因  | 
                        
                             Success  | 
                    
| RequestId | 
                             string  | 
                        
                             请求 ID  | 
                        
                             A07FFDF2-78FA-1B48-9E38-88E833A93187  | 
                    
| Data | 
                             object  | 
                        
                             应用详情  | 
                        |
| Description | 
                             string  | 
                        
                             应用描述  | 
                        
                             remark  | 
                    
| ImageURL | 
                             string  | 
                        
                             数据库中图片地址  | 
                        
                             https://cadt-studio-publish.oss-cn-hangzhou.aliyuncs.com/xxxxxxxxxxxxxxxxxxx/sr-8DWU4RUS49NIDII0.png  | 
                    
| ApplicationId | 
                             string  | 
                        
                             应用 ID  | 
                        
                             VVK605ZH00OA4MRT  | 
                    
| Name | 
                             string  | 
                        
                             应用名  | 
                        
                             CADT  | 
                    
| TemplateId | 
                             string  | 
                        
                             应用关联模板 ID  | 
                        
                             FYS9VZ535U20V7HT  | 
                    
| CreateTime | 
                             string  | 
                        
                             应用创建时间  | 
                        
                             2021-08-09 14:37:16  | 
                    
| ResourceGroupId | 
                             string  | 
                        
                             应用所属资源组 ID  | 
                        
                             rg-aekzhfgmw4e6fwq  | 
                    
| PriceList | 
                             array<object>  | 
                        
                             计费结果列表  | 
                        |
| 
                             object  | 
                        |||
| ResourceCode | 
                             string  | 
                        
                             产品 code  | 
                        
                             ecs  | 
                    
| InstanceName | 
                             string  | 
                        
                             实例名  | 
                        
                             ecs  | 
                    
| OriginalPrice | 
                             number  | 
                        
                             原价  | 
                        
                             3.570  | 
                    
| OnePrice | 
                             number  | 
                        
                             单价  | 
                        
                             0.01  | 
                    
| Period | 
                             integer  | 
                        
                             时长  | 
                        
                             1  | 
                    
| Count | 
                             integer  | 
                        
                             数量  | 
                        
                             1  | 
                    
| PriceUnit | 
                             string  | 
                        
                             单位:元/时  | 
                        
                             200/hour  | 
                    
| Price | 
                             number  | 
                        
                             总价  | 
                        
                             0.01  | 
                    
| ChargeType | 
                             string  | 
                        
                             支付类型  | 
                        
                             PayAsYouGo  | 
                    
| Region | 
                             string  | 
                        
                             区域  | 
                        
                             cn-hangzhou  | 
                    
| Specification | 
                             string  | 
                        
                             实例规格。 返回实例规格信息,例如 VPC 返回网段信息“192.168.0.0/16”,ECS 返回实例规格“ecs.g5.large”,SLB 返回“slb.s1.small”等;如果该实例没有规格属性,则返回空。  | 
                        
                             "slb.s1.small" "192.168.0.0/24" "ecs.c6.large" "normal" ""  | 
                    
| Lifecycle | 
                             string  | 
                        
                             资源标记  | 
                        
                             Create  | 
                    
| Remark | 
                             string  | 
                        
                             询价失败时返回错误信息  | 
                        
                             ecs Sold Out  | 
                    
| type | 
                             string  | 
                        
                             创建类型:
  | 
                        
                             1  | 
                    
| Checklist | 
                             array<object>  | 
                        
                             校验结果列表  | 
                        |
| 
                             object  | 
                        
                             校验结果列表  | 
                        ||
| ResourceCode | 
                             string  | 
                        
                             产品 code  | 
                        
                             vpc  | 
                    
| ResourceName | 
                             string  | 
                        
                             实例名  | 
                        
                             vpc  | 
                    
| Region | 
                             string  | 
                        
                             区域  | 
                        
                             cn-hangzhou  | 
                    
| Result | 
                             string  | 
                        
                             校验结果  | 
                        
                             Finish  | 
                    
| Remark | 
                             string  | 
                        
                             失败原因  | 
                        
                             Verification passed  | 
                    
| Specification | 
                             string  | 
                        
                             规格  | 
                        
                             192.168.0.0/16  | 
                    
| Lifecycle | 
                             string  | 
                        
                             资源标记  | 
                        
                             Create  | 
                    
| Status | 
                             string  | 
                        
                             应用状态  | 
                        
                             Deployed_Success  | 
                    
| ResourceList | 
                             array<object>  | 
                        
                             资源列表  | 
                        |
| 
                             object  | 
                        
                             资源列表  | 
                        ||
| Status | 
                             string  | 
                        
                             资源部署结果  | 
                        
                             Finish  | 
                    
| ResourceCode | 
                             string  | 
                        
                             产品 code  | 
                        
                             ecs  | 
                    
| ResourceName | 
                             string  | 
                        
                             实例名称  | 
                        
                             ecs  | 
                    
| ResourceId | 
                             string  | 
                        
                             实例 ID  | 
                        
                             i-2zehnzxqixu1pywsfbx1  | 
                    
| ChargeType | 
                             string  | 
                        
                             支付类型  | 
                        
                             PayAsYouGo  | 
                    
| ResourceType | 
                             string  | 
                        
                             资源类型  | 
                        
                             ecs  | 
                    
| Remark | 
                             string  | 
                        
                             部署结果  | 
                        
                             {"hostName":"iZ2zehnzxqixu1pywsfbx1Z","memory":32768.0,"creationTime":"2021-09-28T11:23:46Z","instanceName":"ecs","internetMaxBandwidthOut":0.0,"description":"","clusterId":"","private_ip":"192.168.0.247","instanceId":"i-2zehnzxqixu1pywsfbx1","requestId":"F1C64344-3723-51A0-855B-5F08B5634323","zoneId":"cn-beijing-b","ioOptimized":"optimized","id":"i-2zehnzxqixu1pywsfbx1","instanceNetworkType":"vpc","instanceChargeType":"PostPaid","imageId":"centos_8_4_x64_20G_alibase_20210824.vhd","serialNumber":"cee246c4-38f3-4bf3-950b-c17e88ff6527","vlanId":"","instanceType":"ecs.e3.large","cpu":4.0,"creditSpecification":"","internetMaxBandwidthIn":-1.0,"expiredTime":"2099-12-31T15:59Z","internetChargeType":"PayByTraffic","regionId":"cn-beijing","refId":"79224644_0","stoppedMode":"Not-applicable","status":"Running"}  | 
                    
| Lifecycle | 
                             string  | 
                        
                             资源标记  | 
                        
                             Create  | 
                    
| NodeLabel | 
                             string  | 
                        ||
| Error | 
                             string  | 
                        
                             失败原因  | 
                        
                             Success  | 
                    
| DeployPercent | 
                             number  | 
                        
                             部署进度  | 
                        
                             0.8  | 
                    
| ComplianceList | 
                             array<object>  | 
                        
                             合规检查结果  | 
                        |
| 
                             object  | 
                        |||
| Rules | 
                             array<object>  | 
                        
                             检查结果  | 
                        |
| 
                             object  | 
                        |||
| ruleId | 
                             string  | 
                        
                             规则 ID。  | 
                        
                             ecs-instances-in-vpc  | 
                    
| ruleDetail | 
                             string  | 
                        
                             规则名称  | 
                        |
| ResourceName | 
                             string  | 
                        
                             资源名称。  | 
                        
                             ecs  | 
                    
| ResourceCode | 
                             string  | 
                        
                             产品 code  | 
                        
                             ecs  | 
                    
| Code | 
                             string  | 
                        
                             响应码  | 
                        
                             200  | 
                    
应用状态列表:
Creating 创建中
Modified 已修改
Verifying 校验中
Verified_Failure 校验失败
Verified_Success 校验成功
Valuating 计价中
Valuating_Failure 计价失败
Valuating_Success 计价成功
Deploying 部署中
Deployed_Failure 部署失败
Partially_Deployed_Success 部分部署成功
Deployed_Success 部署成功
Destroying 释放中
Delayed_Destroy 延时销毁
Destroyed_Failure 释放失败
Partially_Destroyed_Success 部分释放成功
Destroyed_Success 释放成功
Revised 架构调整
Verifying_In_Revision 资源验证(架构调整)
Verified_Failure_In_Revision 资源验证失败(架构调整)
Verified_Success_In_Revision 资源验证成功(架构调整)
Valuating_In_Revision 询价中(架构调整)
Valuating_Failure_In_Revision 询价失败(架构调整)
Valuating_Success_In_Revision 询价成功(架构调整)
示例
正常返回示例
JSON格式
{
  "Message": "Success",
  "RequestId": "A07FFDF2-78FA-1B48-9E38-88E833A93187",
  "Data": {
    "Description": "remark",
    "ImageURL": "https://cadt-studio-publish.oss-cn-hangzhou.aliyuncs.com/xxxxxxxxxxxxxxxxxxx/sr-8DWU4RUS49NIDII0.png",
    "ApplicationId": "VVK605ZH00OA4MRT",
    "Name": "CADT",
    "TemplateId": "FYS9VZ535U20V7HT",
    "CreateTime": "2021-08-09 14:37:16",
    "ResourceGroupId": "rg-aekzhfgmw4e6fwq",
    "PriceList": [
      {
        "ResourceCode": "ecs",
        "InstanceName": "ecs",
        "OriginalPrice": 3.57,
        "OnePrice": 0.01,
        "Period": 1,
        "Count": 1,
        "PriceUnit": "200/hour",
        "Price": 0.01,
        "ChargeType": "PayAsYouGo",
        "Region": "cn-hangzhou",
        "Specification": "\"slb.s1.small\"\n \"192.168.0.0/24\"\n\"ecs.c6.large\"\n\"normal\"\n \"\"",
        "Lifecycle": "Create",
        "Remark": "ecs Sold Out",
        "type": "1"
      }
    ],
    "Checklist": [
      {
        "ResourceCode": "vpc",
        "ResourceName": "vpc",
        "Region": "cn-hangzhou",
        "Result": "Finish",
        "Remark": "Verification passed",
        "Specification": "192.168.0.0/16",
        "Lifecycle": "Create"
      }
    ],
    "Status": "Deployed_Success",
    "ResourceList": [
      {
        "Status": "Finish",
        "ResourceCode": "ecs",
        "ResourceName": "ecs",
        "ResourceId": "i-2zehnzxqixu1pywsfbx1",
        "ChargeType": "PayAsYouGo",
        "ResourceType": "ecs",
        "Remark": "{\"hostName\":\"iZ2zehnzxqixu1pywsfbx1Z\",\"memory\":32768.0,\"creationTime\":\"2021-09-28T11:23:46Z\",\"instanceName\":\"ecs\",\"internetMaxBandwidthOut\":0.0,\"description\":\"\",\"clusterId\":\"\",\"private_ip\":\"192.168.0.247\",\"instanceId\":\"i-2zehnzxqixu1pywsfbx1\",\"requestId\":\"F1C64344-3723-51A0-855B-5F08B5634323\",\"zoneId\":\"cn-beijing-b\",\"ioOptimized\":\"optimized\",\"id\":\"i-2zehnzxqixu1pywsfbx1\",\"instanceNetworkType\":\"vpc\",\"instanceChargeType\":\"PostPaid\",\"imageId\":\"centos_8_4_x64_20G_alibase_20210824.vhd\",\"serialNumber\":\"cee246c4-38f3-4bf3-950b-c17e88ff6527\",\"vlanId\":\"\",\"instanceType\":\"ecs.e3.large\",\"cpu\":4.0,\"creditSpecification\":\"\",\"internetMaxBandwidthIn\":-1.0,\"expiredTime\":\"2099-12-31T15:59Z\",\"internetChargeType\":\"PayByTraffic\",\"regionId\":\"cn-beijing\",\"refId\":\"79224644_0\",\"stoppedMode\":\"Not-applicable\",\"status\":\"Running\"}",
        "Lifecycle": "Create",
        "NodeLabel": ""
      }
    ],
    "Error": "Success",
    "DeployPercent": 0.8,
    "ComplianceList": [
      {
        "Rules": [
          {
            "ruleId": "ecs-instances-in-vpc",
            "ruleDetail": ""
          }
        ],
        "ResourceName": "ecs",
        "ResourceCode": "ecs"
      }
    ]
  },
  "Code": "200"
}
            错误码
| 
                                 HTTP status code  | 
            				
                                 错误码  | 
            				
                                 错误信息  | 
            				
                                 描述  | 
            			
|---|---|---|---|
| 400 | bp.java.8004 | No permissions. | 无权限访问 | 
| 400 | bp.java.nopower | No permissions. | 没有权限 | 
| 400 | bp.java.nopowerContact | You do not have permission to use this function. Please contact the main account or permission administrator to authorize the relevant permissions. | 您没有权限使用此功能,请联系主账号或权限管理员授权相关权限 | 
| 400 | bp.java.userNotExist | The user does not exist. The current user does not authenticate AliCloud with his real name. | 用户不存在, 当前用户未实名认证阿里云 | 
| 400 | ParameterEmpty | The request parameter cannot be empty. | |
| 500 | ServiceError | A server error occurred. Please try again later. | 服务器异常,请稍后再试 | 
| 404 | EntityNotExist.ResourceGroup | The resource group does not exist. | 资源组不存在 | 
| 404 | EntityNotExist.ResourceId | The resource does not exist. | 资源不存在 | 
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。