Mengambil daftar tipe resource yang didukung.
Deskripsi operasi
Topik ini memberikan contoh cara mengambil tipe resource reguler yang didukung oleh ROS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ListResourceTypes |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EntityType |
string |
No |
Tipe entitas. Nilai yang valid:
Valid values:
|
Resource |
| Provider |
string |
No |
Penyedia tipe resource. Nilai yang valid:
Valid values:
|
ROS |
| ResourceType |
string |
No |
Tipe resource. Tipe resource dapat berisi huruf, angka, tanda titik dua (:), dan tanda bintang (*). Tanda bintang (*) digunakan untuk melakukan pencocokan fuzzy. |
MODULE::MyOrganization::MyService::MyUsecase |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| ResourceTypes |
array |
Array tipe resource. |
|
|
string |
Array tipe resource. |
["ALIYUN::ECS::Instance","ALIYUN::RDS::Instance"] |
|
| RequestId |
string |
ID permintaan. |
EA00860C-ECAF-5253-A1F9-8198695A7157 |
| ResourceTypeSummaries |
array<object> |
Daftar ringkasan tipe resource. |
|
|
object |
|||
| Provider |
string |
Penyedia tipe resource. Nilai yang valid:
Valid values:
|
ROS |
| EntityType |
string |
Tipe entitas. Nilai yang valid:
Valid values:
|
Module |
| ResourceType |
string |
Tipe resource. |
MODULE::MyOrganization::MyService::MyUsecase |
| DefaultVersionId |
string |
ID versi default. |
v1 |
| LatestVersionId |
string |
ID versi terbaru. |
v10 |
| CreateTime |
string |
Waktu saat tipe resource dibuat. Waktu ditampilkan dalam format YYYY-MM-DDThh:mm:ss dalam UTC. |
2023-02-24T08:25:21 |
| UpdateTime |
string |
Waktu saat tipe resource diperbarui. Waktu ditampilkan dalam format YYYY-MM-DDThh:mm:ss dalam UTC. |
2023-02-24T08:25:21 |
| Description |
string |
Deskripsi tipe resource. |
It is a demo. |
| TotalVersionCount |
integer |
Jumlah versi. |
10 |
Operasi yang ingin Anda lakukan. Tetapkan nilainya ke ListResourceTypes.
Contoh
Respons sukses
JSONformat
{
"ResourceTypes": [
"[\"ALIYUN::ECS::Instance\",\"ALIYUN::RDS::Instance\"]"
],
"RequestId": "EA00860C-ECAF-5253-A1F9-8198695A7157",
"ResourceTypeSummaries": [
{
"Provider": "ROS",
"EntityType": "Module",
"ResourceType": "MODULE::MyOrganization::MyService::MyUsecase",
"DefaultVersionId": "v1",
"LatestVersionId": "v10",
"CreateTime": "2023-02-24T08:25:21",
"UpdateTime": "2023-02-24T08:25:21",
"Description": "It is a demo.",
"TotalVersionCount": 10
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.