Retrieves a list of templates, including their names, architecture diagram URLs, and serialized architecture diagram file URLs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bpstudio:ListTemplate |
get |
*BPStudioVirtual
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
integer |
Yes |
The page number. |
1 |
| MaxResults |
integer |
Yes |
The number of entries per page. |
10 |
| OrderType |
integer |
No |
The field to sort by:
|
1 |
| Keyword |
string |
No |
A keyword for searching template names. |
“CADT” |
| Type |
string |
Yes |
public indicates a public template. private indicates a private template. |
private |
TagList
deprecated
|
integer |
No |
The tags of the template. |
2 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmyjt3c5om3hi |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
Tag information. |
||
| Key |
string |
No |
The tag key. |
tag |
| Value |
string |
No |
The tag value. |
value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of entries. |
100 |
| Message |
string |
The error message. |
Success |
| NextToken |
integer |
The page number. |
1 |
| RequestId |
string |
The request ID. |
A07FFDF2-78FA-1B48-9E38-88E833A93187 |
| Data |
array<object> |
The list of templates. |
|
|
array<object> |
|||
| ImageURL |
string |
The image URL of the template. |
bp-studio-template/sr-U37UD2YQCRJ75X5V.png |
TagId
deprecated
|
integer |
The ID of the template's tag. |
1 |
TagName
deprecated
|
string |
The name of the template's tag. |
TagName |
| Name |
string |
The name of the template. |
cadt-name |
| TemplateId |
string |
The ID of the template. |
CJQ6H0XUEQ20IYJQ |
| CreateTime |
string |
The creation time. |
2021-03-18 16:41:31 |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmyjt3c5om3hi |
| Tag |
array<object> |
The list of tags. |
|
|
object |
Tag information. |
||
| Key |
string |
The tag key. |
tag1 |
| Value |
string |
The tag value. |
value1 |
| Description |
string |
The description of the template. |
|
| DocumentUrl |
string |
The scenario details. |
|
| Code |
string |
The status code. |
200 |
Examples
Success response
JSON format
{
"TotalCount": 100,
"Message": "Success",
"NextToken": 1,
"RequestId": "A07FFDF2-78FA-1B48-9E38-88E833A93187",
"Data": [
{
"ImageURL": "bp-studio-template/sr-U37UD2YQCRJ75X5V.png",
"TagId": 1,
"TagName": "TagName",
"Name": "cadt-name",
"TemplateId": "CJQ6H0XUEQ20IYJQ",
"CreateTime": "2021-03-18 16:41:31",
"ResourceGroupId": "rg-acfmyjt3c5om3hi",
"Tag": [
{
"Key": "tag1",
"Value": "value1"
}
],
"Description": "",
"DocumentUrl": ""
}
],
"Code": "200"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 200 | Success | The transaction is successful. | |
| 400 | ParameterEmpty | You must specify the request parameter. | You must specify request parameters. |
| 500 | ServiceError | A server error occurred. Please try again later. | |
| 404 | EntityNotExist.ResourceId | The resource does not exist. | |
| 404 | EntityNotExist.ResourceGroup | The resource group does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.