List network policies
GET/dwsu/:dwServiceUnitId/network-policy
Lists the network policies configured for the specified service unit. in a paginated manner.
Request
Path Parameters
The ID of the service unit.
Query Parameters
Possible values: >= 1
Default value: 10
The number of items returned per page.
Possible values: >= 1
Default value: 1
The sequence number of the current page.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The response code.
data
object
The paginated list of network policies.
The sequence number of current page.
The number of items returned per page.
records
object[]
The records in the current page.
The IP allowlist specified in the network policy.
The IP blocklist specified in the network policy.
The creation timestamp of the network policy.
The ID of the network policy.
The name of the network policy.
Possible values: [ACTIVE
, INACTIVE
]
The status of the network policy.
The timestamp when the network policy was last updated.
The number of pages in total.
The response message.
{
"code": 0,
"data": {
"pageNumber": 0,
"pageSize": 0,
"records": [
{
"allowed": [
"192.0.2.0",
"198.51.100.0"
],
"blocked": [
"203.0.113.0"
],
"createTimestamp": "2024-01-11T11:03:20.761Z",
"id": "123",
"name": "my network policy",
"status": "ACTIVE",
"updateTimestamp": "2024-01-11T11:03:20.761Z"
}
],
"total": 0
},
"msg": "string"
}