Retrieves the optional values for template variables.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bpstudio:GetLinkageAttributesTemplate |
get |
*Template
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The template ID. |
XFKR6WYRVS24S07R |
| AreaId |
string |
No |
The region ID. |
cn-hangzhou |
| Instances |
array<object> |
No |
The list of instances to be replaced. |
|
|
object |
No |
|||
| NodeName |
string |
No |
The name of the instance in the graph. |
vpc |
| NodeType |
string |
No |
The instance type. |
vpc |
| Id |
string |
No |
The instance ID. |
vpc-**1q56**taq40***** |
| Variables |
object |
No |
The values for the parameters in the template. If you do not specify this parameter, the default values are used. |
|
|
any |
No |
The parameter value. |
{"${instance_type}":"ecs.c6.3xlarge"} |
|
| TargetVariable |
string |
Yes |
The template variable to query. |
${instance_type} |
| NextToken |
string |
No |
The token to retrieve the next page of results. |
2 |
| MaxResults |
integer |
No |
The number of entries to return on each page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Message |
string |
The error message. |
Success |
| RequestId |
string |
The request ID. |
A07FFDF2-78FA-1B48-9E38-88E833A93187 |
| Data |
object |
The data that is returned. |
|
| OptionalValues |
string |
The optional values. |
[ { "label": "ecs.c6.2xlarge (8c 16g)", "value": "ecs.c6.2xlarge" }, { "label": "ecs.c6.3xlarge (12c 24g)", "value": "ecs.c6.3xlarge" } ] |
| ErrorCode |
string |
The error code. |
400 |
| ErrorMessage |
string |
The error message. |
SyntaxError |
| TotalCount |
integer |
The total number of entries. |
19 |
| NextToken |
string |
The token that is used to retrieve the next page of results. |
2 |
| Code |
string |
The status code. |
200 |
| AccessDeniedDetail |
string |
The details of the access denial. |
{ "PolicyType": "", "AuthPrincipalOwnerId": "", "EncodedDiagnosticMessage": "", "AuthPrincipalType": "", "AuthPrincipalDisplayName": "", "NoPermissionType": "", "AuthAction": "" } |
Examples
Success response
JSON format
{
"Message": "Success",
"RequestId": "A07FFDF2-78FA-1B48-9E38-88E833A93187",
"Data": {
"OptionalValues": "[\n {\n \"label\": \"ecs.c6.2xlarge (8c 16g)\",\n \"value\": \"ecs.c6.2xlarge\"\n },\n {\n \"label\": \"ecs.c6.3xlarge (12c 24g)\",\n \"value\": \"ecs.c6.3xlarge\"\n }\n]",
"ErrorCode": "400",
"ErrorMessage": "SyntaxError",
"TotalCount": 19,
"NextToken": "2"
},
"Code": "200",
"AccessDeniedDetail": "{\n \"PolicyType\": \"\",\n \"AuthPrincipalOwnerId\": \"\",\n \"EncodedDiagnosticMessage\": \"\",\n \"AuthPrincipalType\": \"\",\n \"AuthPrincipalDisplayName\": \"\",\n \"NoPermissionType\": \"\",\n \"AuthAction\": \"\"\n }"
}
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. |
| 403 | NoPermissions | No permissions. | |
| 404 | EntityNotExist.ResourceGroup | The resource group does not exist. | |
| 404 | EntityNotExist.ResourceId | The resource does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.