applications / pep - Keyrock command
This command allows you to manage PEP Proxies in an application for Keyrock.
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 PEP Proxies
This command lists PEP Proxies.
ngsi applications [command options] pep --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 pep --aid 8b58ecff-fb45-4811-945c-6f42339db06b list --pretty
{
"pep_proxy": {
"id": "pep_proxy_d2d3c969-703d-4193-8278-fa0fb491dd82",
"oauth_client_id": "8b58ecff-fb45-4811-945c-6f42339db06b"
}
}
Create PEP Proxy
This command creates a PEP Proxy.
ngsi application [command options] pep --aid {id} create [options]
Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--aid VALUE, -i VALUE | application id (required) |
--run | run command (default: false) |
--verbose, -v | verbose (default: false) |
--pretty, -P | pretty format (default: false) |
--help | show help (default: true) |
Examples
Request:
ngsi applications pep --aid 8b58ecff-fb45-4811-945c-6f42339db06b create --run --pretty
{
"pep_proxy": {
"id": "pep_proxy_d2d3c969-703d-4193-8278-fa0fb491dd82",
"password": "pep_proxy_ac5f951d-ae96-4cf8-95cb-92b476c32d27"
}
}
Reset a PEP Proxy
This command resets a PEP Proxy.
ngsi application [command options] pep --aid {id} reset [options]
Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--aid VALUE, -i VALUE | application id (required) |
--run | run command (default: false) |
--verbose, -v | verbose (default: false) |
--pretty, -P | pretty format (default: false) |
--help | show help (default: true) |
Examples
Request:
ngsi applications pep --aid 8b58ecff-fb45-4811-945c-6f42339db06b reset --run --pretty
{
"new_password": "pep_proxy_7e6a8364-f129-4043-be4f-77887076d3a3"
}
Delete a PEP Proxy
This command deletes a PEP Proxy.
ngsi application [command options] pep --aid {id} delete [options]
Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--aid VALUE, -i VALUE | application id (required) |
--run | run command (default: false) |
--help | show help (default: true) |
Examples
Request:
ngsi applications pep --aid 8b58ecff-fb45-4811-945c-6f42339db06b delete --run