/api/space/tag-management/tags/{id}/targets/{tgtId}

The following operations are supported on this resource:

  • GET - Get a single target for a tag
  • DELETE - Delete a single target for a tag
GET /tags/{id}/targets/{tgtId} Version 1

This API is to obtain information on the target object using the GET method.

Sample Usage

GET /tags/{id}/targets/{tgtId}


  • Parameters:
    Name Type URI Type Description Required
    id Integer Path The tag ID of the object where the target is present. Y
    oid Integer Path The target id to be retreived. Y
  • Sample Output XML:

       <target
          type= "vnd.net.juniper.space.user-management.user"
          href="/api/space/user-management/users/1234"
          uri= "/api/space/tag-management/tags/458766/targets/458767"/>

  • Sample Output JSON:

    {
      "target": {
           "@type": "vnd.net.juniper.space.user-management.user",
           "@href": "/api/space/user-management/users/1234",
           "@uri": "/api/space/tag-management/tags/458766/targets/4587671"
      }

  • Access Control

    The following capabilities are required to access this API: DefaultRead

    DELETE /tags/{id}/targets/{tgtId} Version 1

    This API is used to untag the target object.

    HTTP status code - 204

    .

    Sample Usage

    DELETE /tags/{id}/targets/{tgtId}


    • Parameters:
      Name Type URI Type Description Required
      id Integer Path The ID of the tag to remove from the target object. Y
      oid Integer Path The ID of the target to be untagged. Y

    Access Control

    The following capabilities are required to access this API: DefaultRead