Querying IP Address Groups
Function
This API is used to query IP address groups.
Calling Method
For details, see Calling APIs.
URI
GET /v1/ip-groups
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Specifies the number of resources on each page. If this parameter is not specified, the default value is 500. |
marker |
No |
String |
Specifies the ID of the resource from which pagination query starts, that is, the ID of the last resource on the previous page. If the parameter is not specified, only resources on the first page are queried. This parameter must be used together with limit. |
listener_id |
No |
String |
Specifies the listener ID that is used to query the associated IP address group. If listener_id is specified, only the IP address group associated with the specified listener is returned. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. The token can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
request_id |
String |
Specifies the request ID. |
ip_groups |
Array of IpGroupDetail objects |
Specifies the details of the IP address group. |
page_info |
PageInfo object |
Specifies the pagination query information. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ID of the IP address group. |
name |
String |
Specifies the name of the IP address group. |
description |
String |
Describes the IP address group. |
status |
String |
Specifies the provisioning status. The value can be one of the following:
|
ip_list |
Array of IpInfo objects |
Specifies the CIDR blocks in the IP address group. |
associated_listeners |
Array of ListenerAccessControlPolicy objects |
Specifies the access control policy used by the listener. |
created_at |
String |
Specifies the time when the resource was created. |
updated_at |
String |
Specifies the time when the resource was updated. |
Parameter |
Type |
Description |
---|---|---|
cidr |
String |
Specifies the CIDR block in the IP address group. |
description |
String |
Describes the CIDR block in the IP address group. |
created_at |
String |
Specifies the time when the resource was created. |
Example Requests
Querying IP address groups
GET https://{ga_endpoint}/v1/ip-groups
Example Responses
Status code: 200
Operation successful.
{ "request_id" : "ac1bf54f-6a23-4074-af77-800648d25bc8", "ip_groups" : [ { "id" : "e8996cd6-28cf-4ff2-951e-fa8ac895a6cd", "name" : "ip-group-name", "description" : "ip-group description", "status" : "ACTIVE", "ip_list" : [ { "cidr" : "127.0.0.0/24", "description" : "cidr description", "created_at" : "2019-01-08T01:21:37.151Z" } ], "associated_listeners" : [ { "listener_id" : "1b11747a-b139-492f-9692-2df0b1c87193", "type" : "BLACK" } ], "created_at" : "2019-01-08T01:21:37.151Z", "updated_at" : "2019-01-08T01:21:37.151Z" } ], "page_info" : { "next_marker" : "09e86f09-03fc-440e-8132-03f3e149e979", "current_count" : 10 } }
Status Codes
Status Code |
Description |
---|---|
200 |
Operation successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot