Query network zones in RAM.
/ram/zone
Query parameters | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
name | Network zone name.
String type. This parameter supports wildcard characters. Optional. No default value. |
||||||||||
start | Position where the first returned record is located in the whole returned result.
Integer type. Optional. The default value is 0. If a negative value is uploaded, the default value is used. |
||||||||||
size | Total number of returned records.
Integer type. Optional. The default value is 10. If a negative value is uploaded, the value takes 0. If the uploaded value is bigger than 1000, the value takes 1000. |
||||||||||
orderBy | Field by which the returned result set is sorted.
String type. Optional. Valid values are id and name. The default value is id. |
||||||||||
total | Only the number of records that meet the requirements is returned.
Boolean type. Optional. The default value is false. When the value is true, the start and size attributes are invalid, the returned message body is empty, and the Total attribute of the message header returns the number of records that meet the requirements. |
HTTP/1.1 200 OK Total: 15
<list> <zone>
<zoneId>1</zoneId>
<name>zone1</name>
<description/>
</zone> ... </list>
Query all network zones.
GET http://localhost:8080/imcrs/ram/zone?name=zone1 accept: application/xml ...
HTTP/1.1 200 OK Content-Type: application/xml ... <list> <zone>
<zoneId>1</zoneId>
<name>zone1</name>
<description/>
</zone> ... </list>