Querying the List of Protected Objects That Can Be Bound
Function
Querying the list of protected objects that can be bound
Calling Method
For details, see Calling APIs.
URI
GET /v1/cnad/packages/{package_id}/unbound-protected-ips
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
package_id |
Yes |
String |
Instance ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
offset |
No |
Integer |
Query offset. The default value is 0. |
|
limit |
No |
Integer |
Number of items displayed on each page. The default value is 2000. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
|
Content-Type |
Yes |
String |
Content-Type |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
total |
Integer |
Total |
|
ips |
Array of ProtectedIpResponse objects |
Protected IP address list |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Protection IP address ID |
|
ip |
String |
Protection IP addresses. |
|
type |
String |
Type. VPN, NAT, VIP, CCI, EIP, ELB, REROUTING_IP, SubEni, and NetInterFace. |
|
name |
String |
Name |
|
status |
Integer |
Status. The options are 0 (normal), 1 (cleaning), and 2 (blackhole). |
|
status_detail |
IpStatusDetail object |
Blocking information |
|
policy_name |
String |
Policy name. |
|
region |
String |
Region. |
|
package_id |
String |
Instance ID. |
|
package_name |
String |
Instance name |
|
tags |
String |
TMS tags. |
|
tag |
String |
Local tag. |
|
is_resale |
Boolean |
The default value is false, indicating whether the IP address is a resale IP address. Policies and reports modules should not be displayed. |
|
package_version |
String |
package_version. cnad_pro: CNAD Unlimited Protection Basic Edition; cnad_ip: CNAD Standard Edition; cnad_full_high: CNAD Unlimited Protection Advanced Edition; cnad_v2: CNAD Native Protection 2.0; cnad_vic: CNAD Pay-per-Use Edition |
Example Requests
None
Example Responses
Status code: 200
OK
{
"ips" : [ {
"id" : "2b93b3ed-7aed-4b73-be77-d04318cbda5e",
"ip" : "100.85.112.111",
"is_resale" : false,
"tags" : "{}",
"type" : "EIP"
} ],
"total" : 1
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
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