How to Add a Remote Address to an Application Through API

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

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

    1 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

    1 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'
Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.