Summary
Updates a profile.
Description
Update a profile in IAP.
Route
PUT /profiles/:id
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | yes | Contains the id for the selected profile. |
properties | object | yes | Contains the properties for the selected profile. |
{ "properties": { "applicationProps": { "directory": "/opt/pronghorn/current/node_modules", "description": "Application" }, "uiProps": { "layout": "node_modules/@itential/pronghorn-core/ui/views/layout.jade", "home": "node_modules/@itential/pronghorn-core/ui/views/home.jade", "login": "node_modules/@itential/pronghorn-core/ui/views/login.jade", "profile": "node_modules/@itential/pronghorn-core/ui/views/profile.jade", "fav_icon": "node_modules/@itential/pronghorn-core/ui/img/favicon.ico", "description": "UI" }, "authenticationProps": { "uniqueSession": false, "admins": [ { "provenance": "", "group": "" }, { "provenance": "", "group": "" }, { "provenance": "Local AAA", "group": "admin" }, { "provenance": "Local AAA", "group": "" }, { "provenance": "", "group": "admin" } ], "description": "audit", "cookieName": "pronghorn_token" }, "expressProps": { "express_http": { "enable": false, "port": 3827 }, "express_https": { "enable": false, "port": 43859, "key": "/opt/pronghorn/current/keys/key.pem", "cert": "/opt/pronghorn/current/keys/cert.pem", "secureProtocol": "TLSv1_2_method", "client_reneg_limit": 1, "client_reneg_window": 600, "passphrase": "voluptate amet mollit", "ciphers": "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256" }, "description": "Express Server", "cacheControl": false, "timeout": 300000, "access_control_allow_origin": "*" }, "loggerProps": { "log_directory": "/var/log/pronghorn", "log_filename": "pronghorn.log", "log_max_file_size": 1048576, "log_max_files": 100, "log_level": "trace", "console_level": "warn", "description": "Logger Settings", "log_timezone_offset": 0, "webserver": { "log_directory": "/var/log/pronghorn", "log_filename": "webserver.log" }, "syslog": { "level": "error", "facility": "local0", "type": "5424", "host": "localhost", "port": 514, "protocol": "udp4", "pid": "process.pid", "localhost": "localhost", "app_name": "process.title", "eol": "" } }, "redisProps": { "sentinels": [ { "host": "localhost", "port": 26379 }, { "host": "localhost", "port": 26379 }, { "host": "localhost", "port": 26379 }, { "host": "localhost", "port": 26379 } ], "name": "id voluptate", "db": 0, "password": "$ENC87eb897b507afc1796db49409dd1251c87872e85afd2469e", "maxRetriesPerRequest": 20, "maxHeartbeatWriteRetries": 20 }, "auditProps": { "audit": true, "brokerValidation": true, "description": "Audit" }, "pathProps": { "encrypted": true, "description": "Path Properties" }, "alarmProps": [ { "ip": "127.0.0.1", "community": "public", "properties": { "retries": 1, "timeout": 5000, "trapPort": 162, "version": "V1", "transport": "udp4" }, "type": "inform", "description": "Alarm" } ], "id": "profile1", "services": [ "WorkflowBuilder", "FormBuilder", "WorkflowBuilder" ], "description": "An IAP Profile", "rabbitmq": { "protocol": "amqp", "hosts": "rabbitmq", "port": 25748, "username": "guest", "password": "", "locale": "en_US", "frameMax": 0, "heartbeat": 0, "vhost": "/", "eventDeduplication": { "active": false, "cacheTtl": 100, "cacheSize": 100, "cachePersistence": "memory", "messagePreservation": { "strategy": "automatic", "preserveMessages": true, "tempQueueName": "iap_event__TMP__", "shovelName": "preserve_iap_events", "shovelAckMode": "on-confirm", "shovelAddHeaders": false, "shovelPrefetchCount": 1000, "shovelReconnectDelay": 5, "maxTransferWait": 5, "transferWaitPollIncrement": 0.1 } }, "adminPort": 30783 }, "adapterStrategy": { "device": { "adapterTypes": [], "exceptions": { "runCommand": "" } } }, "systemProps": { "shutdownTimeout": 3, "servicesBlacklist": [ "Local AAA" ], "launchDelay": 5, "launchTimeout": 60, "deadProcessCheck": false, "deadProcessCheckInterval": 5, "deadProcessMaxPeriod": 15 }, "integrationProps": { "threadCount": 5, "timeout": 15000 }, "retryStrategy": { "maxRetries": 5, "retryResetTimer": 60000 } } }
{ "type": "object", "properties": { "properties": { "title": "properties", "type": "object", "properties": { "applicationProps": { "$ref": "profiles-schema#/properties/applicationProps" }, "uiProps": { "$ref": "profiles-schema#/properties/uiProps" }, "authenticationProps": { "$ref": "profiles-schema#/properties/authenticationProps" }, "expressProps": { "$ref": "profiles-schema#/properties/expressProps" }, "loggerProps": { "$ref": "profiles-schema#/properties/loggerProps" }, "redisProps": { "$ref": "profiles-schema#/properties/redisProps" }, "auditProps": { "$ref": "profiles-schema#/properties/auditProps" }, "pathProps": { "$ref": "profiles-schema#/properties/pathProps" }, "alarmProps": { "$ref": "profiles-schema#/properties/alarmProps" }, "id": { "$ref": "profiles-schema#/properties/id" }, "services": { "$ref": "profiles-schema#/properties/services" }, "description": { "$ref": "profiles-schema#/properties/description" }, "rabbitmq": { "$ref": "profiles-schema#/properties/rabbitmq" }, "adapterStrategy": { "$ref": "profiles-schema#/properties/adapterStrategy" }, "systemProps": { "$ref": "profiles-schema#/properties/systemProps" }, "integrationProps": { "$ref": "profiles-schema#/properties/integrationProps" }, "retryStrategy": { "$ref": "profiles-schema#/properties/retryStrategy" } }, "additionalProperties": false } }, "required": [ "properties" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
result | object | The output of the update process. |
{ "status": "OK", "message": "A sample success message", "data": { "loggerProps": { "log_max_files": 100, "log_max_file_size": 1048576, "log_level": "debug", "log_directory": "/var/log/pronghorn", "log_filename": "pronghorn.log", "console_level": "trace", "description": "Logging", "log_timezone_offset": 0, "metrics_filename": "metrics.log", "metrics_max_files": 31, "metrics_rotation_interval": "7d", "metrics_rotation_size": "10M", "syslog": { "level": "warning", "facility": "local0", "type": "BSD", "host": "localhost", "port": 514, "protocol": "udp4", "pid": "process.pid", "localhost": "", "app_name": "", "eol": "CR" } }, "isEncrypted": false, "model": "", "name": "Local AAA", "type": "Application", "properties": { "id": "", "type": "", "brokers": [ "aaa" ], "groups": [ "5fe9f10cc1fca243d562e1d8", "5fe9f10cc1fca243d562e1d8", "5fe9f10cc1fca243d562e1d8" ] }, "profiling": true, "virtual": false } }
{ "title": "result", "type": "object", "properties": { "status": { "$ref": "common-schema#/definitions/status" }, "message": { "$ref": "common-schema#/definitions/message" }, "data": { "$ref": "common-schema#/definitions/data" } } }