Query Organization Member

Last Updated on : 2023-07-06 08:16:30download

Query the binding relationship between an organization and a member on pages.

API address

POST: /v1.0/iot-03/idaas/spaces/{space_id}/organization-users/actions/query

Request parameter

Parameter nameTypeINRequiredDescription
space_idStringuritrueThe ID of a specified space.

Description of body

Parameter nameTypeINRequiredDescription
organization_codeStringbodyfalseThe identifier of a specified organization.
uidStringbodyfalseThe user's identifier.
page_numberIntegerbodyfalseThe current page number.
page_sizeIntegerbodyfalseThe number of items per page.

Return parameter

Parameter nameTypeDescription
resultPageThe returned result on pages, including the current page number, number of items on each page, total number of pages, total number of items, and specific data.

Description of result

Parameter nameTypeDescription
total_countIntegerThe total number of items that are found.
total_pagesIntegerThe total number of pages.
page_numberIntegerThe current page number.
page_sizeIntegerThe number of items per page.
resultsIdaasOrganizationUserVOThe list of results.

Description of results

Parameter nameTypeDescription
organization_codeStringThe identifier of a specified organization.
uidStringThe user's identifier.
space_idStringThe ID of a specified space.
statusIntegerIndicates whether the organization is enabled. Valid values:
  • 0: enabled.
  • 1: not enabled.

Request example

POST: /v1.0/iot-03/idaas/spaces/1400335346549391440/organization-users/actions/query
{
  "page_number": 10,
  "page_size": 20,
  "organization_code": "1400335346598629930"
}

Return example

{
    "result": {
        "total_count": 1,
        "total_pages": 1,
        "page_number": 1,
        "results": [
            {
                "organization_code": "1400335346598629930",
                "uid": "1400335346599528750",
                "space_id": "1400727198159081506",
                "status": 0
            }
        ],
        "page_size": 20
    },
    "t": 1629272469492,
    "success": true
}

Error code

For more information, see error code.