BindAuthToMachine
Binds product authorization to specified servers.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:BindAuthToMachine |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Criteria |
string |
No |
The search conditions for filtering assets, specified as a case-sensitive JSON string. Note
You can filter assets by conditions such as instance ID, instance name, VPC ID, region, and public IP address. To query the supported search conditions, call the DescribeCriteria operation. |
[{"name":"riskStatus","value":"YES"},{"name":"internetIp","value":"1.2.XX.XX"}] |
| LogicalExp |
string |
No |
The logical operator for multiple search conditions. The default value is OR. Valid values:
|
OR |
| BindAll |
boolean |
No |
Indicates whether to bind the authorization to all matching assets. The default value is false. Valid values:
|
true |
| AuthVersion |
integer |
No |
The authorization edition for the assets. Valid values:
|
6 |
| AutoBind |
integer |
No |
Indicates whether to enable automatic binding. Valid values:
|
1 |
| IsPreBind |
integer |
No |
Indicates whether to perform a pre-binding. Valid values:
Note
If you enable pre-binding, the specified authorization edition is automatically bound to the servers after you complete the purchase. |
1 |
| PreBindOrderId |
integer |
No |
The order ID associated with the pre-binding. |
233016**0482 |
| NtmVersion |
string |
No |
The product edition associated with the pre-binding. Valid values:
|
level2 |
| Bind |
array |
No |
An array of UUIDs for the servers to which you want to bind the authorization. Note
You must specify at least one of the Bind and UnBind parameters. |
|
|
string |
No |
The UUID of the server to which you want to bind the authorization. Note
To obtain this parameter, call the DescribeCloudCenterInstances operation. |
44f9ee5a-e39d-46bb-833b-5fc2ff47**** |
|
| UnBind |
array |
No |
An array of UUIDs for the servers from which you want to unbind the authorization. Note
You must specify at least one of the Bind and UnBind parameters. |
|
|
string |
No |
The UUID of the server from which you want to unbind the authorization. Note
To obtain this parameter, call the DescribeCloudCenterInstances operation. |
3e3c9d79-2880-465d-9e1b-1bc2af7d**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| ResultCode |
integer |
The status code of the binding result. Valid values:
|
2 |
| RequestId |
string |
The request ID. Use this ID to troubleshoot and locate issues. |
23AD0BD2-8771-5647-819E-6BA51E212F80 |
| UnBindCount |
integer |
The number of servers that were successfully unbound. |
1 |
| BindCount |
integer |
The number of servers that were successfully bound. |
1 |
| InsufficientEcsCount |
integer |
The shortfall in the number of authorized servers. |
1 |
| InsufficientCoreCount |
integer |
The shortfall in the number of authorized cores. |
1 |
Examples
Success response
JSON format
{
"ResultCode": 2,
"RequestId": "23AD0BD2-8771-5647-819E-6BA51E212F80",
"UnBindCount": 1,
"BindCount": 1,
"InsufficientEcsCount": 1,
"InsufficientCoreCount": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingPreBindVersion | The pre-bound version is missing. | Missing pre-bound version information |
| 400 | -101 | Invalid parameter value. | Invalid parameter. |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.