Querying Policy Usage
Function
This API is used to query policy usage.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{domainId}/tenant/rule-sets/{ruleSetId}/related/query
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
domainId |
Yes |
String |
Tenant ID. |
ruleSetId |
Yes |
String |
Policy ID. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
project_count |
Long |
Number of projects. |
pipeline_count |
Long |
Number of pipelines. |
Example Requests
GET https://{endpoint}/v2/f9228e23118c4fa5a9c86493ea0cffc2/tenant/rule-sets/68b99a225e93441f8d5f111eba6cbf30/related/query
Example Responses
Status code: 200
Related information.
{ "project_count" : 0, "pipeline_count" : 0 }
Status Codes
Status Code |
Description |
---|---|
200 |
Related 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