Creates the service-linked role (SLR) that is associated with a specified product.
Operation description
Creates the service-linked role (SLR) that is associated with a specified product.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductName |
string |
Yes |
The name of the cloud service or the service-linked role (SLR) that is associated with the service.
|
AliyunServiceRoleForEventBridgeSendToMNS |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Message |
string |
The returned message. If the request is successful, `success` is returned. |
success |
| RequestId |
string |
The ID of the request. |
C36345A1-75F3-5A1A-BFCF-33B8271971FA |
| Code |
string |
The status code of the request. `Success` indicates that the request was successful. For more information about error codes, see the Error codes section. |
Success |
| Success |
boolean |
Indicates whether the request was successful. If the request is successful, `true` is returned. |
true |
| HttpCode |
integer |
The HTTP status code. Valid values:
If this parameter is not specified, all HTTP status codes are queried. |
200 |
Examples
Success response
JSON format
{
"Message": "success",
"RequestId": "C36345A1-75F3-5A1A-BFCF-33B8271971FA",
"Code": "Success",
"Success": true,
"HttpCode": 200
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.