Binds servers to Security Center or unbinds servers from Security Center.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:BindAuthToMachine | update | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Criteria | string | No | The search conditions that are used to filter servers. The value of this parameter is in the JSON format and is case-sensitive. Note
A search condition can be an instance ID, instance name, virtual private cloud (VPC) ID, region, or public IP address. You can call the DescribeCriteria operation to query the supported search conditions.
| [{"name":"riskStatus","value":"YES"},{"name":"internetIp","value":"1.2.XX.XX"}] |
LogicalExp | string | No | The logical relationship that you want to use to evaluate multiple search conditions. Default value: OR. Valid values:
| OR |
BindAll | boolean | No | Specifies whether to bind all servers to Security Center. Default value: false. Valid values:
| true |
AuthVersion | integer | No | The edition of Security Center that is authorized to scan the asset. Valid values:
| 6 |
AutoBind | integer | No | Specifies whether to automatically bind servers to Security Center. Valid values:
| 1 |
IsPreBind | integer | No | Specifies whether to specify servers for protection when you purchase Security Center. Valid values:
Note
If you specify servers, the servers are automatically added to Security Center for protection after the purchase order is complete.
| 1 |
PreBindOrderId | long | No | The ID of the order in which Security Center is purchased and servers are specified for protection. | 233016**0482 |
NtmVersion | string | No | The edition of Security Center that you purchase in the order. Valid values:
| level2 |
Bind | array | No | The UUIDs of the servers that you want to bind to Security Center. Note
You must specify at least one of the Bind and UnBind parameters.
| |
string | No | The UUID of the server that you want to bind to Security Center. Note
You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.
| 44f9ee5a-e39d-46bb-833b-5fc2ff47**** | |
UnBind | array | No | The UUIDs of the servers that you want to unbind from Security Center. Note
You must specify at least one of the Bind and UnBind parameters.
| |
string | No | The UUID of the server that you want to unbind from Security Center. Note
You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.
| 3e3c9d79-2880-465d-9e1b-1bc2af7d**** |
Response parameters
Examples
Sample success responses
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 |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-08 | The Error code has changed | View Change Details |
2024-03-28 | The Error code has changed. The request parameters of the API has changed | View Change Details |