Queries the list of supported resource types.
Operation description
This topic provides an example of how to query the regular resource types that are 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:
|
Resource |
| Provider |
string |
No |
The provider of the resource type. Valid values:
|
ROS |
| ResourceType |
string |
No |
The resource type. The resource type can contain letters, digits, colons (:), and asterisks (*). An asterisk (*) is used to perform a fuzzy match. |
MODULE::MyOrganization::MyService::MyUsecase |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| ResourceTypes |
array |
The array of resource types. |
|
|
string |
An array of resource types. |
["ALIYUN::ECS::Instance","ALIYUN::RDS::Instance"] |
|
| RequestId |
string |
The request ID. |
EA00860C-ECAF-5253-A1F9-8198695A7157 |
| ResourceTypeSummaries |
array<object> |
The list of resource type summaries. |
|
|
object |
|||
| Provider |
string |
The provider of the resource type. Valid values:
|
ROS |
| EntityType |
string |
The entity type. Valid values:
|
Module |
| ResourceType |
string |
The resource type. |
MODULE::MyOrganization::MyService::MyUsecase |
| DefaultVersionId |
string |
The ID of the default version. |
v1 |
| LatestVersionId |
string |
The ID of the latest version. |
v10 |
| CreateTime |
string |
The time when the resource type was created. The time is displayed in the YYYY-MM-DDThh:mm:ss format in UTC. |
2023-02-24T08:25:21 |
| UpdateTime |
string |
The time when the resource type was updated. The time is displayed in the YYYY-MM-DDThh:mm:ss format in UTC. |
2023-02-24T08:25:21 |
| Description |
string |
The description of the resource type. |
It is a demo. |
| TotalVersionCount |
integer |
The number of versions. |
10 |
The operation that you want to perform. Set the value to ListResourceTypes.
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.