How to Add a Remote Address to an Application Through API

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

This article describes how to make an API call to add a Remote Address to a specific application within Crowd.

Solution

  • Here we have a documentation related to the Crowd REST API. Take a look at it to get an overview of how Crowd works with its REST API.
  • Here's the call we need to run based on this URL structure: http://host:port/context/rest/api-name/api-version/resource-name

    API Call
    curl -u <adminUser>:<adminPass> -H "Content-Type: application/json" -X POST -d '{"value":"<ip-address>"}' 'http://host:port/context/rest/appmanagement/1/application/<application-id>/remote_address'
  • Here's an example considering:

    Crowd Base URL: http://internalcrowd:8095/crowd

    Application ID: 884737

    Admin user and pass: admin:admin

    Example
    curl -u admin:admin -H "Content-Type: application/json" -X POST -d '{"value":"192.168.10.12"}' 'http://internalcrowd:8095/crowd/rest/appmanagement/1/application/884737/remote_address'
Last modified on Feb 19, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.