Queries the list of supported resource types.
Operation description
This topic provides an example of how to query the list of regular resource types supported by ROS.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ListResourceTypes |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EntityType |
string |
No |
The entity type. Valid values:
Valid values:
|
Resource |
| Provider |
string |
No |
The resource type provider. Valid values:
Valid values:
|
ROS |
| ResourceType |
string |
No |
The resource type. The value can contain uppercase and lowercase letters, digits, colons (:), and asterisks (*). If an asterisk is used, fuzzy match is performed. |
MODULE::MyOrganization::MyService::MyUsecase |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ResourceTypes |
array |
The resource type array. |
|
|
string |
The resource type array. |
["ALIYUN::ECS::Instance","ALIYUN::RDS::Instance"] |
|
| RequestId |
string |
The request ID. |
EA00860C-ECAF-5253-A1F9-8198695A7157 |
| ResourceTypeSummaries |
array<object> |
The resource type summary list. |
|
|
object |
|||
| Provider |
string |
The resource type provider. Valid values:
Valid values:
|
ROS |
| EntityType |
string |
The entity type. Valid values:
Valid values:
|
Module |
| ResourceType |
string |
The resource type. |
MODULE::MyOrganization::MyService::MyUsecase |
| DefaultVersionId |
string |
The default version ID. |
v1 |
| LatestVersionId |
string |
The latest version ID. |
v10 |
| CreateTime |
string |
The creation time. The time is displayed in UTC+0 based on the ISO 8601 standard but without the Z suffix. Format: YYYY-MM-DDThh:mm:ss. |
2023-02-24T08:25:21 |
| UpdateTime |
string |
The update time. The time is displayed in UTC+0 based on the ISO 8601 standard but without the Z suffix. Format: YYYY-MM-DDThh:mm:ss. |
2023-02-24T08:25:21 |
| Description |
string |
The resource type description. |
It is a demo. |
| TotalVersionCount |
integer |
The total number of versions. |
10 |
Examples
Success response
JSON format
{
"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
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.