Link Search Menu Expand Document

Security API

Jan 1 2022 at 12:00 AM

  1. APIs within Security API
    1. Country Code
      1. API Calls
    2. Entity Access Group
      1. API Calls

Security API is an Identity server and is the authentication provider that manages logins and tokens into the IoT system as a whole. Tokens are used across other services for authentication.

Token clients include:

  • SPA JS Clients
  • Mobile Applications
  • External System to System integrators (aka Robot clients)

Roles and permissions are also stored and managed by the Security API.

APIs within Security API

Country Code

API Calls

GetCountryList

Gets the list of countries/regions per code.

GET

Permission

None

Accessible

Core and Tenant   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/CountryCode/GetCountryList

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/CountryCode/GetCountryList

URL Params

None

Data Params

None

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


GetCountryEnglishName

Gets the full name of the country/region in English.

GET

Permission

None

Accessible

Core and Tenant   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/CountryCode/GetCountryEnglishName

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/CountryCode/GetCountryEnglishName

URL Params

None

Data Params

{
  "code": "string"
}

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


GetInternationalDialingCodeFromAlpha2

Gets the international dialing code of the country/region.

GET

Permission

None

Accessible

Core and Tenant   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/CountryCode/GetInternationalDialingCodeFromAlpha2

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/CountryCode/GetInternationalDialingCodeFromAlpha2

URL Params

None

Data Params

{
  "alpha2": "string"
}

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


GetInternationalDialingCodeFromAlpha3

Gets the international dialing code of the country/region.

GET

Permission

None

Accessible

Core and Tenant   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/CountryCode/GetInternationalDialingCodeFromAlpha3

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/CountryCode/GetInternationalDialingCodeFromAlpha3

URL Params

None

Data Params

{
  "alpha3": "string"
}

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


Entity Access Group

API Calls

Add

POST

Permission

security:entityaccessgroups:add

Accessible

Tenant Account Only   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/EntityAccessgroup/Add

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/EntityAccessgroup/Add

URL Params

None

Data Params

{
  "Id": "string"
  "Name": "string",
  "Description": "string"
}

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


Update

POST

Permission

security:entityaccessgroups:update

Accessible

Tenant Account Only   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/EntityAccessgroup/Update

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/EntityAccessgroup/Update

URL Params

None

Data Params

{
  "newData": {
    "Id": "string"
    "Name": "string",
    "Description": "string"
  },
  "oldData": {
    "Id": "string"
    "Name": "string",
    "Description": "string"
  }
}

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


Delete

POST

Permission

security:entityaccessgroups:delete

Accessible

Tenant Account Only   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/EntityAccessgroup/Delete

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/EntityAccessgroup/Delete

URL Params

None

Data Params

{
  "groupId": "string"
}

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


Get

GET

Permission

security:entityaccessgroups:get

Accessible

Tenant Account Only   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/EntityAccessgroup/Get

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/EntityAccessgroup/Get

URL Params

None

Data Params

{
  "groupId": "string"
}

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


GetList

GET

Permission

security:entityaccessgroups:get

Accessible

Tenant Account Only   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/EntityAccessgroup/GetList

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/EntityAccessgroup/GetList

URL Params

None

Data Params

None

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None


GetUsersByGroupId

GET

Permission

security:entityaccessgroups:get

Accessible

Tenant Account Only   Refer to the response and accessiblity information for more information.

URL

https://{tenantDomain}/{accountPath}/_apis/dapi/v1/EntityAccessgroup/GetUsersByGroupId

URL Example
https://iotnxtinternal.commander.io/default/_apis/dapi/v1/EntityAccessgroup/GetUsersByGroupId

URL Params

None

Data Params

{
  "groupIds": ["string"]
}

Success Response

Refer to the response and accessiblity information for more information.

Error Response

Refer to the response and accessiblity information for more information.

Notes

None