All Products
Search
Document Center

Resource Management:GetServiceLinkedRoleDeletionStatus

Last Updated:Dec 15, 2025

Queries the status of the task that is used to delete a service-linked role.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DeletionTaskIdstringNo

The ID of the deletion task.

task/acs-service-role/hdr.aliyuncs.com/AliyunServiceRoleForHdr/c4d22c52-247f-4ee1-83a2-6c0460bd****

Response parameters

ParameterTypeDescriptionExample
object
Reasonobject

The cause for the failure of the deletion task.

Messagestring

The failure information.

Service-Linked Role acs:ram::196813227629****:role/aliyunserviceroleforhdr cannot be deleted as it is in use by hdr.aliyuncs.com.
RoleUsagesarray<object>

The information about the resources that the service-linked role can use.

RoleUsageobject

The information about the resources that the service-linked role can use.

Regionstring

The region.

global
Resourcesarray

The information about resources.

Resourcestring

The information about resources.

acs:hdr::196813227629****:sitepair/s-000h0y6kld0zwk8l****
RequestIdstring

The request ID.

07194EB1-DB50-4513-A51D-99B30D635AEF
Statusstring

The status of the task.

  • SUCCEEDED
  • IN_PROGRESS
  • FAILED
  • NOT_STARTED
  • INTERNAL_ERROR
FAILED

Examples

Sample success responses

JSONformat

{
  "Reason": {
    "Message": "Service-Linked Role acs:ram::196813227629****:role/aliyunserviceroleforhdr cannot be deleted as it is in use by hdr.aliyuncs.com.",
    "RoleUsages": {
      "RoleUsage": [
        {
          "Region": "global",
          "Resources": {
            "Resource": [
              "acs:hdr::196813227629****:sitepair/s-000h0y6kld0zwk8l****"
            ]
          }
        }
      ]
    }
  },
  "RequestId": "07194EB1-DB50-4513-A51D-99B30D635AEF",
  "Status": "FAILED"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.DeletionTaskIdThe DeletionTaskId is invalid.The DeletionTaskId is invalid.
400InvalidParameter.DeletionTaskId.LengthThe length of DeletionTaskId must be between 26 and 255 characters.The length of DeletionTaskId must be between 26 and 255 characters.
404EntityNotExist.ServiceLinkedRole.DeletionTaskThe deletion task for the given ID does not exist.The deletion task for the given ID does not exist.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history