You can call this operation to query details about resource types.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetResourceType |
The operation that you want to perform. Set the value to GetResourceType. |
ResourceType | String | Yes | ALIYUN::ROS::WaitConditionHandle |
The type of the resource. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Attributes | Map | {"CurlCli": {},"PowerShellCurlCli": {},"WindowsCurlCli": {}} |
The attributes of the resource. |
Properties | Map | {"Count": {},"Mode": {"Constraints": []}} |
The properties of the resource. |
RequestId | String | B288A0BE-D927-4888-B0F7-B35EF84B6E6 |
The ID of the request. |
ResourceType | String | ALIYUN::ROS::WaitConditionHandle |
The type of the resource. |
SupportDriftDetection | Boolean | false |
Indicates whether the resource supports drift detection. |
Examples
Sample requests
http(s)://ros.aliyuncs.com/? Action=GetResourceType
&ResourceType=ALIYUN::SLB::LoadBalancer
&<Common request parameters>
Sample success responses
XML
format
<GetResourceTypeResponse>
<Attributes class="object">
<CurlCli class="object">
<Description type="string">Convenience attribute, provides curl CLI command prefix, which can be used for signalling handle completion or failure. You can signal success by adding --data-binary '{"status": "SUCCESS"}' , or signal failure by adding --data-binary '{"status": "FAILURE"}'</Description>
</CurlCli>
<PowerShellCurlCli class="object">
<Description type="string">Convenience attribute, provides curl CLI command prefix for PowerShell, which can be used for signalling handle completion or failure. As this cmdlet was introduced in PowerShell 3.0, ensure the version of PowerShell satisfies the constraint. (Show the version via $PSVersionTable.PSVersion.) You can signal success by adding -Body '{"status": "SUCCESS"}' , or signal failure by adding -Body '{"status": "FAILURE"}' </Description>
</PowerShellCurlCli>
<WindowsCurlCli class="object">
<Description type="string">Convenience attribute, provides curl CLI command prefix for Windows, which can be used for signalling handle completion or failure. As Windows does not support curl command, you need to install curl.exe and add it to PATH first. You can signal success by adding --data-binary "{\"status\": \"SUCCESS\"}" , or signal failure by adding --data-binary "{\"status\": \"FAILURE\"}" </Description>
</WindowsCurlCli>
</Attributes>
<Properties class="object">
<Count class="object">
<Default type="number">-1</Default>
<Description type="string">There are 3 preconditions that make Count taking effect:
1.Mode is set to Full.
2.Count >= 0.
3.The id of signal is not specified. If so, it will be a self-increasing integer started from 1. For example, the id of the first signal is 1, the id of the second signal is 2, and so on.
If Count takes effect, signals with id > Count will be deleted before update.
The default value is -1, which means no effect.
It is recommended to quote the same value with WaitCondition.Count. </Description>
<Immutable type="boolean">false</Immutable>
<Required type="boolean">false</Required>
<Type type="string">integer</Type>
<UpdateAllowed type="boolean">true</UpdateAllowed>
</Count>
<Mode class="object">
<Constraints class="array">
<e class="object">
<AllowedValues class="array">
<e type="string">Increment</e>
<e type="string">Full</e>
</AllowedValues>
</e>
</Constraints>
<Default type="string">Full</Default>
<Description type="string">If set to Increment, all old signals will be deleted before update. In this mode, WaitCondition.Count should reference an incremental value instead of a full value, such as ScalingGroupEnable.ScalingRuleArisExecuteResultNumberOfAddedInstances.
If set to Full, no old signal will be deleted unless Count is set. In this mode, WaitCondition.Count should reference a full value, such as the same value with InstanceGroup.MaxAmount. It is recommended to use this mode with Count.
Default to Full. </Description>
<Immutable type="boolean">false</Immutable>
<Required type="boolean">false</Required>
<Type type="string">string</Type>
<UpdateAllowed type="boolean">true</UpdateAllowed>
</Mode>
</Properties>
<RequestId type="string">BA4C8BF3-482E-4B03-A1E3-C60DB7A95DE0</RequestId>
<ResourceType type="string">ALIYUN::ROS::WaitConditionHandle</ResourceType>
<SupportDriftDetection type="boolean">false</SupportDriftDetection>
</GetResourceTypeResponse>
JSON
format
{
"Attributes": {
"CurlCli": {
"Description": "Convenience attribute, provides curl CLI command prefix, which can be used for signalling handle completion or failure. You can signal success by adding --data-binary '{\"status\": \"SUCCESS\"}' , or signal failure by adding --data-binary '{\"status\": \"FAILURE\"}'"
},
"PowerShellCurlCli": {
"Description": "Convenience attribute, provides curl CLI command prefix for PowerShell, which can be used for signalling handle completion or failure. As this cmdlet was introduced in PowerShell 3.0, ensure the version of PowerShell satisfies the constraint. (Show the version via $PSVersionTable.PSVersion.) You can signal success by adding -Body '{\"status\": \"SUCCESS\"}' , or signal failure by adding -Body '{\"status\": \"FAILURE\"}' "
},
"WindowsCurlCli": {
"Description": "Convenience attribute, provides curl CLI command prefix for Windows, which can be used for signalling handle completion or failure. As Windows does not support curl command, you need to install curl.exe and add it to PATH first. You can signal success by adding --data-binary \"{\\\"status\\\": \\\"SUCCESS\\\"}\" , or signal failure by adding --data-binary \"{\\\"status\\\": \\\"FAILURE\\\"}\" "
}
},
"Properties": {
"Count": {
"Default": -1,
"Description": "There are 3 preconditions that make Count taking effect:\n1.Mode is set to Full.\n2.Count >= 0.\n3.The id of signal is not specified. If so, it will be a self-increasing integer started from 1. For example, the id of the first signal is 1, the id of the second signal is 2, and so on.\n\nIf Count takes effect, signals with id > Count will be deleted before update.\nThe default value is -1, which means no effect.\nIt is recommended to quote the same value with WaitCondition.Count.",
"Immutable": false,
"Required": false,
"Type": "integer",
"UpdateAllowed": true
},
"Mode": {
"Constraints": [
{
"AllowedValues": [
"Increment",
"Full"
]
}
],
"Default": "Full",
"Description": "If set to Increment, all old signals will be deleted before update. In this mode, WaitCondition.Count should reference an incremental value instead of a full value, such as ScalingGroupEnable.ScalingRuleArisExecuteResultNumberOfAddedInstances.\n\nIf set to Full, no old signal will be deleted unless Count is set. In this mode, WaitCondition.Count should reference a full value, such as the same value with InstanceGroup.MaxAmount. It is recommended to use this mode with Count.\n\nDefault to Full.",
"Immutable": false,
"Required": false,
"Type": "string",
"UpdateAllowed": true
}
},
"RequestId": "BA4C8BF3-482E-4B03-A1E3-C60DB7A95DE0",
"ResourceType": "ALIYUN::ROS::WaitConditionHandle",
"SupportDriftDetection": false
}
Error codes
For a list of error codes, visit the API Error Center.
HTTP status code |
Error code |
Error message |
Description |
---|---|---|---|
404 |
ResourceTypeNotFound |
The Resource Type ({name}) could not be found. |
The error message returned because the specified resource type does not exist. name indicates the name of the resource type. |