getProjectUsagesForWorkflowScheme
Get projects which are using a given workflow scheme
Details
- Method:
GET - Path:
/rest/api/3/workflowscheme/{workflowSchemeId}/projectUsages - Operation ID:
getProjectUsagesForWorkflowScheme
Parameters
{
"workflowSchemeId": {
"description": "The workflow scheme ID",
"required": true,
"location": "path",
"type": "string"
},
"nextPageToken": {
"description": "The cursor for pagination",
"required": false,
"location": "query",
"type": "string"
},
"maxResults": {
"description": "The maximum number of results to return. Must be an integer between 1 and 200.",
"required": false,
"location": "query",
"type": "integer",
"format": "int32"
}
}Response Schema
{
"additionalProperties": false,
"description": "Projects using the workflow scheme.",
"properties": {
"projects": {
"additionalProperties": false,
"description": "A page of projects.",
"properties": {
"nextPageToken": {
"description": "Page token for the next page of project usages.",
"type": "string"
},
"values": {
"description": "The list of projects.",
"items": {
"additionalProperties": false,
"description": "The project.",
"properties": {
"id": {
"description": "The project ID.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"workflowSchemeId": {
"description": "The workflow scheme ID.",
"type": "string"
}
},
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('getProjectUsagesForWorkflowScheme', {
# Add required parameters here
})