Query the IPv6 egress-only policy list
Updated at:2025-10-16
Description
Query the list of egress-only policies for the IPv6 gateway
Request structure
Plain Text
1GET /v{version}/IPv6Gateway/{gatewayId}/egressOnlyRule?marker={marker}&maxKeys={maxkeys} HTTP/1.1
2Host: bcc.bd.baidubce.com
3Authorization: authorization string
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number |
| marker | string | No | Query | Mark the starting position of the query. |
| maxKeys | int | No | Query | Maximum number of items included per page |
| gatewayId | String | Yes | URL parameter | ID of the IPv6 gateway |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| egressOnlyRules | List<[EgressOnlyRule]((VPC/API reference/Appendix.md#EgressOnlyRule)> | List containing query results |
| marker | string | Marker indicating the starting position of the query. If the result list is empty, this field does not exist. |
| isTruncated | boolean | true indicates there is more data later, false indicates it is the last page |
| nextMarker | String | The marker value needed to fetch the next page. This field is absent when isTruncated is false. |
| maxKeys | int | Maximum number of items included per page |
Request example
Plain Text
1GET /v1/IPv6Gateway/gw-5af4eb65/egressOnlyRule HTTP/1.1
2Host: bcc.bj.baidubce.com
3authorization: bce-auth-v1/c3119080364d11e8912505e5e0ae9978/2018-04-02T08:14:25Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-
4token/6b93bfd5ca2328fcb5560fa57f56253d80a629f6aac9c9cb74adf9a055fceb53
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
3Date: Mon, 02 Apr 2018 08:14:25 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6{
7 "egressOnlyRules":[
8 {
9 "egressOnlyRuleId":"ipv6_seg-c9e3b428",
10 "cidr":"2400:da00:e003:d01::/64"
11 }
12 ],
13 "marker":"ipv6_seg-c9e3b428",
14 "maxKeys":1000
15 "isTruncated":false
16}
