Queries the auto-renewal states of one or more subscription dedicated hosts.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DedicatedHostIds | string | Yes | The region ID of the dedicated host. | dh-bp165p6xk2tlw61e****,dh-bp1f9vxmno**** |
RegionId | string | Yes | The ID of the request. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"DedicatedHostRenewAttributes": {
"DedicatedHostRenewAttribute": [
{
"PeriodUnit": "Month",
"Duration": 0,
"DedicatedHostId": "dh-bp165p6xk2tlw61e****",
"RenewalStatus": "Normal",
"AutoRenewEnabled": false,
"AutoRenewWithEcs": "StopRenewWithEcs"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | MissingParameter.DedicatedHostId | DedicatedHostId should not be null. | The DedicatedHostId parameter is required. |
403 | InvalidParameter.ToManyDedicatedHostIds | DedicatedHostId should be less than 100. | More than 100 dedicated host IDs are specified in the DedicatedHostIds value. |
403 | InvalidParameter.InvalidDedicatedHostId | %s | The specified DedicatedHostId parameter is invalid. |
403 | IncorrectDedicatedHostStatus | The current status of the resource does not support this operation. | The resource is in a state that does not support the current operation. |
403 | ChargeTypeViolation | Pay-As-You-Go dedicated host do not support this operation. | - |
403 | MissingParamter.InstanceId | InstanceId should not be null. | The instance ID must be specified. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-06-13 | The Error code has changed | see changesets | ||||
|