日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

CreateServiceLinkedRole - 創(chuàng)建服務(wù)關(guān)聯(lián)角色

更新時(shí)間:

調(diào)用CreateServiceLinkedRole創(chuàng)建服務(wù)關(guān)聯(lián)角色。

調(diào)試

您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。

授權(quán)信息

下表是API對應(yīng)的授權(quán)信息,可以在RAM權(quán)限策略語句的Action元素中使用,用來給RAM用戶或RAM角色授予調(diào)用此API的權(quán)限。具體說明如下:

  • 操作:是指具體的權(quán)限點(diǎn)。
  • 訪問級(jí)別:是指每個(gè)操作的訪問級(jí)別,取值為寫入(Write)、讀取(Read)或列出(List)。
  • 資源類型:是指操作中支持授權(quán)的資源類型。具體說明如下:
    • 對于必選的資源類型,用背景高亮的方式表示。
    • 對于不支持資源級(jí)授權(quán)的操作,用全部資源表示。
  • 條件關(guān)鍵字:是指云產(chǎn)品自身定義的條件關(guān)鍵字。
  • 關(guān)聯(lián)操作:是指成功執(zhí)行操作所需要的其他權(quán)限。操作者必須同時(shí)具備關(guān)聯(lián)操作的權(quán)限,操作才能成功。
操作訪問級(jí)別資源類型條件關(guān)鍵字關(guān)聯(lián)操作
ram:CreateServiceLinkedRoleWrite
  • Role
    acs:ram:*:{#accountId}:role/*
  • ram:ServiceName

請求參數(shù)

名稱類型必填描述示例值
ServiceNamestring

服務(wù)名稱。

具體信息,請參見支持服務(wù)關(guān)聯(lián)角色的云服務(wù)

polardb.aliyuncs.com
CustomSuffixstring

角色名稱后綴。

角色名稱(含后綴)的總長度為 1~64 個(gè)字符,可包含英文字母、數(shù)字、半角句號(hào)(.)和短劃線(-)。

例如:假設(shè)后綴為Example,則角色名稱為ServiceLinkedRoleName_Example,且最大長度不能超過 64 個(gè)字符。

Example
Descriptionstring

服務(wù)關(guān)聯(lián)角色描述。

只有允許自定義后綴的服務(wù)關(guān)聯(lián)角色才能填寫角色描述,否則,角色描述將使用預(yù)設(shè)值且不能修改。

長度為 1~1024 個(gè)字符。

Service Linked Role for PolarDB. PolarDB will use this role to access your resources in other services.

返回參數(shù)

名稱類型描述示例值
object

返回結(jié)果。

Roleobject

角色信息。

AssumeRolePolicyDocumentstring

角色的信任策略內(nèi)容。

{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"polardb.aliyuncs.com\"]}}],\"Version\":\"1\"}
RolePrincipalNamestring

帶域名后綴的角色名稱。

AliyunServiceRoleForPolarDB@role.test.onaliyunservice.com
Descriptionstring

角色描述。

Service Linked Role for PolarDB. PolarDB will use this role to access your resources in other services.
RoleNamestring

角色名稱。

AliyunServiceRoleForPolarDB
CreateDatestring

角色創(chuàng)建時(shí)間(UTC 時(shí)間)。

2020-06-30T08:14:16Z
Arnstring

角色的資源描述符。

acs:ram::177242285274****:role/aliyunserviceroleforpolardb
RoleIdstring

角色 ID。

32833240981067****
IsServiceLinkedRoleboolean

是否為服務(wù)關(guān)聯(lián)角色。取值:

  • true:是服務(wù)關(guān)聯(lián)角色。
  • false:不是服務(wù)關(guān)聯(lián)角色。
true
RequestIdstring

請求 ID。

FE58D7CF-03BC-432A-B42D-BC3390C8C2E1

示例

正常返回示例

JSON格式

{
  "Role": {
    "AssumeRolePolicyDocument": "{\\\"Statement\\\":[{\\\"Action\\\":\\\"sts:AssumeRole\\\",\\\"Effect\\\":\\\"Allow\\\",\\\"Principal\\\":{\\\"Service\\\":[\\\"polardb.aliyuncs.com\\\"]}}],\\\"Version\\\":\\\"1\\\"}",
    "RolePrincipalName": "AliyunServiceRoleForPolarDB@role.test.onaliyunservice.com",
    "Description": "Service Linked Role for PolarDB. PolarDB will use this role to access your resources in other services.",
    "RoleName": "AliyunServiceRoleForPolarDB",
    "CreateDate": "2020-06-30T08:14:16Z",
    "Arn": "acs:ram::177242285274****:role/aliyunserviceroleforpolardb",
    "RoleId": "32833240981067****",
    "IsServiceLinkedRole": true
  },
  "RequestId": "FE58D7CF-03BC-432A-B42D-BC3390C8C2E1"
}

錯(cuò)誤碼

HTTP status code錯(cuò)誤碼錯(cuò)誤信息描述
400InvalidParameter.CustomSuffix.NotAllowedCustom suffix is not allowed for this Service Linked Role.該服務(wù)關(guān)聯(lián)角色不支持自定義后綴。
400InvalidParameter.CustomSuffix.InvalidCharsThe parameter CustomSuffix contains invalid characters.參數(shù)CustomSuffix包含無效字符。
400InvalidParameter.CustomSuffix.LengthThe maximum length of the parameter CustomSuffix is exceeded.參數(shù)CustomSuffix長度超限。
400InvalidParameter.Description.NotAllowedCustom description is not allowed for default service linked role.-
400InvalidParameter.Description.LengthThe maximum length of the description is exceeded. It must not exceed 1024 characters.描述長度超限。最大不得超過1024個(gè)字符。
404EntityNotExist.ServiceThe service does not exist.該服務(wù)不存在。
409EntityAlreadyExists.RoleThe role already exists.角色已存在。
409LimitExceeded.RoleThe maximum number of roles is exceeded.角色數(shù)量超出限制。

訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。

變更歷史

變更時(shí)間變更內(nèi)容概要操作
暫無變更歷史