Querying Rule Usage
Function
This API is used to query rule usage.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{domainId}/rules/{ruleId}/related/query
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
domainId |
Yes |
String |
Tenant ID. |
ruleId |
Yes |
String |
Rule ID. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
rule_set_count |
Integer |
Number of policies. |
project_count |
Integer |
Number of projects. |
pipeline_count |
Integer |
Number of pipelines. |
Example Requests
GET https://{endpoint}/v2/2d09f712e9504b61b034cc8f40e475a8/rules/597c7f2f775740a1bb522b03a16e6864/related/query
Example Responses
Status code: 200
Response body for querying rule usage.
{ "rule_set_count" : 0, "project_count" : 0, "pipeline_count" : 0 }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body for querying rule usage. |
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