獲取指定應用的基本信息、校驗結果、計費結果、部署結果。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
下表是API對應的授權信息,可以在RAM權限策略語句的Action
元素中使用,用來給RAM用戶或RAM角色授予調用此API的權限。具體說明如下:
- 操作:是指具體的權限點。
- 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權的資源類型。具體說明如下:
- 對于必選的資源類型,用背景高亮的方式表示。
- 對于不支持資源級授權的操作,用
全部資源
表示。
- 條件關鍵字:是指云產品自身定義的條件關鍵字。
- 關聯操作:是指成功執行操作所需要的其他權限。操作者必須同時具備關聯操作的權限,操作才能成功。
操作 | 訪問級別 | 資源類型 | 條件關鍵字 | 關聯操作 |
---|---|---|---|---|
bpstudio:GetApplication | get |
|
| 無 |
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ApplicationId | string | 是 | 應用 ID | VVK605ZH00OA4MRT |
ResourceGroupId | string | 否 | 資源組 ID | rg-acfmyjt3c5om3hi |
返回參數
應用狀態列表:
- 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": "金額/時",
"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售罄",
"type": "1"
}
],
"Checklist": [
{
"ResourceCode": "vpc",
"ResourceName": "vpc",
"Region": "cn-hangzhou",
"Result": "Finish",
"Remark": "校驗通過",
"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
},
"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. | 請求參數不能為空 |
404 | EntityNotExist.ResourceGroup | The resource group does not exist. | 資源組不存在 |
404 | EntityNotExist.ResourceId | The resource does not exist. | 資源不存在 |
500 | ServiceError | A server error occurred. Please try again later. | 服務器異常,請稍后再試 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|---|---|
2024-08-30 | OpenAPI 錯誤碼發生變更、OpenAPI 返回結構發生變更 | 查看變更詳情 |
2023-08-01 | OpenAPI 錯誤碼發生變更、OpenAPI 返回結構發生變更 | 查看變更詳情 |
2023-07-06 | OpenAPI 錯誤碼發生變更、OpenAPI 返回結構發生變更 | 查看變更詳情 |
2023-05-25 | OpenAPI 錯誤碼發生變更、OpenAPI 返回結構發生變更 | 查看變更詳情 |