Skip to main content

Update network policy

PUT 

/dwsu/:dwServiceUnitId/network-policy/:networkPolicyId

Updates the specified network policy in the specified service unit.

Request

Path Parameters

    dwServiceUnitId stringrequired

    The ID of the service unit.

    Example: dw123
    networkPolicyId stringrequired

    The ID of the network policy.

    Example: np123

Body

required

    allowed string[]required

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

    The IP allowlist specified in the network policy.

    blocked string[]required

    Possible values: <= 128 characters, <= 128

    The IP blocklist specified in the network policy.

    name stringrequired

    Possible values: >= 4 characters and <= 32 characters

    The name of the network policy.

Responses

OK

Schema

    code int32

    The response code.

    data object

    The wrapped responding data.

    msg string

    The response message.

Loading...