/api/space/user-management/capabilities/{cid}/tasks/{tid}
The following operations are supported on this resource:
GET /api/space/user-management/capabilities/{cid}/tasks/{tid} (v1)
This API accepts a task ID and a capability ID as arguments and returns a Task transfer object. The Task transfer object contains all the information about the retrieved task.
Access Control
The following capabilities are required to access this API:
"DefaultRead"
Example Usage
GET /api/space/user-management/capabilities/{cid}/tasks/{tid}Parameters
Name | Type | URI Type | Description | Required |
cid | int | Path | The capability ID. | Y |
tid | int | Path | The ID of the task for which information is to be retrieved. | Y |
Content Types
-
Produces content types:
application/vnd.net.juniper.space.user-management.task-ref+xml;version=1
application/vnd.net.juniper.space.user-management.task-ref+json;version=1
application/vnd.net.juniper.space.user-management.capability-task+xml;version=1
application/vnd.net.juniper.space.user-management.capability-task+json;version=1 -
Sample Output XML:
<task key="65620" uri="/api/space/user-management/capabilities/65559/tasks/65620"
href="/api/space/user-management/tasks/65620">
<name>createUser</name>
<title>Create User</title>
</task> -
Sample Output JSON:
{"task":
{"@key":"65620",
"@uri":"/api/space/user-management/capabilities/65559/tasks/65620",
"@href":"/api/space/user-management/tasks/65620",
"name":"createUser",
"title":"Create User"}
}