How to Add a Remote Address to an Application Through API

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

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

ソリューション

  • 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

    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'
最終更新日: 2016 年 2 月 19 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.