All Products
Search
Document Center

Security Center:DescribeCustomBlockInstances

Last Updated:Nov 25, 2024

Queries the list of servers on which the custom defense rule against brute-force attacks takes effect.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:DescribeCustomBlockInstancesget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CurrentPageintegerNo

The page number. Default value: 1.

8
StatusintegerNo

Specifies whether the rule is enabled for the server.

  • 2: enabling failed
  • 1: enabled
  • 0: disabled
1
BlockIpstringNo

The IP address that you want to specify in the rule.

Note You can call the DescribeCustomBlockRecords operation to obtain the IP address.
47.92.33.1xx
PageSizeintegerNo

The number of entries per page. Default value: 20.

20
BoundstringNo

The traffic direction that you want to specify in the custom rule. Valid values:

  • in: inbound
  • out: outbound
in

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D81DD78E-E006-5C65-A171-C8CB09XXXXX
PageInfoobject

The pagination information.

CurrentPageinteger

The page number.

1
PageSizeinteger

The number of entries per page. Default value: 20.

20
TotalCountinteger

The total number of servers to which the defense rule is applied.

83
Countinteger

The number of entries returned on the current page.

10
InstanceListarray<object>

The server ID.

InstanceRecordobject
Statusinteger

Indicates whether the rule is enabled for the server.

  • 2: enabling failed
  • 1: enabled
  • 0: disabled
1
Uuidstring

The UUID of the server.

f2d6e901-1004-4ca8-9dae-53ec04a9****
InternetIpstring

The public IP address of the server.

116.62.121.1xx
IntranetIpstring

The private IP address of the server.

192.168.1.xx
InstanceNamestring

The name of the asset.

myInstance
BlockTypestring

The blocking type. Valid values:

  • group: security group
  • alinet: host network extension
group
ErrorCodestring

The error code returned.

AliNetNotOnline
SuccessInfostring

The information that is returned after brute-force attacks are blocked.

{"aliUid":*******,"groupId":"sg-xxxx","groupName":"Sas_Malicious_Ip_Security_Group","groupType":"normal","instanceId":"i-xxxx","regionId":"cn-shenzhen","vpcId":"vpc-xxxxxxxx"}
AliNetOnlineboolean

The status of the host network extension. Valid values:

  • true: online
  • false: offline
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "D81DD78E-E006-5C65-A171-C8CB09XXXXX",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 83,
    "Count": 10
  },
  "InstanceList": [
    {
      "Status": 1,
      "Uuid": "f2d6e901-1004-4ca8-9dae-53ec04a9****",
      "InternetIp": "116.62.121.1xx",
      "IntranetIp": "192.168.1.xx",
      "InstanceName": "myInstance",
      "BlockType": "group",
      "ErrorCode": "AliNetNotOnline",
      "SuccessInfo": "{\"aliUid\":*******,\"groupId\":\"sg-xxxx\",\"groupName\":\"Sas_Malicious_Ip_Security_Group\",\"groupType\":\"normal\",\"instanceId\":\"i-xxxx\",\"regionId\":\"cn-shenzhen\",\"vpcId\":\"vpc-xxxxxxxx\"}",
      "AliNetOnline": true
    }
  ]
}

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.