Updated on 2023-08-11 GMT+08:00

IAM.UserGroup

Element Description

The IAM.UserGroup element is used to create a user group.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

description

No

user group detail inforAmation

Type: string

Suggestion: English character string, max length 255.

roles

Yes

role of user group.

Type: IAM.Agency.Role Array

name

Yes

user group name

Type: string

Value Description: Is an English character string

Value Constraint: Supports a 1-64 string, the string that consists of letters, digits.

Suggestion: Customize the value.

Relationships Between Elements

None.

Return Value

Property

Type

Description

refName

string

Name of the user group

refID

string

ID of the user group

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
node_templates:
  iamugm9y:
    type: HuaweiCloud.IAM.UserGroup
    properties:
      name:
        get_input: iamugm9y_name
      roles:
        - roleId:
            get_input: iamugm9y_roles_0_roleId
          projectId:
            get_input: iamugm9y_roles_0_projectId
      description:
        get_input: iamugm9y_description
inputs:
  iamugm9y_name:
    description: user group name
    label: ''
  iamugm9y_roles_0_roleId:
    description: 'role id'
    label: ''
  iamugm9y_roles_0_projectId:
    description: project id
    label: ''
  iamugm9y_description:
    description: user group detail information
    label: ''