Skip to main content

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

    dwServiceUnitId stringrequired

    The ID of the service unit.

    Example: dw123

Query Parameters

    pageSize string

    Possible values: >= 1

    Default value: 10

    The number of items returned per page.

    pageNumber string

    Possible values: >= 1

    Default value: 1

    The sequence number of the current page.

Responses

OK

Schema

    code int32

    The response code.

    data

    object

    The paginated list of network policies.

    pageNumber int64

    The sequence number of current page.

    pageSize int64

    The number of items returned per page.

    records

    object[]

    The records in the current page.

  • Array [

  • allowed string[]

    The IP allowlist specified in the network policy.

    blocked string[]

    The IP blocklist specified in the network policy.

    createTimestamp date-time

    The creation timestamp of the network policy.

    id string

    The ID of the network policy.

    name string

    The name of the network policy.

    status NetworkPolicyStatus

    Possible values: [ACTIVE, INACTIVE]

    The status of the network policy.

    updateTimestamp date-time

    The timestamp when the network policy was last updated.

  • ]

  • total int64

    The number of pages in total.

    msg string

    The response message.

Loading...