全部產品
Search
文件中心

Cloud Architect Design Tools:GetApplication - 擷取應用詳情

更新時間:Dec 22, 2025

擷取指定應用的基本資料、校正結果、計費結果、部署結果。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

bpstudio:GetApplication

get

*Application

acs:bpstudio::{#accountId}:application/{#ApplicationId}

請求參數

名稱

類型

必填

描述

樣本值

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

單位: USD/時

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
匯入-2

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>

合規檢查結果

array<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. 資源不存在

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情