Queries the details of a resource type.
Operation description
The following example queries the details of the ALIYUN::ROS::WaitConditionHandle resource type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:GetResourceType |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The resource type. |
ALIYUN::ROS::WaitConditionHandle |
| VersionId |
string |
No |
The version ID. To query a specific version of the resource type, specify this parameter. Otherwise, the resource type is queried. Note
Only modules support versions. |
v1 |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A28FBA2E-B6B3-5822-AA45-AB875EF23641 |
| Attributes |
object |
The return values of the resource. |
See examples. |
| ResourceType |
string |
The resource type. |
ALIYUN::ROS::WaitConditionHandle |
| Properties |
object |
The properties of the resource. |
See examples. |
| SupportDriftDetection |
boolean |
Indicates whether the resource supports drift detection. Valid values:
|
false |
| SupportScratchDetection |
boolean |
Indicates whether the resource supports resource scenarios. Valid values:
|
false |
| EntityType |
string |
The entity type. Valid values:
Valid values:
|
Resource |
| Provider |
string |
The resource type provider. Valid values:
Valid values:
|
ROS |
| Description |
string |
The description of the resource type. |
It is a demo. |
| DefaultVersionId |
string |
The default version ID. Note
This parameter is returned only when the resource type is queried. |
v1 |
| LatestVersionId |
string |
The latest version ID. Note
This parameter is returned only when the resource type is queried. |
v10 |
| CreateTime |
string |
The time when the resource type was created. The time is displayed in UTC+0 and follows the ISO 8601 standard without the trailing Z. Format: YYYY-MM-DDThh:mm:ss. |
2023-02-24T08:25:21 |
| UpdateTime |
string |
The time when the resource type was updated. The time is displayed in UTC+0 and follows the ISO 8601 standard without the trailing Z. Format: YYYY-MM-DDThh:mm:ss. |
2023-02-24T08:25:21 |
| TotalVersionCount |
integer |
The total number of versions. Note
This parameter is returned only when the resource type is queried. |
10 |
| IsDefaultVersion |
boolean |
Indicates whether the version is the default version. Valid values:
Note
This parameter is returned only when a specific version of the resource type is queried. Valid values:
|
true |
| TemplateBody |
string |
The template content of the module. Note
This parameter is returned only when a specific version of the resource type is queried. |
{"ROSTemplateFormatVersion":"2015-09-01"} |
Examples
Success response
JSON format
{
"RequestId": "A28FBA2E-B6B3-5822-AA45-AB875EF23641",
"Attributes": {
"test": "test",
"test2": 1
},
"ResourceType": "ALIYUN::ROS::WaitConditionHandle",
"Properties": {
"test": "test",
"test2": 1
},
"SupportDriftDetection": false,
"SupportScratchDetection": false,
"EntityType": "Resource",
"Provider": "ROS",
"Description": "It is a demo.",
"DefaultVersionId": "v1",
"LatestVersionId": "v10",
"CreateTime": "2023-02-24T08:25:21\n",
"UpdateTime": "2023-02-24T08:25:21\n",
"TotalVersionCount": 10,
"IsDefaultVersion": true,
"TemplateBody": "{\"ROSTemplateFormatVersion\":\"2015-09-01\"}"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.