擷取模板圖片及架構圖相關資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
bpstudio:GetTemplate |
get |
*Template
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| TemplateId |
string |
是 |
模板 ID |
XFKR6WYRVS24S07R |
| Region |
string |
否 |
模板地區 |
cn-hangzhou |
| ResourceGroupId |
string |
否 |
資源群組 ID |
rg-aekzhfgmw4e6fwq |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Message |
string |
錯誤資訊 |
Success |
| RequestId |
string |
請求 ID |
A07FFDF2-78FA-1B48-9E38-88E833A93187 |
| Data |
object |
模板詳情 |
|
| Description |
string |
模板描述 |
|
| ImageURL |
string |
模板架構圖片檔案路徑 |
bp-studio-template/sr-U37UD2YQCRJ75X5V.png |
| Name |
string |
模板名稱 |
cadt-template |
| TemplateId |
string |
模板 ID |
XFKR6WYRVS24S07R |
| CreateTime |
string |
建立時間 |
2020-09-22 17:08:31 |
| ResourceGroupId |
string |
資源群組 ID |
rg-aekzhfgmw4e6fwq |
| Variables |
array<object> |
模板變數詳情 |
|
|
object |
|||
| Attribute |
string |
變數名 |
instance_name |
| DataType |
string |
變數類型 |
String |
| DefaultValue |
string |
預設值 |
cadt-app-01 |
| Variable |
string |
變數值 |
${name} |
| Options |
string |
||
| DocumentUrl |
string |
情境詳情 |
|
| Code |
string |
返回碼 |
200 |
樣本
正常返回樣本
JSON格式
{
"Message": "Success",
"RequestId": "A07FFDF2-78FA-1B48-9E38-88E833A93187",
"Data": {
"Description": "",
"ImageURL": "bp-studio-template/sr-U37UD2YQCRJ75X5V.png",
"Name": "cadt-template",
"TemplateId": "XFKR6WYRVS24S07R",
"CreateTime": "2020-09-22 17:08:31",
"ResourceGroupId": "rg-aekzhfgmw4e6fwq",
"Variables": [
{
"Attribute": "instance_name",
"DataType": "String",
"DefaultValue": "cadt-app-01",
"Variable": "${name}",
"Options": ""
}
],
"DocumentUrl": ""
},
"Code": "200"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 200 | Success | The transaction is successful. | |
| 400 | ParameterEmpty | You must specify the request parameter. | 您必須指定請求參數。 |
| 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. | 資源不存在 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。