Get Subowner

/api2/subowners/get

Retrieves details for a subowner.

Request ParameterTypeDescription
idstringSubowner ID

Response parameters are described below.

Response ParameterTypeDescription
idstringSubowner ID
usernamestringLogin username
permissionslistPermissions granted to this subowner
api_keystringSecret key for making API calls

Sample request/response:

The Call() function, which is imported from uplynk_api2_auth module, prepares the message body and digital signature.

from uplynk_api2_auth import Call

print(Call('/api2/subowners/get', id='f534c6e0ebba4d70b2b4c31659e50952'))

{
  "username": "ptvn.dave",
  "permissions": [
    "slice"
  ],
  "api_key": "dyWViZwTqm/etPT4SB0sTdfz2msh3D9u+iihl4dG",
  "all_api_keys": {
    "dyWViZwTqm/etPT4SB0sTdfz2msh3D9u+iihl4dG": {
      "enabled": True
    }
    "a735c56ea4014685bc74c0a375236cc5": {
      "enabled": False
    }
  }
  "id": "f534c6e0ebba4d70b2b4c31659e50952",
  "error": 0
}

Subowners are always assigned a secret API key even if the subowner cannot use it due to the lack of permissions.