Creates a financial relationship.
Operation description
For more information about a financial relationship, see Usage notes on the trusteeship.
If the management account and the member use the same enterprise name for real-name verification, no additional confirmation is required. Otherwise, you must call the ConfirmRelation operation to confirm the relationship.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RelationType |
string |
Yes |
The type of the financial relationship. Set the value to enterprise_group. |
enterprise_group |
| ParentUserId |
integer |
Yes |
The ID of the Alibaba Cloud account used as the management account. |
1738376485192612 |
| ChildNick |
string |
No |
The display name of the member, used to identify the intended use of the account. |
xxx project |
| ChildUserId |
integer |
Yes |
The ID of the Alibaba Cloud account used as the member. |
1512996702208737 |
| RequestId |
string |
Yes |
The unique ID of the request, used for tracking and troubleshooting. |
32324242444 |
| PermissionCodes |
array |
No |
The permissions that can be granted to the member. Valid values:
PermissionCodes and RoleCodes cannot both be empty. |
CHECK_TARGET_CONSUMPTION |
|
string |
No |
The permission that is granted. |
SYNCHRONIZE_FINANCE_IDENTITY |
|
| RoleCodes |
array |
No |
The roles that can be assigned to the member. Set the value to trusteeship. |
trusteeship |
|
string |
No |
The role assigned to the member in a trusteeship. PermissionCodes and RoleCodes cannot both be empty. |
trusteeship |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code returned. |
200 |
| Message |
string |
The message returned. |
Message returned |
| RequestId |
string |
The ID of the request. |
Request ID |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| Data |
object |
The data returned. |
|
| HostId |
string |
The IP address of the request |
HostId |
| RelationId |
integer |
The ID of the financial relationship. |
RelationId |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "Message returned\n",
"RequestId": "Request ID\n",
"Success": true,
"Data": {
"HostId": "HostId",
"RelationId": 0
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.