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
- application/json
Body
required
Array [
]
networkPolicies
object[]
required
Possible values: non-empty
and < 128 characters
, >= 1
, < 128
The network policies to create.
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
- 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...