User Management API

/api/space/user-management/roles (v1)

The following operations are supported on this resource:

GET /api/space/user-management/roles (v1)


This API is used to retrieve all the roles, returning a collection of roles.

Access Control

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


Example Usage

GET /api/space/user-management/roles

Content Types

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


  • Sample Output XML:
    <roles size="3" uri="/api/space/user-management/roles" >
      <role key="54" uri="/api/space/user-management/roles/54"
       href="/api/space/user-management/roles/54" >
        <name>superAdmin</name>
      </role>
      <role key="56" uri="/api/space/user-management/roles/56"
       href="/api/space/user-management/roles/56" >
        <name>userAdmin</name>   
    </role>
      <role key="58" uri="/api/space/user-management/roles/58"
       href="/api/space/user-management/roles/58" >
        <name>tagsAdmin</name>
      </role>
    </roles>


  • Sample Output JSON:
    {"roles": {"@size":"3" "@uri":"api/space/user-management/roles"
      {"role":
      [{"@key":"54" "@uri":"/api/space/user-management/roles/54"
       "@href":"/api/space/user-management/roles/54",
        "name":"superAdmin"},
      {"@key":"56" "@uri":"/api/space/user-management/roles/56"
       "@href":"/api/space/user-management/roles/56",
        "name":"userAdmin"},
      {"@key":"58" "@uri":"/api/space/user-management/roles/58"
       "@href":"/api/space/user-management/roles/58",
        "name":"tagsAdmin"}
      ]}
    }}



    For the current version of this API, refer to :
  • version 2