# Alibaba Cloud Resource Directory API

> Alibaba Cloud Resource Directory API on Apizie: 75 endpoints (Accepts an invitation by the invited Alibaba Cloud account, Adds a message notification contact, Associates a contact with a resource directory, folder, or member account, Attaches a control policy to a specified target node, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:aliyun-resourcedirectorymaster`
- Category: Cloud
- Status: byok
- Source: https://api.alibabacloud.com/product/resourcedirectorymaster
- Page: https://apizie.tech/api/cloud/aliyun-resourcedirectorymaster
- OpenAPI: https://apizie.tech/api/cloud/aliyun-resourcedirectorymaster/openapi.json

Alibaba Cloud OpenAPI for Resource Directory (resourcedirectorymaster, version 2022-04-19). Calls are signed with ACS3-HMAC-SHA256 using your AccessKey ID and secret.

## Endpoints

### Accepts an invitation by the invited Alibaba Cloud account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/accept-handshake` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| HandshakeId | string | yes | The handshake ID. You can invoke [ListHandshakesForAccount](~~ListHandshakesForAccount~~) to obtain the handshake ID. This operation must… |

### Adds a message notification contact
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/add-message-contact` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| Name | string | yes | The name of the contact. The contact name must be unique within the resource directory. Format: 2 to 12 characters in length, which can… |
| EmailAddress | string | yes | The email address of the contact. After you add an email address, you must call… |
| PhoneNumber | string | no | The phone number of the contact. Format: ` - `. Only phone numbers in the Chinese mainland in the format `86- ` are supported. After you… |
| Title | string | yes | The job title of the contact |
| MessageTypes | string | yes | The message types that the contact receives (JSON-encoded) |

### Associates a contact with a resource directory, folder, or member account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/associate-members` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | no | The contact ID |
| Members | string | no | The association targets (JSON-encoded) |

### Attaches a control policy to a specified target node
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/attach-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PolicyId | string | yes | The ID of the control policy |
| TargetId | string | yes | The ID of the target node. Valid values: Root ID: attaches the control policy to the Root resource folder. Resource folder ID: attaches… |

### Binds a mobile phone number to a member of the resource account type in a resource directory for security…
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/bind-secure-mobile-phone` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| VerificationCode | string | yes | The verification code. You can call the [SendVerificationCodeForBindSecureMobilePhone](~~SendVerificationCodeForBindSecureMobilePhone~~)… |
| SecureMobilePhone | string | yes | The mobile phone number that you want to bind to the member for security purposes. The mobile phone number you specify must be the same as… |
| AccountId | string | yes | The Alibaba Cloud account ID of the member |

### Cancels the email address change of a member
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/cancel-change-account-email` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member |

### Cancels an invitation
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/cancel-handshake` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| HandshakeId | string | yes | The ID of the invitation |

### Cancels the update of the mobile phone number or email address of a contact
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/cancel-message-contact-update` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | no | The ID of the contact |
| PhoneNumber | string | no | The mobile phone number of the contact. Specify the mobile phone number in the ` - ` format |
| EmailAddress | string | no | The email address of the contact |

### Changes the email address that is bound to a member
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/change-account-email` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member |
| Email | string | yes | The email address to be bound to the member. The system automatically sends a verification email to the email address. After the… |

### Performs a pre-deletion check on a member account by calling CheckAccountDelete
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/check-account-delete` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The ID of the member account to be deleted |

### Creates a custom control policy by calling CreateControlPolicy
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/create-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PolicyName | string | yes | Policy Name of the control policy. Policy Name must be 1 to 128 characters in length, must start with a letter, and can contain letters,… |
| Description | string | no | The description of the control policy. The description must be 1 to 1,024 characters in length, must start with a letter, and can contain… |
| EffectScope | string | yes | The effective scope of the control policy. Valid values: RAM, which indicates that the control policy takes effect only for Resource… |
| PolicyDocument | string | yes | The content of the control policy. The maximum length is 4,096 characters. For information about the control policy language, see… |
| Tag | string | no | The tags of the control policy (JSON-encoded) |
| ControlPolicyType | string | no | The type of the control policy. Valid values: CONTROL_POLICY: control policy. RESOURCE_CONTROL_POLICY: resource control policy. Default… |

### Creates a resource folder by calling CreateFolder
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/create-folder` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ParentFolderId | string | no | The ID of the parent resource folder |
| FolderName | string | yes | The name of the resource folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods… |
| Tag | string | no | The tags of the resource folder (JSON-encoded) |

### Creates a member of the resource account type by calling CreateResourceAccount
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/create-resource-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| DisplayName | string | yes | The display name of the member. Length: 2 to 50 characters. Format: Can contain letters, digits, underscores (_), periods (.), hyphens… |
| ParentFolderId | string | no | The ID of the parent folder |
| PayerAccountId | string | no | The ID of the billing account. If you leave this parameter empty, the newly created member pays for its own resource consumption |
| AccountNamePrefix | string | no | The prefix of the account name. If you leave this parameter empty, the system randomly generates a prefix. Length: 2 to 50 characters.… |
| Tag | string | no | The tags of the member (JSON-encoded) |
| ResellAccountType | string | no | The identity type of the member. Valid values: resell (default): reseller account. The created member automatically establishes a reseller… |
| DryRun | string | no | Specifies whether to perform only a dry run for the request. Valid values: true: performs a dry run without actually creating the member.… |

### Declines an invitation by calling DeclineHandshake
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/decline-handshake` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| HandshakeId | string | yes | The invitation ID |

### Deletes a member of the resource account type
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/delete-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member that you want to delete |
| AbandonableCheckId | string | no | The IDs of the check items that you can choose to ignore for the member deletion. You can obtain the IDs from the response of the… |

### Deletes a custom access control policy
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/delete-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PolicyId | string | yes | The ID of the access control policy |

### Deletes a folder
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/delete-folder` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| FolderId | string | yes | The ID of the folder |

### Deletes a contact
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/delete-message-contact` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | yes | The ID of the contact |
| RetainContactInMembers | string | no | Specifies whether to retain the contact for members. Valid values: true (default): retains the contact for members. In this case, the… |

### Removes a delegated administrator account for a trusted service
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/deregister-delegated-administrator` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member in the resource directory |
| ServicePrincipal | string | yes | The identifier of the trusted service |

### Disables a resource directory. This operation cannot be undone. Therefore, proceed with caution
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/destroy-resource-directory` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |

### Detaches an access control policy
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/detach-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PolicyId | string | yes | The ID of the access control policy |
| TargetId | string | yes | The ID of the object from which you want to detach the access control policy. Access control policies can be attached to the following… |

### Disables the control policy feature
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/disable-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ControlPolicyType | string | no | The type of the control policy. Valid values: `CONTROL_POLICY`: control policy. `RESOURCE_CONTROL_POLICY`: resource control policy.… |

### Disassociates a contact from a resource directory, folder, or member
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/disassociate-members` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | yes | The contact ID |
| Members | string | yes | The disassociation targets (JSON-encoded) |

### Enables the control policy feature by calling EnableControlPolicy
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/enable-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ControlPolicyType | string | no | The type of the control policy. Valid values: `CONTROL_POLICY`: control policy. `RESOURCE_CONTROL_POLICY`: resource control policy.… |

### Enables a resource directory
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/enable-resource-directory` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| MAName | string | no | The name of the new management account. Format: ` @rdadmin.aliyunid.com`. The can contain letters, digits, and the special characters… |
| MASecureMobilePhone | string | no | The secure phone number of the new management account. If you leave this parameter empty, the secure phone number of the current logon… |
| VerificationCode | string | no | The verification code. You can call [SendVerificationCodeForEnableRD](~~SendVerificationCodeForEnableRD~~) to obtain the verification code |
| EnableMode | string | yes | The method used to enable the resource directory. Valid values: CurrentAccount: uses the current logon account to enable the resource… |
| DryRun | string | no | Specifies whether to perform only a dry run for the request. Valid values: true: performs a dry run for enabling the resource directory… |

### Queries the information about a member account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The member account ID |
| IncludeTags | string | no | Specifies whether to return tag information. Valid values: false (default): Does not return tag information. true: Returns tag information |

### Queries the result of a member deletion check
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-account-deletion-check-result` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member that you want to delete |

### Queries the deletion status of a member account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-account-deletion-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The member account ID |

### Queries the details of a control policy
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PolicyId | string | yes | The ID of the control policy |
| Language | string | no | The language in which the control policy description is returned. Valid values: zh-CN (default): Chinese. en: English. ja: Japanese. This… |

### Queries the enablement status of the control policy feature by calling GetControlPolicyEnablementStatus
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-control-policy-enablement-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ControlPolicyType | string | no | The type of the control policy. Valid values: `CONTROL_POLICY`: control policy. `RESOURCE_CONTROL_POLICY`: resource control policy.… |

### Retrieves the information about a folder
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-folder` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| FolderId | string | yes | The folder ID |

### Queries the information of an invitation
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-handshake` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| HandshakeId | string | yes | The ID of the invitation |

### Queries contact information
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-message-contact` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | yes | The contact ID |

### Queries the deletion status of a contact
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-message-contact-deletion-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | no | The ID of the contact |

### Queries the information of a billing account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-payer-for-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The ID of the billing account |

### Queries the information about a resource directory. If a management account calls this operation, the…
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/get-resource-directory` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |

### Invites an account to join a resource directory
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/invite-account-to-resource-directory` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| TargetEntity | string | yes | The ID or logon email address of the account that you want to invite |
| TargetType | string | yes | The type of the invited account. Valid values: Account: indicates the ID of the account. Email: indicates the logon email address of the… |
| Note | string | no | The description of the invitation. The description can be up to 1,024 characters in length |
| Tag | string | no | The tags (JSON-encoded) |
| ParentFolderId | string | no | The ID of the parent folder |

### Queries a list of members in a resource directory
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-accounts` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PageNumber | integer | no | The number of the page to return. Pages start from page 1. Default value: 1 |
| PageSize | integer | no | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10 |
| QueryKeyword | string | no | The keyword used for the query, such as the display name of a member. Fuzzy match is supported |
| Tag | string | no | The tags. This parameter specifies a filter condition (JSON-encoded) |
| IncludeTags | string | no | Specifies whether to return information about tags. Valid values: false (default value) true |
| MaxResults | integer | no | The number of entries per page. After you configure this parameter, token-based paging is preferentially used. Valid values: 1 to 100.… |
| NextToken | string | no | The pagination token that is used in the next request to retrieve a new page of results. If you leave this parameter empty, the query… |

### Queries the information of members in a folder
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-accounts-for-parent` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ParentFolderId | string | no | The ID of the folder |
| QueryKeyword | string | no | The keyword used for the query, such as the display name of a member. Fuzzy match is supported |
| PageNumber | integer | no | The number of the page to return. Pages start from page 1. Default value: 1 |
| PageSize | integer | no | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10 |
| Tag | string | no | The tags. This parameter specifies a filter condition (JSON-encoded) |
| IncludeTags | string | no | Specifies whether to return information about tags. Valid values: false (default value) true |

### Queries information about all parent folders of a specified folder
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-ancestors` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ChildId | string | yes | The ID of the child folder |

### Queries the members that have query permissions
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-authorized-accounts` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PageNumber | integer | no | The page number. Pages start from page 1. Default value: 1 |
| PageSize | integer | no | The number of entries per page. Valid values: 1 to 100. Default value: 10 |

### Queries the folders that you have query permissions for
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-authorized-folders` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PageNumber | integer | no | The page number. Pages start from page 1. Default value: 1 |
| PageSize | integer | no | The number of entries per page. Valid values: 1 to 100. Default value: 10 |

### Queries a list of control policies
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-control-policies` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PolicyType | string | no | The type of the control policy. Valid values: System: system control policy. Custom: custom control policy |
| PageNumber | integer | no | The page number. Minimum value: 1. Default value: 1 |
| PageSize | integer | no | The number of entries per page. Valid values: 1 to 100. Default value: 10 |
| Language | string | no | The language in which the description of the control policy is returned. Valid values: zh-CN (default): Chinese. en: English. ja:… |
| Tag | string | no | The tags (JSON-encoded) |
| ControlPolicyType | string | no | The type of the control policy. Valid values: CONTROL_POLICY: control policy. RESOURCE_CONTROL_POLICY: resource control policy. Default… |

### Queries the list of control policies attached to a folder or member account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-control-policy-attachments-for-target` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| TargetId | string | yes | The target node. Valid values: Root ID: Queries the control policies attached to the Root node. Folder ID: Queries the control policies… |
| Language | string | no | The language in which the control policy descriptions are returned. Valid values: zh-CN (default): Chinese. en: English. ja: Japanese.… |
| ControlPolicyType | string | no | The type of the control policy. Valid values: CONTROL_POLICY: control policy. RESOURCE_CONTROL_POLICY: resource control policy. Default… |

### Queries delegated administrator accounts
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-delegated-administrators` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ServicePrincipal | string | no | The identifier of the trusted service. For more information, see the `Trusted service identifier` column in… |
| PageNumber | integer | no | The number of the page to return. Pages start from page 1. Default value: 1 |
| PageSize | integer | no | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10 |

### Lists the trusted services for which the specified member account is a delegated administrator
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-delegated-services-for-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The ID of the member account |
| NextToken | string | no | The pagination token for retrieving the next page of results. Omit this parameter for the first request. If a previous response was… |
| MaxResults | integer | no | The maximum number of entries to return on a single page. Valid values: 1 to 100. Default value: 10 |

### Queries the list of subfolders of a specified folder
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-folders-for-parent` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ParentFolderId | string | no | The ID of the parent folder. If this parameter is left empty, the subfolders at the next level under the Root folder are queried |
| QueryKeyword | string | no | The query keyword, such as the folder name. Fuzzy match is supported |
| PageNumber | integer | no | The page number. Minimum value: 1. Default value: 1 |
| PageSize | integer | no | The number of entries per page. Valid values: 1 to 100. Default value: 10 |
| Tag | string | no | Filters by tag (JSON-encoded) |

### Queries the invitations that are associated with an account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-handshakes-for-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PageNumber | integer | no | The number of the page to return. Pages start from page 1. Default value: 1 |
| PageSize | integer | no | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10 |

### Queries invitations in a resource directory
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-handshakes-for-resource-directory` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PageNumber | integer | no | The number of the page to return. Pages start from page 1. Default value: 1 |
| PageSize | integer | no | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10 |

### Queries the mobile phone number or email address to be verified for a contact
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-message-contact-verifications` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | no | The ID of the contact |
| PageNumber | integer | no | The page number |
| PageSize | integer | no | The number of entries per page |

### Queries the list of contacts
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-message-contacts` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | no | The contact ID |
| Member | string | no | The ID of the binding target. Valid values: Resource directory ID. Resource folder ID. Member ID |
| PageNumber | integer | no | The page number |
| PageSize | integer | no | The number of entries per page |

### Queries tag keys
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-tag-keys` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| NextToken | string | no | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the… |
| MaxResults | integer | no | The maximum number of entries to return for a single request. Valid values: 1 to 100. Default value: 10 |
| ResourceType | string | yes | The resource type. The value Account indicates the members of the resource directory |
| KeyFilter | string | no | The tag key for a fuzzy query |

### Queries the tags that are added to the members in a resource directory
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-tag-resources` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| NextToken | string | no | The token that is used to start the next query |
| MaxResults | integer | no | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10 |
| Tag | string | no | The tags. This parameter specifies a filter condition for the query. You can specify a maximum of 20 tags (JSON-encoded) |
| ResourceId | string | no | The Alibaba Cloud account IDs of the members. This parameter specifies a filter condition for the query. If you want to query the tags… |
| ResourceType | string | yes | The type of the objects whose tags you want to query. This parameter specifies a filter condition for the query. Valid values: Account:… |

### Queries the tag values of a tag key
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-tag-values` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| NextToken | string | no | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the… |
| MaxResults | integer | no | The maximum number of entries to return for a single request. Valid values: 1 to 100. Default value: 10 |
| ResourceType | string | yes | The resource type. The value Account indicates the members of the resource directory |
| TagKey | string | yes | The tag key. This parameter specifies a filter condition for the query |
| ValueFilter | string | no | The tag value for a fuzzy query |

### Queries the target nodes to which a control policy is attached
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-target-attachments-for-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PolicyId | string | yes | The ID of the control policy |
| PageNumber | integer | no | The page number. Minimum value: 1. Default value: 1 |
| PageSize | integer | no | The number of entries per page. Valid values: 1 to 100. Default value: 10 |

### Queries the list of trusted services enabled for the management account or a delegated administrator account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/list-trusted-service-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PageNumber | integer | no | The page number. Minimum value: 1. Default value: 1 |
| PageSize | integer | no | The number of entries per page. Valid values: 1 to 100. Default value: 10 |
| AdminAccountId | string | no | The management account or a delegated administrator account. Valid values: Management account (default): queries the trusted services… |

### Moves a member from a folder to another
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/move-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member that you want to move |
| DestinationFolderId | string | yes | The ID of the destination folder |

### Checks whether a management account or member can be used as a main financial account
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/precheck-for-consolidated-billing-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| BillingAccountId | string | yes | The ID of the management account or member to be used as a main financial account |

### Specifies a member in a resource directory as a delegated administrator account of a trusted service
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/register-delegated-administrator` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member in the resource directory |
| ServicePrincipal | string | yes | The identifier of the trusted service. For more information, see the `Trusted service identifier` column in… |

### Removes a member of the cloud account type
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/remove-cloud-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The ID of the member of the cloud account type to be removed |

### Resends a verification email for the email address change of a member
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/retry-change-account-email` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member |

### Sends verification information to the email address of a contact
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/send-email-verification-for-message-contact` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | no | The ID of the contact |
| EmailAddress | string | no | The email address of the contact. The specified email address must be the one you specify when you call… |

### Sends verification information to the mobile phone number of a contact
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/send-phone-verification-for-message-contact` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | no | The ID of the contact |
| PhoneNumber | string | no | The mobile phone number of the contact. The value must be in the ` - ` format. The specified mobile phone number must be the one you… |

### Sends a verification code to a secure phone number when you set the secure phone number for a member of the…
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/send-verification-code-for-bind-secure-mobile-phone` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| SecureMobilePhone | string | yes | The secure phone number. Format: - . Only phone numbers in the Chinese mainland in the format of `86- ` are supported. Phone numbers in… |
| AccountId | string | yes | The account ID of the member |

### Sends a verification code to the mobile phone number bound to a newly created account when you use the…
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/send-verification-code-for-enable-rd` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| SecureMobilePhone | string | no | The mobile phone number that is bound to the newly created account. If you leave this parameter empty, the mobile phone number that is… |

### Enables or disables the member deletion feature
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/set-member-deletion-permission` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| Status | string | yes | Specifies whether to enable the member deletion feature. Valid values: Enabled: enables the member deletion feature. Disabled: disables… |

### Enables or disables the Member Display Name Synchronization feature
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/set-member-display-name-sync-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| Status | string | yes | The status of the Member Display Name Synchronization feature. Valid values: Enabled: The feature is enabled. This indicates that the… |

### Attaches tags to members in a resource directory
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/tag-resources` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ResourceId | string | yes | The IDs of the members. You can specify up to 50 member IDs (JSON-encoded) |
| Tag | string | yes | The tags. You can attach up to 20 tags (JSON-encoded) |
| ResourceType | string | yes | The resource type. Valid value: Account: Attaches tags to members in a resource directory |

### Removes tags from the members in a resource directory
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/untag-resources` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| All | string | no | Specifies whether to remove all tags from the specified members. Valid values: false (default value) true |
| ResourceId | string | yes | The Alibaba Cloud account IDs of the members. You can specify a maximum of 50 IDs (JSON-encoded) |
| TagKey | string | no | The tag keys. You can specify a maximum of 20 tag keys. If you set the `All` parameter to `true`, you do not need to specify tag keys… |
| ResourceType | string | yes | The type of the objects from which you want to remove tags. Valid values: Account: member |

### Changes the display name of a member, or switches the type of a member
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/update-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| NewDisplayName | string | no | The new display name of the member. You can specify either `NewDisplayName` or `NewAccountType` |
| NewAccountType | string | no | The new type of the member. Valid values: ResourceAccount: resource account CloudAccount: cloud account You can specify either… |
| AccountId | string | yes | The Alibaba Cloud account ID of the member |
| DryRun | string | no | Specifies whether to perform only a dry run, without performing the actual request. Valid values: true: performs only a dry run. The… |

### Modifies a custom control policy by calling UpdateControlPolicy
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/update-control-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| PolicyId | string | yes | The ID of the control policy |
| NewPolicyName | string | no | The new Policy Name of the control policy. The name must be 1 to 128 characters in length, must start with a letter, and can contain… |
| NewDescription | string | no | The new description of the control policy. The description must be 1 to 1,024 characters in length, must start with a letter, and can… |
| NewPolicyDocument | string | no | The new document of the control policy. The maximum length is 4,096 characters. For information about the control policy language, see… |

### Modifies the name of a folder by calling UpdateFolder
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/update-folder` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| FolderId | string | yes | The folder ID |
| NewFolderName | string | yes | The new folder name. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and… |

### Updates a contact
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/update-message-contact` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| ContactId | string | no | The ID of the contact |
| Name | string | no | The name of the contact |
| EmailAddress | string | no | The email address of the contact. After you specify an email address, you need to call… |
| PhoneNumber | string | no | The mobile phone number of the contact. Specify the mobile phone number in the ` - ` format. After you specify a mobile phone number, you… |
| Title | string | no | The job title of the contact. Valid values: FinanceDirector TechnicalDirector MaintenanceDirector CEO ProjectDirector Other |
| MessageTypes | string | no | The types of messages received by the contact (JSON-encoded) |

### Updates the billing account of a member
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/update-payer-for-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |
| AccountId | string | yes | The Alibaba Cloud account ID of the member |
| PayerAccountId | string | yes | The ID of the billing account |

### version
`POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/version` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://resourcedirectory-intl.aliyuncs.com |

## Example
```
curl "https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/accept-handshake" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Alibaba Cloud Resource Directory API?
Create a free Apizie key, then send POST https://apizie.tech/v1/cloud:aliyun-resourcedirectorymaster/accept-handshake with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Alibaba Cloud Resource Directory API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Alibaba Cloud Resource Directory itself also needs your own key from aliyuncs.com.

### Can AI agents use the Alibaba Cloud Resource Directory API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:aliyun-resourcedirectorymaster.

### What is the status of the Alibaba Cloud Resource Directory API?
Needs your own provider key (bring your own key)
