Menghasilkan templat contoh berdasarkan tipe sumber daya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:GetResourceTypeTemplate |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
Tipe sumber daya. Panggil operasi ListResourceTypes untuk mengkueri tipe sumber daya yang didukung. |
ALIYUN::ECS::VPC |
| VersionId |
string |
No |
ID versi. Tentukan parameter ini untuk mengkueri versi tertentu dari tipe sumber daya. Jika Anda tidak menentukan parameter ini, versi default tipe sumber daya akan dikueri. Catatan
Parameter ini hanya didukung untuk modul. |
v1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
87F54B2B-AEF0-4C33-A72A-3F8856A575E9 |
| TemplateBody |
object |
The structure of the template body. The template body must be 1 to 51,200 bytes in length. For more information, see Template syntax. Catatan
This parameter is not recommended. Use TemplateContent instead. |
{"ROSTemplateFormatVersion": "2015-09-01"} |
| TemplateContent |
string |
The structure of the template body in JSON format. For more information, see Template syntax. |
{ "ROSTemplateFormatVersion": "2015-09-01" } |
Contoh
Respons sukses
JSONformat
{
"RequestId": "87F54B2B-AEF0-4C33-A72A-3F8856A575E9",
"TemplateBody": {
"ROSTemplateFormatVersion": "2015-09-01"
},
"TemplateContent": "{\n \"ROSTemplateFormatVersion\": \"2015-09-01\"\n}"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.