Queries operations logs.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeOpEntities |
The operation that you want to perform. Set the value to DescribeOpEntities. |
CurrentPage | Integer | Yes | 1 |
The number of the page to return. Default value: 1. |
EndTime | Long | Yes | 1557906714012 |
The timestamp that specifies the end of the time range to query. Unit: seconds. The timestamp follows the UNIX time format. It is the number of seconds that have elapsed since 00:00:00 Thursday, 1 January 1970. |
PageSize | Integer | Yes | 10 |
The number of entries to return on each page. Valid values: 1 to 50. Default value: 10. |
StartTime | Long | Yes | 1555314714011 |
The timestamp that specifies the beginning of the time range to query. Unit: seconds. The timestamp follows the UNIX time format. It is the number of seconds that have elapsed since 00:00:00 Thursday, 1 January 1970. |
InstanceId | String | No | ddosbgp-cn-x1 |
The ID of the Anti-DDoS Origin Enterprise instance. |
OrderBy | String | No | opdate |
The key by which you want to sort the entries. Valid values: opdate, which specifies the operation time. |
OrderDir | String | No | ASC |
The order in which you want to sort the entries. Valid values:
|
ResourceGroupId | String | No | test |
The ID of the resource group. |
ResourceRegionId | String | No | cn-hangzhou |
The ID of the region where the resource group resides. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
OpEntities | Array |
The list of operations logs and the details of each operations log. |
|
EntityObject | String | ddosbgp-cn-o4013qftb006 |
The operation target, which is the ID of the Anti-DDoS Origin Enterprise instance. |
EntityType | Integer | 1 |
The type of the operation target. Valid value: 1, which indicates an instance. |
GmtCreate | Long | 1557821673000 |
The creation time of the log. |
OpAccount | String | system |
The account that is used to perform operations. Valid value: system, which indicates a predefined account that is owned by Anti-DDoS Origin Enterprise. |
OpAction | Integer | 8 |
The type of operation. Valid values:
|
OpDesc | String | {\"entity\":{\"baseBandwidth\":20,\"elasticBandwidth\":101}} |
The description of the operation. |
RequestId | String | 52C8ECB0-0B1A-4E66-A31C-B6A855120E82 |
The ID of the request. |
TotalCount | Integer | 1 |
The number of entries returned. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeOpEntities
&CurrentPage=1
&EndTime=1557906714012
&PageSize=10
&StartTime=1555314714011
& <Common request parameters>
Sample success responses
XML
format
<DescribeOpEntitiesResponse>
<TotalCount>1</TotalCount>
<OpEntities>
<OpEntity>
<OpAccount>system</OpAccount>
<OpDesc>{"entity":{"baseBandwidth":20,"elasticBandwidth":101}}</OpDesc>
<EntityObject>ddosbgp-cn-o4013qftb006</EntityObject>
<NotifyType>1</NotifyType>
<GmtCreate>1557821673000</GmtCreate>
<OpAction>8</OpAction>
</OpEntity>
</OpEntities>
<RequestId>52C8ECB0-0B1A-4E66-A31C-B6A855120E82</RequestId>
</DescribeOpEntitiesResponse>
JSON
format
{
"TotalCount":1,
"OpEntities": [
{
"OpAccount":"system",
"OpDesc":"{\"entity\":{\"baseBandwidth\":20,\"elasticBandwidth\":101}}",
"EntityObject":"ddosbgp-cn-o4013qftb006",
"EntityType":1,
"GmtCreate":1557821673000,
"OpAction":8
}
],
"RequestId":"52C8ECB0-0B1A-4E66-A31C-B6A855120E82"
}
Error codes
For a list of error codes, visit the API Error Center.