Allocates resource instances (instance-based and attached-resource-based) from a source financial unit to a destination financial unit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:AllocateCostUnitResource |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FromUnitUserId |
integer |
Yes |
The ID of the owner of the source financial unit. This parameter is required. |
273394581313325532 |
| FromUnitId |
integer |
Yes |
The ID of the source financial unit. This parameter is required.
|
0 |
| ToUnitUserId |
integer |
Yes |
The ID of the owner of the destination financial unit. |
241021678450941490 |
| ToUnitId |
integer |
Yes |
The ID of the destination financial unit. Valid values:
|
186419 |
| ResourceInstanceList |
array<object> |
Yes |
The list of resource instances. |
|
|
object |
No |
|||
| ApportionCode |
string |
No |
The attached resource type of the attached-resource-based instance. This parameter is required only for attached-resource-based product instances.
|
qwer1-cn-beijing |
| CommodityCode |
string |
Yes |
The commodity code of the billing instance. This parameter is required. |
oss |
| ResourceId |
string |
Yes |
The instance ID of the billing instance. This parameter is required. |
cn-hangzhou;standard |
| ResourceUserId |
integer |
Yes |
The ID of the owner of the billing instance. This parameter is required. |
273394581313325532 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The message code. Example: success. |
success |
| Data |
object |
The returned data. |
|
| IsSuccess |
boolean |
Indicates whether the financial unit resource allocation is successful.
|
true |
| ToUnitId |
integer |
The ID of the destination financial unit. |
32857346527 |
| ToUnitUserId |
integer |
The ID of the owner of the destination financial unit. |
34857693874 |
| Message |
string |
The error message. |
Successful! |
| RequestId |
string |
The request ID. |
845C629F-47A7-4F46-A470-ED5047C4C250 |
| Success |
boolean |
Indicates whether the request was successful. |
false |
Examples
Success response
JSON format
{
"Code": "success",
"Data": {
"IsSuccess": true,
"ToUnitId": 32857346527,
"ToUnitUserId": 34857693874
},
"Message": "Successful!",
"RequestId": "845C629F-47A7-4F46-A470-ED5047C4C250",
"Success": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.