All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::EdsUser::User

更新時間:Jul 04, 2023

ALIYUN::EdsUser::User is used to create a convenience user.

Syntax

{
  "Type": "ALIYUN::EdsUser::User",
  "Properties": {
    "OrgId": String,
    "OwnerType": String,
    "EndUserId": String,
    "Email": String,
    "Phone": String,
    "Remark": String,
    "Password": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

OrgId

String

No

No

The organization to which the convenience user belongs.

None.

OwnerType

String

No

No

The type of the account ownership.

Valid values:

  • Normal: user-activated

  • CreateFromManager: administrator-activated

EndUserId

String

Yes

No

The name of the convenience user.

The name must be 3 to 24 characters in length, and can contain lowercase letters, digits, and underscores (_).

Email

String

No

Yes

The email address of the convenience user.

The email address is used to receive notifications about events such as desktop assignment. You must specify one of Email and Phone.

Phone

String

No

Yes

The mobile number of the convenience user.

The mobile number is used to receive text messages about events such as desktop assignment. You must specify one of Email and Phone.

Remark

String

No

No

The remarks on the convenience user.

None.

Password

String

No

No

The password.

None.

Return values

Fn::GetAtt

EndUserId: The name of the convenience user.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  EndUserId:
    Type: String
    Description: The name of the end user. The name must be 3 to 24 characters in length, and can contain lowercase letters, digits, and underscores (_).
    Default: test123
  Phone:
    Type: String
    Description: Mobile numbers are not supported on the international site (alibabacloud.com).
    Default: '********'
Resources:
  User:
    Type: ALIYUN::EdsUser::User
    Properties:
      EndUserId:
        Ref: EndUserId
      Phone:
        Ref: Phone
Outputs:
  EndUserId:
    Description: The name of the end user.
    Value:
      Fn::GetAtt:
        - User
        - EndUserId

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "EndUserId": {
      "Type": "String",
      "Description": "The name of the end user. The name must be 3 to 24 characters in length, and can contain lowercase letters, digits, and underscores (_).",
      "Default": "test123"
    },
    "Phone": {
      "Type": "String",
      "Description": "Mobile numbers are not supported on the international site (alibabacloud.com).",
      "Default": "********"
    }
  },
  "Resources": {
    "User": {
      "Type": "ALIYUN::EdsUser::User",
      "Properties": {
        "EndUserId": {
          "Ref": "EndUserId"
        },
        "Phone": {
          "Ref": "Phone"
        }
      }
    }
  },
  "Outputs": {
    "EndUserId": {
      "Description": "The name of the end user.",
      "Value": {
        "Fn::GetAtt": [
          "User",
          "EndUserId"
        ]
      }
    }
  }
}