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

資源編排ROS集成示例

更新時(shí)間:

本文為您介紹RAM用戶(hù)如何使用資源編排ROS,在DMS中錄入一個(gè)新用戶(hù)。

創(chuàng)建RAM用戶(hù)并完成授權(quán)

  1. 創(chuàng)建RAM用戶(hù)。

    1. 訪問(wèn)RAM用戶(hù)列表,單擊創(chuàng)建用戶(hù)

    2. 設(shè)置登錄名稱(chēng)dms_test,選擇訪問(wèn)方式使用永久 AccessKey 訪問(wèn)

    3. 單擊確定。保存RAM用戶(hù)的UID。

  2. 完成授權(quán)。

    1. 訪問(wèn)RAM用戶(hù)列表,單擊目標(biāo)RAM用戶(hù)操作列的添加權(quán)限

    2. 在文本框中搜索AliyunDMSFullAccessAliyunROSFullAccess策略。

      說(shuō)明

      本示例為了便于演示,使用AliyunDMSFullAccess策略,該策略具有管理DMS資源的權(quán)限。

      在實(shí)際項(xiàng)目中,您也可以按需選擇權(quán)限或定制更加精細(xì)化的自定義策略,更多信息請(qǐng)參見(jiàn)身份管理

    3. 單擊確認(rèn)新增授權(quán),完成授權(quán)操作。

操作步驟

  1. 登錄資源編排ROS控制臺(tái),單擊頂部導(dǎo)航欄地域下拉框,選擇您需要的地域。

  2. 單擊左側(cè)菜單欄中的資源棧,選擇創(chuàng)建資源棧 > 使用ROS

    • 指定模板:選中選擇已有模板

    • 模板錄入方式:選中輸入模板

  3. 模板內(nèi)容選擇ROS,并輸入代碼。

    為了便于展示,本示例僅提供了部分重要參數(shù),例如Uid、UserName、RoleNames。模板的更多參數(shù)說(shuō)明,請(qǐng)參見(jiàn)ALIYUN::DMS::User

    YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
     Status:
      Type: String
      Description: UserStatus
     Uid:
      Type: String
      Description: UserAliYunUid
     UserName:
      Type: String
      Description: UserNickName
     RoleNames:
      Type: Json
      Description: UserRole
     Mobile:
      Type: String
      Description: UserMobile
     Tid:
      Type: String
      Description: ''
    Resources:
     DMSEnterpriseUser:
      Type: 'ALIYUN::DMS::User'
      Properties:
       Status:
        Ref: Status
       Uid:
        Ref: Uid
       UserName:
        Ref: UserName
       RoleNames:
        Ref: RoleNames
       Mobile:
        Ref: Mobile
       Tid:
        Ref: Tid
    Outputs:
     Uid:
      Description: UserAliYunUid
      Value:
       'Fn::GetAtt':
        - DMSEnterpriseUser
        - Uid
     UserName:
      Description: UserNickName
      Value:
       'Fn::GetAtt':
        - DMSEnterpriseUser
        - UserName
     RoleNames:
      Description: UserRole
      Value:
       'Fn::GetAtt':
        - DMSEnterpriseUser
        - RoleNames
     UserId:
      Description: UserId
      Value:
       'Fn::GetAtt':
        - DMSEnterpriseUser
        - UserId
     RoleIds:
      Description: UserRoleId
      Value:
       'Fn::GetAtt':
        - DMSEnterpriseUser
        - RoleIds
     Mobile:
      Description: UserMobile
      Value:
       'Fn::GetAtt':
        - DMSEnterpriseUser
        - Mobile
     ParentUid:
      Description: ParentAliYunUid
      Value:
       'Fn::GetAtt':
        - DMSEnterpriseUser
        - ParentUid

    JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Status": {
          "Type": "String",
          "Description": "UserStatus"
        },
        "Uid": {
          "Type": "String",
          "Description": "UserAliYunUid"
        },
        "UserName": {
          "Type": "String",
          "Description": "UserNickName"
        },
        "RoleNames": {
          "Type": "Json",
          "Description": "UserRole"
        },
        "Mobile": {
          "Type": "String",
          "Description": "UserMobile"
        },
        "Tid": {
          "Type": "String",
          "Description": ""
        }
      },
      "Resources": {
        "DMSEnterpriseUser": {
          "Type": "ALIYUN::DMS::User",
          "Properties": {
            "Status": {
              "Ref": "Status"
            },
            "Uid": {
              "Ref": "Uid"
            },
            "UserName": {
              "Ref": "UserName"
            },
            "RoleNames": {
              "Ref": "RoleNames"
            },
            "Mobile": {
              "Ref": "Mobile"
            },
            "Tid": {
              "Ref": "Tid"
            }
          }
        }
      },
      "Outputs": {
        "Uid": {
          "Description": "UserAliYunUid",
          "Value": {
            "Fn::GetAtt": [
              "DMSEnterpriseUser",
              "Uid"
            ]
          }
        },
        "UserName": {
          "Description": "UserNickName",
          "Value": {
            "Fn::GetAtt": [
              "DMSEnterpriseUser",
              "UserName"
            ]
          }
        },
        "RoleNames": {
          "Description": "UserRole",
          "Value": {
            "Fn::GetAtt": [
              "DMSEnterpriseUser",
              "RoleNames"
            ]
          }
        },
        "UserId": {
          "Description": "UserId",
          "Value": {
            "Fn::GetAtt": [
              "DMSEnterpriseUser",
              "UserId"
            ]
          }
        },
        "RoleIds": {
          "Description": "UserRoleId",
          "Value": {
            "Fn::GetAtt": [
              "DMSEnterpriseUser",
              "RoleIds"
            ]
          }
        },
        "Mobile": {
          "Description": "UserMobile",
          "Value": {
            "Fn::GetAtt": [
              "DMSEnterpriseUser",
              "Mobile"
            ]
          }
        },
        "ParentUid": {
          "Description": "ParentAliYunUid",
          "Value": {
            "Fn::GetAtt": [
              "DMSEnterpriseUser",
              "ParentUid"
            ]
          }
        }
      }
    }
  4. 單擊創(chuàng)建,執(zhí)行資源棧。

  5. 資源棧創(chuàng)建成功后,您可前往資源棧信息輸出頁(yè)簽下查看資源棧狀態(tài)及輸出結(jié)果。

    image

  6. 創(chuàng)建完成后,您可以通過(guò)OpenAPI、SDK或者在DMS查看在DMS錄入的用戶(hù)。在DMS查看用戶(hù)的操作,請(qǐng)參見(jiàn)用戶(hù)管理

    image