Specifies whether instances can be created on a specified host in a dedicated cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyDedicatedHostAttribute

The operation that you want to perform. Set the value to ModifyDedicatedHostAttribute.

RegionId String No cn-hangzhou

The region ID of the host.

DedicatedHostId String Yes ch-bp10a5id3boqi****

The ID of the host. You can call the DescribeDedicatedHosts operation to query the host ID.

HostName String No mysql-host

The name of the host.

AllocationStatus String No 1

Specifies whether instances can be created on the host. Valid values:

  • 1: Instances can be created on the host.
  • 0: Instances cannot be created on the host.

Response parameters

Parameter Type Example Description
RequestId String D6E068C3-25BC-455A-85FE-45F0B22ESFS

The ID of the request.

Examples

Sample requests

http(s)://cddc.aliyuncs.com/?Action=ModifyDedicatedHostAttribute
&RegionId=cn-hangzhou
&DedicatedHostId=ch-bp10a5id3boqi****
&HostName=mysql-host
&AllocationStatus=1
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyDedicatedHostAttributeReponse>
<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ESFS</RequestId>
</ModifyDedicatedHostAttributeReponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "D6E068C3-25BC-455A-85FE-45F0B22ESFS"
}

Error codes

For a list of error codes, visit the API Error Center.