Creates a service-linked role (SLR) for a product.
Operation description
Creates a service-linked role (SLR) for a 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 name of the SLR that is associated with the cloud service.
|
AliyunServiceRoleForEventBridgeSendToMNS |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| Message |
string |
The response 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. A value of "Success" indicates that the request was successful. For more information about other values, see Error codes. |
Success |
| Success |
boolean |
Indicates whether the request was successful. A value of `true` indicates success. |
true |
| HttpCode |
integer |
The HTTP status code.
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.