Mengambil daftar templat privat dan templat bersama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ListTemplates |
list |
*Template
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
Nomor halaman dari daftar templat. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan per halaman untuk kueri terpaginasi. |
10 |
| TemplateName |
string |
No |
Nama templat. Parameter ini hanya berlaku ketika ShareType diatur ke Private. Nama dapat memiliki panjang hingga 255 karakter. Nama harus dimulai dengan angka atau huruf, dan hanya boleh mengandung angka, huruf, tanda hubung (-), serta garis bawah (_). |
MyTemplate |
| ShareType |
string |
No |
Tipe berbagi templat. Nilai valid:
|
Private |
| Tag |
array<object> |
No |
Tag. Anda dapat menentukan hingga 20 tag. |
|
|
object |
No |
Tag. |
||
| Key |
string |
No |
Kunci tag. Parameter ini hanya berlaku ketika ShareType diatur ke Private. Anda dapat menentukan hingga 20 kunci tag. |
usage |
| Value |
string |
No |
Nilai tag. Parameter ini hanya berlaku ketika ShareType diatur ke Private. Anda dapat menentukan hingga 20 nilai tag. |
deploy |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmxazb4ph6aiy**** |
| IncludeTags |
string |
No |
Menentukan apakah akan menanyakan informasi tag. Nilai valid:
|
Enabled |
| Filters |
array<object> |
No |
Filter. |
|
|
object |
No |
Filter. |
||
| Name |
string |
No |
Nama filter. Anda dapat memilih satu atau beberapa nama untuk ditanyakan. Nilai valid:
|
Categories |
| Values |
array |
No |
Daftar nilai filter. |
|
|
string |
No |
Daftar nilai filter. Nilai N dapat berkisar dari 1 hingga 10. |
ROS |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
Jumlah total templat. |
1 |
| PageSize |
integer |
Jumlah entri yang dikembalikan per halaman. |
10 |
| RequestId |
string |
ID permintaan. |
C3A8413B-1F16-4DED-AC3E-61A00718DE8A |
| PageNumber |
integer |
Nomor halaman dari daftar templat. |
1 |
| Templates |
array<object> |
Daftar templat. |
|
|
array<object> |
Daftar templat. |
||
| TemplateARN |
string |
Nama Sumber Daya Alibaba Cloud (ARN) dari templat. |
acs:ros:*:151266687691****:template/a52f81be-496f-4e1c-a286-8852ab54**** |
| UpdateTime |
string |
Waktu saat templat terakhir diperbarui. |
2019-10-15T08:17:14.000000 |
| Description |
string |
Deskripsi templat. |
test-description |
| CreateTime |
string |
Waktu saat templat dibuat. |
2019-10-15T08:17:14.000000 |
| TemplateName |
string |
Nama templat. |
demo |
| TemplateVersion |
string |
Nama versi terbaru dari templat. |
v1 |
| TemplateId |
string |
ID templat. |
4d4f5aa2-3260-4e47-863b-763fbb12**** |
| OwnerId |
string |
ID Akun Alibaba Cloud tempat templat tersebut berada. |
151266687691**** |
| ShareType |
string |
Tipe berbagi templat. Nilai valid:
|
Private |
| ResourceGroupId |
string |
ID kelompok sumber daya. |
rg-acfmxazb4ph6aiy**** |
| Tags |
array<object> |
Tag dari templat. |
|
|
object |
Tag dari templat. |
||
| Key |
string |
Kunci tag dari templat. |
usage |
| Value |
string |
Nilai tag dari templat. |
test |
| AdditionalInfo |
object |
Informasi tambahan mengenai templat publik. |
{"DeploymentDuration":null,"Title":"Self-Built_ElasticSearch_Snapshot_Saved_To_OSS","Labels":{"ResourceTypes":["ALIYUN::ECS::Instance","ALIYUN::ECS::SecurityGroup","ALIYUN::ECS::VPC","ALIYUN::ECS::VSwitch","ALIYUN::OSS::Bucket","ALIYUN::ROS::WaitCondition","ALIYUN::ROS::WaitConditionHandle"],"DeployTypes":["ROS"],"ApplicationScenes":["其他"]},"Provider":"ROS","Categories":["Solution"]} |
| TemplateUrl |
string |
URL templat. |
https://ros-public-templates.oss-cn-hangzhou.aliyuncs.com/demo.yml |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 1,
"PageSize": 10,
"RequestId": "C3A8413B-1F16-4DED-AC3E-61A00718DE8A",
"PageNumber": 1,
"Templates": [
{
"TemplateARN": "acs:ros:*:151266687691****:template/a52f81be-496f-4e1c-a286-8852ab54****",
"UpdateTime": "2019-10-15T08:17:14.000000",
"Description": "test-description",
"CreateTime": "2019-10-15T08:17:14.000000",
"TemplateName": "demo",
"TemplateVersion": "v1",
"TemplateId": "4d4f5aa2-3260-4e47-863b-763fbb12****",
"OwnerId": "151266687691****",
"ShareType": "Private",
"ResourceGroupId": "rg-acfmxazb4ph6aiy****",
"Tags": [
{
"Key": "usage",
"Value": "test"
}
],
"AdditionalInfo": {
"DeploymentDuration": null,
"Title": "Self-Built_ElasticSearch_Snapshot_Saved_To_OSS",
"Labels": {
"ResourceTypes": [
"ALIYUN::ECS::Instance",
"ALIYUN::ECS::SecurityGroup",
"ALIYUN::ECS::VPC",
"ALIYUN::ECS::VSwitch",
"ALIYUN::OSS::Bucket",
"ALIYUN::ROS::WaitCondition",
"ALIYUN::ROS::WaitConditionHandle"
],
"DeployTypes": [
"ROS"
],
"ApplicationScenes": [
"其他"
]
},
"Provider": "ROS",
"Categories": [
"Solution"
]
},
"TemplateUrl": "https://ros-public-templates.oss-cn-hangzhou.aliyuncs.com/demo.yml"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.