applications / trustedi - Keyrock command
This command allows you to manage trusted applications for Keyrock.
- List trusted applications associated to an application
- Add trusted application
- Delete trusted application
Common Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--aid VALUE, -i VALUE | application id (required) |
--help | show help (default: true) |
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 |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--aid VALUE, -i VALUE | application id (required) |
--pretty, -P | pretty format (default: false) |
--help | show help (default: true) |
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 |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--aid VALUE, -i VALUE | application id (required) |
--tid VALUE, -t VALUE | trusted application id (required) |
--pretty, -P | pretty format (default: false) |
--help | show help (default: true) |
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 |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--aid VALUE, -i VALUE | application id (required) |
--tid VALUE, -t VALUE | trusted application id (required) |
--help | show help (default: true) |
Examples
Request:
ngsi applications trusted --aid 8b58ecff-fb45-4811-945c-6f42339db06b \
delete --tid 97235ddb-e690-42ff-a4a9-5488bffa4b3b