User Management API

/api/space/user-management/profiles

The following operations are supported on this resource:

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


This API retrieves all the remote profiles based on a passed URI context. It returns a RemoteProfiles transfer object. It also supports the filtering, paging, and sorting of returned data.

Access Control

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


Example Usage

GET /api/space/user-management/profiles

Content Types

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


  • Sample Output XML:
    <profiles size="2" uri="/api/space/user-management/profiles">
      <profile key="458785" href="/api/space/user-management/profiles/458785"
        uri="/api/space/user-management/profiles/458785">
        <name>remoteusermanager</name>
        <description>radius profile for user management</description>
      </profile>
      <profile key="458791" href="/api/space/user-management/profiles/458791"
        uri="/api/space/user-management/profiles/458791">
        <name>remotedevicescriptmanager</name>
        <description>radius profile for device script management</description>
      </profile>
    </profiles>


  • Sample Output JSON:
    {
     "profiles":{
      "@size":"2",
      "@uri":"/api/space/user-management/profiles",
      "profile":[
       {
        "@key":"458785",
        "@href":"/api/space/user-management/profiles/458785",
        "@uri":"/api/space/user-management/profiles/458785",
        "name":"remoteusermanager",
        "description":"radius profile for user management"
       },
       {
        "@key":"458791",
        "@href":"/api/space/user-management/profiles/458791",
        "@uri":"/api/space/user-management/profiles/458791",
        "name":"remotedevicescriptmanager",
        "description":"radius profile for device script management"
       }
      ]
     }
    }



POST /api/space/user-management/profiles (v1)


This API is used to add a remote profile with the provided roles.

Access Control

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


Example Usage

POST /api/space/user-management/profiles

Content Types

  • Consumes content types:
    application/vnd.net.juniper.space.user-management.profile+xml;version=1;charset=UTF-8
    application/vnd.net.juniper.space.user-management.profile+json;version=1;charset=UTF-8


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


  • Sample Input XML:
    <profile>
      <name>remotesystemadmin</name>
      <description>remote profile for radius system administrator</description>
      <roles>
        <role href="/api/space/user-management/roles/65699" />
      </roles>
    </profile>


  • Sample Output XML:
    <profile uri="/api/space/user-management/profiles/458803">
      <name>remotesystemadmin</name>
      <description>remote profile for radius system administrator   </description>
      <roles uri="/api/space/user-management/profiles/458803/roles">
        <role uri="/api/space/user-management/profiles/458803/roles/65699"       href="/api/space/user-management/roles/65699">
          <name>systemAdmin</name>
        </role>
      </roles>
    </profile>


  • Sample Input JSON:
    {
      "profile":{
        "name":"remotesystemadmin",
        "description":"remote profile for radius system administrator",
         "roles": {
         "role": {"@href":"/api/space/user-management/roles/65699" }
          }
      }
    }


  • Sample Output JSON:
    {
     "profile":{
      "@uri":"/api/space/user-management/profiles/458851",
      "name":"remotesystemadmin",
      "description":"remote profile for radius system administrator",
      "roles":{
       "@uri":"/api/space/user-management/profiles/458851/roles",
       "role":{
        "@uri":"/api/space/user-management/profiles/458851/roles/65699",
        "@href":"/api/space/user-management/roles/65699",
        "name":"systemAdmin"
       }
      }
     }