CreateSlrRole

Updated at:

Creates a service-linked role for Data Security Center (DSC) and authorizes DSC to access cloud resources.

Operation description

This operation allows DSC to access resources of cloud services such as Object Storage Service (OSS), ApsaraDB RDS, and MaxCompute. After you invoke this operation, the system triggers the automatic creation of a service-linked role named AliyunServiceRoleForSDDP to associate DSC with your resources, and attaches the AliyunServiceRolePolicyForSDDP access policy to the role.

QPS limit

The QPS limit per user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable rate.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sddp:CreateSlrRole

create

*All Resource

*

  • acs:ResourceGroupId
None

Request parameters

Parameter

Type

Required

Description

Example

SourceIp

string

No

[Deprecated] This parameter is deprecated.

106.11.XX.XX

FeatureType

integer

No

[Deprecated] This parameter is deprecated.

2

Lang

string

No

The language of the request and response. Default value: zh_cn. Valid values:

  • zh_cn: Simplified Chinese

  • en_us: English (US)

zh_cn

ServiceName

string

No

The service name of the Alibaba Cloud service for which you want to create a service-linked role to associate with DSC.

sddp.aliyuncs.com

Response elements

Element

Type

Description

Example

object

HasPermission

boolean

Indicates whether the service-linked role was created successfully. Valid values:

  • true: The role was created successfully.

  • false: The role failed to be created.

true

RequestId

string

The ID of the request. This ID is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues.

208B016D-4CB9-4A85-96A5-0B8ED1EBF271

Examples

Success response

JSON format

{
  "HasPermission": true,
  "RequestId": "208B016D-4CB9-4A85-96A5-0B8ED1EBF271"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.