テンプレートパラメーターの利用可能な値を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
oos:GetTemplateParameterConstraints |
get |
*Template
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID。 |
cn-hangzhou |
| TemplateVersion |
string |
任意 |
テンプレートのバージョン。 |
v1 |
| TemplateContent |
string |
任意 |
JSON または YAML フォーマットのテンプレート本文。 |
{ "Description": "サンプルテンプレート、特定の状態のインスタンスを記述", "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) または OSS バケットに配置されたテンプレートをポイントしている必要があります (例: oss://ros/template/デモ または oss://ros/template/デモ?RegionId=cn-hangzhou)。テンプレートの最大値は 524,288 バイトです。OSS リージョンを指定しない場合、デフォルト値は RegionId パラメーターと同じになります。 説明
次のパラメーターのうち、いずれか 1 つのみを指定する必要があります: 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" } ] |
例
成功レスポンス
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"
}
]
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。