Querying Policies
Function
Querying the policy list
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
GET /v1/cnad/policies
| 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. |
| policy_name | No | String | Policy name. |
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 |
| items | Array of PolicyResponse objects | Policy list. |
Example Requests
None
Example Responses
Status code: 200
{
"items" : [ {
"clean_threshold" : 120,
"id" : "798d8975-f7cf-490f-b990-747ebaf41248",
"name" : "sadf",
"num_protected_ip" : 0,
"package_id" : "09b5ae8e-ae05-49ff-80fc-8bdf68c16499",
"package_name" : "Test",
"region" : "cn-north-4"
} ],
"total" : 1
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank 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