Call the ValidateSlrPermission to verify that the service linked role has been created.
Debugging
Request header
This operation uses only common request headers. For more information, see Common parameters.
Request structure
GET /openapi/user/servicerolepermission HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
rolename | String | Query | Yes | AliyunServiceRoleForElasticsearchCollector |
The name of the service linked role. Valid values:
|
ClientToken | String | Query | No | 5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
This parameter 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 contain only ASCII characters and cannot exceed 64 characters in length. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | BC4ED7DD-8C84-49B5-8A95-456F82E44D13 |
The ID of the request. |
Result | Boolean | true |
Indicates whether the service linked role was created. Valid values:
|
Examples
Sample requests
GET /openapi/user/servicerolepermission?rolename=AliyunServiceRoleForElasticsearchCollector HTTP/1.1
common request headers
Sample success responses
JSON
format
{
"Result": true,
"RequestId": "2C77A9B5-6B2A-42D7-9DBB-0166A0D40483"
}
Error codes
For a list of error codes, visit the API Error Center.