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
- application/json
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
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
code int32
The response code.
data object
The wrapped responding data.
msg string
The response message.
{
"code": 0,
"data": {},
"msg": "string"
}
Loading...