All Products
Search
Document Center

Security Center:BindAuthToMachine

Last Updated:Feb 20, 2024

Binds servers to Security Center or unbinds servers from Security Center.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:BindAuthToMachineWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CriteriastringNo

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"}]
LogicalExpstringNo

The logical relationship that you want to use to evaluate multiple search conditions. Default value: OR. Valid values:

  • OR****
  • AND****
OR
BindAllbooleanNo

Specifies whether to bind all servers to Security Center. Default value: false. Valid values:

  • true: yes
  • false: no
true
AuthVersionintegerYes

The edition of Security Center that is authorized to protect the asset. Valid values:

  • 6: Anti-virus edition
  • 5: Advanced edition
  • 3: Enterprise edition
  • 7: Ultimate edition
  • 10: Value-added Plan edition
6
AutoBindintegerNo

Specifies whether to automatically bind servers to Security Center. Valid values:

  • 0: no
  • 1: yes
1
BindarrayNo

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.
stringNo

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****
UnBindarrayNo

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.
stringNo

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

ParameterTypeDescriptionExample
object
ResultCodeinteger

The status code that indicates the result. Valid values:

  • 0: The servers are bound to or unbound from Security Center.
  • 1: The values that you specified for the parameters are invalid.
  • 2: The quota for servers that can be protected is insufficient.
  • 3: The quota for cores of servers that can be protected is insufficient.
2
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

23AD0BD2-8771-5647-819E-6BA51E212F80
UnBindCountinteger

The number of unbound servers.

1
BindCountinteger

The number of bound servers.

1
InsufficientEcsCountinteger

The shortage in the quota for servers that can be protected.

1
InsufficientCoreCountinteger

The shortage in the quota for cores of servers that can be protected.

1

Examples

Sample success responses

JSONformat

{
  "ResultCode": 2,
  "RequestId": "23AD0BD2-8771-5647-819E-6BA51E212F80",
  "UnBindCount": 1,
  "BindCount": 1,
  "InsufficientEcsCount": 1,
  "InsufficientCoreCount": 1
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.