GetLinkageAttributesTemplate - 获取模板变参可选值

获取模板变参可选值

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

POST  HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

TemplateId

string

模板 ID

XFKR6WYRVS24S07R

AreaId

string

区域 ID

cn-hangzhou

Instances

array<object>

待替换实例列表

object

NodeName

string

图上实例名

vpc

NodeType

string

实例类型

vpc

Id

string

实例 ID

vpc-**1q56**taq40*****

Variables

object

对于带参数的模板,这个字段用于传递相关参数值,如果未传递,则使用默认值

any

参数值

TargetVariable

string

待查找的目标变量

${instance_type}

NextToken

string

下一个分页

2

MaxResults

integer

分页大小

10

返回参数

名称

类型

描述

示例值

object

Schema of Response

Message

string

错误信息

Success

RequestId

string

请求 ID

A07FFDF2-78FA-1B48-9E38-88E833A93187

Data

object

返回结果

OptionalValues

string

可选值

[ { "label": "ecs.c6.2xlarge (8c 16g)", "value": "ecs.c6.2xlarge" }, { "label": "ecs.c6.3xlarge (12c 24g)", "value": "ecs.c6.3xlarge" } ]

ErrorCode

string

错误码。

400

ErrorMessage

string

错误信息。

SyntaxError

TotalCount

integer

总数。

19

NextToken

string

下一个分页

2

Code

string

状态码

200

AccessDeniedDetail

string

权限校验失败详情。

{ "PolicyType": "", "AuthPrincipalOwnerId": "", "EncodedDiagnosticMessage": "", "AuthPrincipalType": "", "AuthPrincipalDisplayName": "", "NoPermissionType": "", "AuthAction": "" }

示例

正常返回示例

JSON格式

{
  "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  }"
}

错误码

HTTP status code

错误码

错误信息

描述

200 Success The transaction is successful.
400 ParameterEmpty You must specify the request parameter. 您必须指定请求参数。
403 NoPermissions No permissions.
404 EntityNotExist.ResourceGroup The resource group does not exist. 资源组不存在
404 EntityNotExist.ResourceId The resource does not exist. 资源不存在

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情