You can call the DeleteADSetting operation to delete the information about the Active Directory (AD) domain of an ApsaraDB RDS for SQL Server instance.
This operation is available only for ApsaraDB RDS for SQL Server instances.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DeleteADSetting |
The operation that you want to perform. Set the value to DeleteADSetting. |
| ClientToken | String | No | ETnLKlblzczshOTUbOCz***** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. |
| DBInstanceId | String | Yes | rm-bp1k8s41l2o52**** |
The ID of the instance. You can call the DescribeDBInstances operation to query the ID of the instance. |
| RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 1AD222E9-E606-4A42-BF6D-8A4442913CEF |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteADSetting
&ClientToken=ETnLKlblzczshOTUbOCz*****
&DBInstanceId=rm-bp1k8s41l2o52****
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteADSettingResponse>
<RequestId>1AD222E9-E606-4A42-BF6D-8A4442913CEF</RequestId>
</DeleteADSettingResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1AD222E9-E606-4A42-BF6D-8A4442913CEF"
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | The error message returned because this operation is not supported when the instance is in the current state. |
For a list of error codes, visit the API Error Center.