Get Current Organization ID

Get the organization ID that the current Edge belongs to.

Request Format

GET http://{apigw-address}/edge-service/v1/orgid

Response Parameters

Response parameters

Name

Data type

Description

status

Int

Status code

msg

String

Response message

submsg

String

Response sub-message

data

Object

Response data, the structure of which is in the table below

Data Object

data object

Name

Data type

Description

orgId

String

Organization ID that the current Edge belongs to

Sample

Request Sample

POST http://{apigw-address}/iam/v1/api/open/organization/get

Return Sample

{
   "status":0,
   "msg":"success",
   "submsg":"",
   "data":{
      "orgId":"o15427722038191"
   }
}

Java SDK Sample

public class GetOrganization {

    public static void main(String[] args) {
        url = "http://{apigw-address}/edge-service/v1/orgid";
        String appKey = "6362e9aa-4ed8-498b-a68c-3468c0447f6e";
        String appSecret = "a904f884-be2e-431a-b2f8-70fe1538d93b";
        String str = Poseidon.config(PConfig.init().appKey(appKey).appSecret(appSecret))
            .url(url)
            .method("GET")
            .sync();
    }
}