applications / trustedi - Keyrock command

This command allows you to manage trusted applications for Keyrock.

Common Options

Options Description
--host value, -h value specify host or alias
--token value specify oauth token
--help show help (default: false)

List trusted applications associated to an application

This command lists trusted applications associated to an application.

ngsi applications [command options] trusted --aid {id} list [options]

Options

Options Description
--aid value, -i value application id
--pretty, -P pretty format (default: false)
--help show help (default: false)

Examples

Request:

ngsi applications trusted --aid 8b58ecff-fb45-4811-945c-6f42339db06b list --pretty
{
  "trusted_applications": [
    "97235ddb-e690-42ff-a4a9-5488bffa4b3b"
  ]
}

Add a trusted application

This command adds a trusted application

ngsi application [command options] trusted --aid {id} add [options]

Options

Options Description
--aid value, -i value application id
--tid value, -t value trusted application id
--pretty, -P pretty format (default: false)
--help show help (default: false)

Examples

Request:

ngsi applications trusted --aid 8b58ecff-fb45-4811-945c-6f42339db06b \
  add --tid 97235ddb-e690-42ff-a4a9-5488bffa4b3b
{
  "oauth_client_id": "8b58ecff-fb45-4811-945c-6f42339db06b",
  "trusted_oauth_client_id": "97235ddb-e690-42ff-a4a9-5488bffa4b3b"
}

Delete a trusted application

This command deletes a trusted application.

ngsi application [command options] trusted --aid {id} delete [options]

Options

Options Description
--aid value, -i value application id
--tid value, -t value trusted application id
--help show help (default: false)

Examples

Request:

ngsi applications trusted --aid 8b58ecff-fb45-4811-945c-6f42339db06b \
  delete --tid 97235ddb-e690-42ff-a4a9-5488bffa4b3b