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

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
oos:GetTemplateParameterConstraints |
get |
*Template
|
|
无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
RegionId |
string |
否 |
地域 ID。 |
cn-hangzhou |
TemplateVersion |
string |
否 |
模板版本。 |
v1 |
TemplateContent |
string |
否 |
模板内容,JSON 或 YAML 格式。 |
{ "Description": "Example template, describe instances in some status", "FormatVersion": "OOS-2019-06-01", "Parameters": {}, "Tasks": [{ "Name": "describeInstances", "Action": "ACS::ExecuteAPI", "Description": "desc-en", "Properties": { "Service": "ECS", "API": "DescribeInstances", "Parameters": { "Status": "Running" } } }] } |
TemplateName |
string |
否 |
模板名称。内容限制为字母、数字、中划线、下划线,长度 200 字符。 |
MyTemplate |
TemplateURL |
string |
否 |
包含模板主体的文件的位置。URL 必须指向位于 Web 服务器(HTTP 或 HTTPS)或阿里云 OSS 存储空间(例如:oss://ros/template/demo 或 oss://ros/template/demo?RegionId=cn-hangzhou)中的模板,模板的最大长度为 524,288 个字节。如未指定 OSS 地域,默认与接口参数 RegionId 相同。 说明
您必须且仅能指定 TemplateBody、TemplateURL 和 TemplateId 其中一个参数。 |
http://oos-template.cn-hangzhou.oss.aliyun-inc.com/oos-test-template.json |
Parameters |
string |
否 |
模板参数。 |
{\"endDate\": \"2022-04-13T03:31:20Z\", \"Status\": \"Stopped\"} |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
RequestId |
string |
请求 ID。 |
CBEC8072-BEC2-478E-8EAE-E723BA79CF19 |
ParameterConstraints |
object |
参数约束信息。 |
[ { "Type": "String", "AllowedValues": [ "ecs.n1.tiny", "ecs.r8a.4xlarge", "ecs.n2.xlarge", "ecs.c7.2xlarge", "ecs.c8i.4xlarge", "ecs.g8i.48xlarge", "ecs.c8a.4xlarge", "ecs.i2.4xlarge", "ecs.r8y.2xlarge" ], "AssociationParameterNames": [ "RegionId", "zoneId" ], "ParameterKey": "instanceType" }, { "Type": "String", "AllowedValues": [], "AssociationParameterNames": [ "RegionId", "zoneId", "InstanceType" ], "ParameterKey": "systemDiskCategory" } ] |
示例
正常返回示例
JSON
格式
{
"RequestId": "CBEC8072-BEC2-478E-8EAE-E723BA79CF19",
"ParameterConstraints": [
{
"Type": "String",
"AllowedValues": [
"ecs.n1.tiny",
"ecs.r8a.4xlarge",
"ecs.n2.xlarge",
"ecs.c7.2xlarge",
"ecs.c8i.4xlarge",
"ecs.g8i.48xlarge",
"ecs.c8a.4xlarge",
"ecs.i2.4xlarge",
"ecs.r8y.2xlarge"
],
"AssociationParameterNames": [
"RegionId",
"zoneId"
],
"ParameterKey": "instanceType"
},
{
"Type": "String",
"AllowedValues": [],
"AssociationParameterNames": [
"RegionId",
"zoneId",
"InstanceType"
],
"ParameterKey": "systemDiskCategory"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。