All Products
Search
Document Center

Security Center:DescribeVpcHoneyPotList

Last Updated:Feb 20, 2024

Queries honeypots.

Operation description

If you specify only the Action request parameter in your request, Security Center returns the list of all VPCs regardless of whether a honeypot is deployed on a VPC.

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

Request parameters

ParameterTypeRequiredDescriptionExample
VpcIdstringNo

The ID of the VPC on which the honeypot is deployed.

Note You can call the DescribeVpcList operation to query the IDs of VPCs.
vpc-d7o009q63fqy21r8u****
VpcNamestringNo

The name of the VPC.

Note You can call the DescribeVpcList operation to query the names of VPCs.
abcnet
VpcRegionIdstringNo

The region ID of the VPC.

Note You can call the DescribeVpcList operation to query the region IDs of VPCs.
ap-southeast-2
HoneyPotExistencebooleanNo

Specifies whether the cloud honeypot feature is enabled for the VPCs. Valid values:

  • true: yes
  • false: no
true
PageSizeintegerNo

The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.

Note We recommend that you do not leave this parameter empty.
20
CurrentPageintegerNo

The number of the page to return.

2

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

4FEC7F58-FCDA-415F-AE25-CD8BC0931DF2
PageInfoobject

The pagination information.

CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

20
TotalCountinteger

The total number of entries returned.

2
Countinteger

The number of entries returned on the current page.

2
VpcHoneyPotDTOListobject []

An array that consists of the honeypots.

VpcNamestring

The name of the VPC.

abc-vpcname
VpcIdstring

The ID of the VPC.

vpc-p0w223apdl49sr5zv****
HoneyPotEniInstanceIdstring

The ID of the elastic network interface (ENI) used by the honeypot in the VPC.

eni-p0whwgg7bing8b80****
CidrBlockstring

The CIDR block of the VPC.

192.168.XX.XX/16
VpcStatusstring

The status of the VPC. Valid values:

  • Available: The VPC is normal and available.
  • Pending: The VPC is being configured.
Available
CreateTimelong

The time at which the VPC was created. Unit: milliseconds.

1607365213000
HoneyPotVpcSwitchIdstring

The ID of the vSwitch to which the ENI used by the honeypot is connected.

vsw-p0w7gdcfvn20tvdul****
HoneyPotExistenceboolean

Indicates whether the cloud honeypot feature is enabled for the VPC. Valid values:

  • true: yes
  • false: no
true
VpcRegionIdstring

The region ID of the VPC.

Note For more information about the mapping between region IDs and region names, see Regions and zones.
ap-southeast-2
HoneyPotEcsInstanceStatusstring

The status of the server on which the honeypot is deployed. Valid values:

  • Pending: The server is being created.
  • Running: The server is running.
  • Starting: The server is being started.
  • Stopping: The server is being stopped.
  • Stopped: The server is stopped.
Running
HoneyPotInstanceStatusstring

The status of the honeypot. Valid values:

  • pending: The honeypot is being created.
  • deleting: The honeypot is being deleted.
  • off: The honeypot is disabled.
  • suspending: The honeypot is suspended.
  • on: The honeypot is enabled.
on
VpcSwitchIdListobject []

An array that consists of the vSwitches in the VPC.

VpcSwitchNamestring

The name of the vSwitch.

abc01
ZoneIdstring

The zone ID of the vSwitch.

ap-southeast-2b
VpcSwitchIdstring

The ID of the vSwitch.

vsw-p0wdnyv4wzp6jkuu4****

Examples

Sample success responses

JSONformat

{
  "RequestId": "4FEC7F58-FCDA-415F-AE25-CD8BC0931DF2",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 2,
    "Count": 2
  },
  "VpcHoneyPotDTOList": [
    {
      "VpcName": "abc-vpcname",
      "VpcId": "vpc-p0w223apdl49sr5zv****",
      "HoneyPotEniInstanceId": "eni-p0whwgg7bing8b80****",
      "CidrBlock": "192.168.XX.XX/16",
      "VpcStatus": "Available",
      "CreateTime": 1607365213000,
      "HoneyPotVpcSwitchId": "vsw-p0w7gdcfvn20tvdul****",
      "HoneyPotExistence": true,
      "VpcRegionId": "ap-southeast-2",
      "HoneyPotEcsInstanceStatus": "Running",
      "HoneyPotInstanceStatus": "on",
      "VpcSwitchIdList": [
        {
          "VpcSwitchName": "abc01",
          "ZoneId": "ap-southeast-2b",
          "VpcSwitchId": "vsw-p0wdnyv4wzp6jkuu4****"
        }
      ]
    }
  ]
}

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.

Change history

Change timeSummary of changesOperation
No change history