調用DeleteAccount接口刪除賬號。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
請求參數
名稱 | 類型 | 是否必選 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteAccount |
系統規定參數。取值:DeleteAccount。 |
DBInstanceName | String | 是 | pxc-********* |
實例名。 |
AccountName | String | 是 | testaccount |
刪除的賬號名。 |
RegionId | String | 是 | cn-hangzhou |
實例所在地域。 |
SecurityAccountName | String | 否 | securityAccount |
安全管理員賬號名稱。 說明 若已開啟三權分立模式,該參數必填,未開啟三權分立可以不填。
|
SecurityAccountPassword | String | 否 | securityPassword |
安全管理員賬號密碼。 說明 若已開啟三權分立模式,該參數必填,未開啟三權分立可以不填。
|
返回數據
名稱 | 類型 | 示例值 | 描述 |
---|---|---|---|
Message | String | **** |
成功為空,失敗返回錯誤信息。 |
RequestId | String | 9B2F3840-5C98-475C-B269-2D5C3A31797C |
請求ID。 |
Success | Boolean | true |
請求是否成功。 |
示例
請求示例
http(s)://[Endpoint]/?Action=DeleteAccount
&DBInstanceName=pxc-*********
&AccountName=testaccount
&RegionId=cn-hangzhou
&SecurityAccountName=securityAccount
&SecurityAccountPassword=securityPassword
&公共請求參數
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteAccountResponse>
<Message>****</Message>
<RequestId>9B2F3840-5C98-475C-B269-2D5C3A31797C</RequestId>
<Success>true</Success>
</DeleteAccountResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Message" : "****",
"RequestId" : "9B2F3840-5C98-475C-B269-2D5C3A31797C",
"Success" : true
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。