Method | URI | Description |
---|---|---|
POST | /v2.0/metering-label-rules | Creates a l3 metering label rule. |
This operation requires a request body.
The following table describes the required and optional attributes in the request body:
Attribute | Required | Description |
---|---|---|
direction |
Optional |
Ingress or egress: The direction in which metering rule is applied. Default: ingress |
metering_label_id |
Required |
The meteting label ID to associate with this metering rule. |
excluded |
Optional |
Specify whether the remote_ip_prefix will be excluded or not from traffic counters of the metering label, ie: to not count the traffic of a specific IP address of a range. Default: False |
remote_ip_prefix |
Required |
The remote IP prefix to be associated with this metering rule. packet. |
This operation returns a response body.
Normal response codes: 201
Error response codes: badRequest (400), unauthorized (401), itemNotFound (404), buildInProgress (409)