パラメーターに許可される値を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
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。 URL は、Web サーバー(HTTP または HTTPS)上、または Alibaba Cloud Object Storage Service (OSS) バケット内にあるテンプレートを指している必要があります (例: oss://ros/template/demo または oss://ros/template/demo?RegionId=cn-hangzhou)。テンプレートのサイズは最大 524,288 バイトです。 OSS バケットのリージョンを指定しない場合は、RegionId パラメーターで指定されたリージョンが使用されます。 説明
TemplateContent、TemplateURL、および TemplateId パラメーターのうち、指定できるのは 1 つだけです。 |
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" } ] |
例
成功レスポンス
JSONJSON
{
"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"
}
]
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。