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

IAM.Agency

Element Description

The IAM.Agency element is used to create agencies on IAM, specify entrusted accounts, and grant rights. After an administrator assigns agent operator permissions to an entrusted account user, the user can manage corresponding resources.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

trustDomainName

Yes

Agency domain name

Type: string

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

Suggestion: Customize the value.

name

No

Agency name

Type: string

Value Description: Is an English character string, for example, sample_admin_trust.

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

Suggestion: Customize the value.

roles

Yes

role of agency.

Type: IAM.Agency.Role Array

description

No

Agency detail inforAmation

Type: string

Suggestion: English character string, max length 255.

Relationships Between Elements

None.

Return Value

Property

Type

Description

refName

string

Name of the agency

refID

string

ID of the agency

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
node_templates:
  iamaq9jx:
    type: HuaweiCloud.IAM.Agency
    properties:
      trustDomainName:
        get_input: iamaq9jx_trustDomainName
      roles:
        - roleId:
            get_input: iamaq9jx_roles_0_roleId
        - roleId:
            get_input: iamaq9jx_roles_1_roleId
          projectId:
            get_input: iamaq9jx_roles_1_projectId
      name:
        get_input: iamaq9jx_name
      description:
        get_input: iamaq9jx_description
inputs:
  iamaq9jx_trustDomainName:
    description: Agency domain name
    label: ''
  iamaq9jx_roles_0_roleId:
    description: 'Role id of agency'
    label: ''
  iamaq9jx_roles_1_roleId:
    description: 'Role id of agency'
    label: ''
  iamaq9jx_roles_1_projectId:
    description: ID of the project
    label: ''
  iamaq9jx_name:
    description: Name of the agency
    label: ''
  iamaq9jx_description:
    description: Agency detail inforAmation
    label: ''