Query Organization Details

Last Updated on : 2023-07-06 08:24:14download

Get the details of a specified organization, including the organization name, parent organization name (if any), organization manager, organization enabling status, and space ID.

API address

GET: /v1.0/iot-03/idaas/spaces/{space_id}/organizations/{code}

Request parameter

Parameter nameTypeINRequiredDescription
codeStringuritrueThe identifier of a specified organization.
space_idStringuritrueThe ID of a specified space.

Return parameter

Parameter nameTypeDescription
resultIdaasOrganizationVOThe returned result.

Description of result

Parameter nameTypeDescription
codeStringThe identifier of a specified organization.
nameStringThe name of a specified organization.
parent_codeStringThe identifier of a specified parent organization.
remarkStringThe remarks of a specified organization.
owner_uidStringThe user ID of the organization owner.
statusIntegerIndicates whether the organization is enabled. Valid values:
  • 0: enabled.
  • 1: disabled.
space_idStringThe ID of a specified space.

Request example

GET: /v1.0/iot-03/idaas/spaces/1400727198159081506/organizations/1400335346598629930

Return example

{
    "result": {
        "gmt_create": "1622775600000",
        "parent_name": "testParentOrgName",
        "code": "1400335346598629930",
        "remark": "testRemark",
        "gmt_modified": "1622775600000",
        "owner_uid": "140033534659952****",
        "name": "testOrgName",
        "parent_code": "1400335346598629666",
        "space_id": "1400727198159081506",
        "status": 0
    },
    "t": 1629272469492,
    "success": true
}

Error code

For more information, see error code.