Skip to main content

Create network policy

POST 

/dwsu/:dwServiceUnitId/network-policy

Creates a network policy for the specified service unit.

Request

Path Parameters

    dwServiceUnitId stringrequired

    The ID of the service unit.

    Example: dw123

Body

required

    networkPolicies

    object[]

    required

    Possible values: non-empty and < 128 characters, >= 1, < 128

    The network policies to create.

  • 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.

  • ]

Responses

OK

Schema

    code int32

    The response code.

    data object

    The wrapped responding data.

    msg string

    The response message.

Loading...