Querying Information Related to a Policy
Function
This API is used to query information related to a policy.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{domainId}/tenant/rule-sets/{ruleSetId}/children
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
domainId |
Yes |
String |
Tenant ID. |
ruleSetId |
Yes |
String |
Policy ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Policy ID. |
offset |
No |
Integer |
Policy ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
Yes |
Integer |
Page size. |
offset |
Yes |
Integer |
Definition: Offset where the query starts. Constraints: N/A Value range: The offset value must be no less than 0. Default value: 0. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
data |
Array of SimpleRuleSetVO objects |
Definition: Policy details. Value range: N/A |
total |
Long |
Definition: Total number of items. Value range: The value is no less than 0. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Definition: Policy ID. Value range: N/A |
name |
String |
Definition: Policy name. Value range: Enter a maximum of 128 characters. |
level |
String |
Definition: Scope identifier. Value range: tenant: tenant.
|
is_valid |
Boolean |
Definition: Whether this function takes effect. Value range:
|
version |
String |
Definition: Rule template version. Value range: N/A |
operator |
String |
Definition: Latest operator. Value range: N/A |
is_public |
Boolean |
Definition: Whether the policy is a system policy. Value range:
|
is_legacy |
Boolean |
Definition: Whether the data is from version 1.0. Value range:
|
operate_time |
Integer |
Definition: Last operation time. Value range: N/A |
Example Requests
GET https://{endpoint}/v2/9dd3a6d966894e4399d3aafe3ceb4fad/tenant/rule-sets/68b99a225e93441f8d5f111eba6cbf30/children?limit=10&offset=0
Example Responses
Status code: 200
Response body for querying policy association information.
{ "data" : [ { "id" : "f9228e23118c4fa5a9c86493ea0cffc2", "name" : "System policy", "level" : "tenant", "is_valid" : true, "version" : "ace33a17a73442e398fedc123d047da2", "operator" : "north5", "is_public" : true, "is_legacy" : null, "operate_time" : 1672063512000 }, { "id" : "9dd3a6d966894e4399d3aafe3ceb4fad", "name" : "API automatic creation rule hC3Ud", "level" : "tenant", "is_valid" : true, "version" : "d4b0df240e06466e91629c65436abe93", "operator" : "north5", "is_public" : false, "is_legacy" : null, "operate_time" : 1719220158000 } ], "total" : 199 }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body for querying policy association information. |
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