All Products
Search
Document Center

ApsaraDB RDS:CreateServiceLinkedRole

Last Updated:Jul 05, 2024

Creates a service-linked role.

Operation description

Supported database engine

PostgreSQL

References

Note Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.

Service-linked roles

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
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
ServiceLinkedRolestringYes

The name of the service-linked role.

  • AliyunServiceRoleForRdsPgsqlOnEcs: the service-linked role for ApsaraDB RDS for PostgreSQL.
  • AliyunServiceRoleForRDSProxyOnEcs: the service-linked role for the database proxy feature of ApsaraDB RDS for PostgreSQL.
AliyunServiceRoleForRdsPgsqlOnEcs

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

B4CAF581-2AC7-41AD-8940-D56DF7AA****

Examples

Sample success responses

JSONformat

{
  "RequestId": "B4CAF581-2AC7-41AD-8940-D56DF7AA****"
}

Error codes

HTTP status codeError codeError messageDescription
400Caller.NotSupportThe Caller Not Support This Operation .This operation is not supported for the caller.

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

Change history

Change timeSummary of changesOperation
2021-12-23Add OperationView Change Details