All Products
Search
Document Center

EventBridge:CreateServiceLinkedRoleForProduct

Last Updated:Mar 15, 2024

Creates a service-linked role for your cloud service.

Operation description

You can call this API operation to create a service-linked role for your cloud service.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProductNamestringYes

The name of the cloud service or the name of the service-linked role with which the cloud service is associated.

AliyunServiceRoleForEventBridgeSendToMNS

Response parameters

ParameterTypeDescriptionExample
object
Messagestring

The returned message. If the request is successful, success is returned.

success
RequestIdstring

The request ID.

C36345A1-75F3-5A1A-BFCF-33B8271971FA
Codestring

The returned response code. The value Success indicates that the request is successful. Other values indicate that the request failed. For more information about error codes, see Error codes.

Success
Successboolean

Indicates whether the request is successful. Valid values: true and false.

true

Examples

Sample success responses

JSONformat

{
  "Message": "success",
  "RequestId": "C36345A1-75F3-5A1A-BFCF-33B8271971FA",
  "Code": "Success",
  "Success": true
}

Error codes

HTTP status codeError codeError message
403ServiceNotEnableService not enable

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