User Management API

/api/space/user-management/capabilities/{id}

The following operations are supported on this resource:

GET /api/space/user-management/capabilities/{id} (v1)


This API takes a capability ID as an argument and returns a Capability transfer object containing data for the specified capability.

Access Control

The following capabilities are required to access this API:
"DefaultRead"


Example Usage

GET /api/space/user-management/capabilities/{id}


Parameters

NameTypeURI TypeDescriptionRequired
idintPathThe ID of the capability for which the information will be retrieved. Y

Content Types

  • Produces content types:
    application/vnd.net.juniper.space.user-management.capability+xml;version=1
    application/vnd.net.juniper.space.user-management.capability+json;version=1


  • Sample Output XML:
    <capability uri="/api/space/user-management/capabilities/65559">
     <id>65559</id>
     <name>CreateUser</name>
     <title>Create User</title>
     <tasks uri="/api/space/user-management/capabilities/65559/tasks">
      <task uri="/api/space/user-management/capabilities/65559/tasks/65620"
        href="/api/space/user-management/tasks/65620">
        <id>65620</id>
        <name>createUser</name>
       </task>
      </tasks>
     <roles uri="/api/space/user-management/capabilities/65559/roles">
      <role uri="/api/space/user-management/capabilities/65559/roles/65595"
       href="/api/space/user-management/roles/65595">
        <id>65595</id>
        <name>userAdmin</name>
       </role>
     </roles>
    </capability>


  • Sample Output JSON:
    {"capability":
     {"@uri":"/api/space/user-management/capabilities/65559",
      "id":65559,
      "name":"CreateUser",
      "title":"Create User",
      "tasks":
      {"@uri":"/api/space/user-management/capabilities/65559/tasks",
        "task":
        {"@uri":"/api/space/user-management/capabilities/65559/tasks/65620",
         "@href":"/api/space/user-management/tasks/65620",
          "id":65620,
          "name":"createUser"
        }
     }
      "roles":
      {"@uri":"/api/space/user-management/capabilities/65559/roles",
        "role":
        {"@uri":"/api/space/user-management/capabilities/65559/roles/65595",
         "@href":"/api/space/user-management/roles/65595",
          "id":65595,
          "name":"userAdmin"
        }
     }
    }