Delete a service linked role.

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 Required DeleteServiceLinkedRole

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

RoleName String Required AliyunServiceRoleForPolarDB

The name of the role.

Response parameters

Parameter Type Sample response Description
DeletionTaskId String task/acs-service-role/polardb.aliyuncs.com/AliyunServiceRoleForPolarDB/64c4f9cc-fac2-4692-ae1b-804ae4b9****

The ID of the deletion task.

RequestId String B595E5 BF-FF5F-4E7F-B95A-B90FE242FEB6

The ID of the request.

Examples

Sample requests

https://resourcemanager.aliyuncs.com/? Action=DeleteServiceLinkedRole
&RoleName=AliyunServiceRoleForPolarDB
&<Common request parameters>

Sample success responses

XML format

<DeleteServiceLinkedRoleResponse>
      <RequestId>B595E5BF-FF5F-4E7F-B95A-B90FE242FEB6</RequestId>
      <DeletionTaskId>task/acs-service-role/polardb.aliyuncs.com/AliyunServiceRoleForPolarDB/64c4f9cc-fac2-4692-ae1b-804ae4b9****</DeletionTaskId>
</DeleteServiceLinkedRoleResponse>

JSON format

{
    "RequestId": "B595E5BF-FF5F-4E7F-B95A-B90FE242FEB6",
    "DeletionTaskId": "task/acs-service-role/polardb.aliyuncs.com/AliyunServiceRoleForPolarDB/64c4f9cc-fac2-4692-ae1b-804ae4b9****"
}

Error code

HTTP status code Error code Error message Description
404 EntityNotExist.Role The role does not exist. The error message returned because the role does not exist.
404 EntityNotExist.ServiceLinkedRole This role exists but is not a Service Linked Role. The role exists but is not a service linked role.

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