Summary
Import a new profile
Description
Import a new profile in IAP.
Route
POST /profiles/import
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
properties | object | yes | An object containing all the profile properties. |
{ "properties": { "id": "profile1", "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": "Local AAA", "group": "admin" }, { "provenance": "", "group": "admin" }, { "provenance": "Local AAA", "group": "" }, { "provenance": "Local AAA", "group": "" }, { "provenance": "Local AAA", "group": "admin" } ], "description": "Authentication", "logoutTime": 20, "cookieName": "pronghorn_token", "brokerPrincipal": false }, "expressProps": { "express_http": { "enable": false, "port": 8541 }, "express_https": { "enable": false, "port": 58567, "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": "dolor laborum dolore in consequat", "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": "spam", "console_level": "debug", "description": "Logging", "log_timezone_offset": 0, "webserver": { "log_directory": "/var/log/pronghorn", "log_filename": "webserver.log" }, "syslog": { "level": "warning", "facility": "local0", "type": "BSD", "path": "/dev/log", "pid": "process.pid", "localhost": "", "app_name": "", "eol": "CR" } }, "redisProps": { "host": "localhost", "port": 6379, "db": 0, "username": "admin", "password": "$ENC87eb897b507afc1796db49409dd1251c87872e85afd2469e", "maxRetriesPerRequest": 20, "maxHeartbeatWriteRetries": 20 }, "auditProps": { "audit": true, "brokerValidation": true, "description": "Audit" }, "pathProps": { "encrypted": true, "description": "Path Properties" }, "alarmProps": [], "services": [ "WorkflowBuilder", "FormBuilder", "WorkflowBuilder", "FormBuilder", "FormBuilder" ], "description": "An IAP Profile", "rabbitmq": { "protocol": "amqp", "hosts": "rabbitmq", "port": 34075, "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": 32958, "keyPath": "/opt/pronghorn/current/keys/key.pem", "certPath": "/opt/pronghorn/current/keys/cert.pem", "caPath": "/opt/pronghorn/current/keys/ca.crt", "passphrase": "commodo proident laboris" }, "adapterStrategy": { "device": { "adapterTypes": [], "exceptions": { "runCommand": "" } } }, "systemProps": { "shutdownTimeout": 3, "servicesBlacklist": [ "Local AAA" ], "launchDelay": 5, "launchTimeout": 60, "deadProcessCheck": false, "deadProcessCheckInterval": 5, "deadProcessMaxPeriod": 15, "externalRequestTimeout": 5, "deviceCountPollingInterval": 24 }, "integrationProps": { "threadCount": 5, "timeout": 15000 }, "retryStrategy": { "maxRetries": 5, "retryResetTimer": 60000 }, "migrationVersion": 41519795 } }
{ "type": "object", "properties": { "properties": { "title": "properties", "type": "object", "properties": { "applicationProps": { "$ref": "profiles-schema#/definitions/applicationProps" }, "uiProps": { "$ref": "profiles-schema#/definitions/uiProps" }, "authenticationProps": { "$ref": "profiles-schema#/definitions/authenticationProps" }, "expressProps": { "$ref": "profiles-schema#/definitions/expressProps" }, "loggerProps": { "$ref": "profiles-schema#/definitions/loggerProps" }, "redisProps": { "$ref": "profiles-schema#/definitions/redisProps" }, "auditProps": { "$ref": "profiles-schema#/definitions/auditProps" }, "pathProps": { "$ref": "profiles-schema#/definitions/pathProps" }, "alarmProps": { "$ref": "profiles-schema#/definitions/alarmProps" }, "id": { "$ref": "profiles-schema#/definitions/id" }, "services": { "$ref": "profiles-schema#/definitions/services" }, "description": { "$ref": "profiles-schema#/definitions/description" }, "rabbitmq": { "$ref": "profiles-schema#/definitions/rabbitmq" }, "adapterStrategy": { "$ref": "profiles-schema#/definitions/adapterStrategy" }, "systemProps": { "$ref": "profiles-schema#/definitions/systemProps" }, "integrationProps": { "$ref": "profiles-schema#/definitions/integrationProps" }, "retryStrategy": { "$ref": "profiles-schema#/definitions/retryStrategy" }, "migrationVersion": { "type": "integer", "minimum": 0 } }, "required": [ "id" ] } }, "required": [ "properties" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
result | object | The output of the profile import process. |
{ "status": "Created", "message": "A sample success message", "data": { "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": "Local AAA", "group": "" }, { "provenance": "Local AAA", "group": "" }, { "provenance": "Local AAA", "group": "admin" }, { "provenance": "", "group": "" } ], "description": "Authentication", "logoutTime": 60, "cookieName": "pronghorn_token", "brokerPrincipal": false }, "expressProps": { "express_http": { "enable": false, "port": 43709 }, "express_https": { "enable": false, "port": 38449, "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": "in ut", "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": "info", "console_level": "error", "description": "Logger Settings", "log_timezone_offset": -5, "webserver": { "log_directory": "/var/log/pronghorn", "log_filename": "webserver.log" }, "syslog": { "level": "debug", "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 } ], "name": "do fugiat exercitation", "db": 0, "username": "admin", "password": "$ENC87eb897b507afc1796db49409dd1251c87872e85afd2469e", "maxRetriesPerRequest": 20, "maxHeartbeatWriteRetries": 20 }, "auditProps": { "audit": true, "brokerValidation": true, "description": "Audit" }, "pathProps": { "encrypted": true, "description": "Path Properties" }, "alarmProps": [], "id": "profile1", "services": [ "WorkflowBuilder", "FormBuilder", "FormBuilder", "FormBuilder", "WorkflowBuilder" ], "description": "An IAP Profile", "rabbitmq": { "protocol": "amqp", "hosts": "rabbitmq", "port": 59222, "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": 49440, "keyPath": "/opt/pronghorn/current/keys/key.pem", "certPath": "/opt/pronghorn/current/keys/cert.pem", "caPath": "/opt/pronghorn/current/keys/ca.crt", "passphrase": "ullamco commodo sunt et amet" }, "adapterStrategy": { "device": { "adapterTypes": [], "exceptions": { "runCommand": "" } } }, "systemProps": { "shutdownTimeout": 3, "servicesBlacklist": [ "Local AAA" ], "launchDelay": 5, "launchTimeout": 60, "deadProcessCheck": true, "deadProcessCheckInterval": 5, "deadProcessMaxPeriod": 15, "externalRequestTimeout": 5, "deviceCountPollingInterval": 24 }, "prebuiltProps": { "repoConfigs": { "@itentialopensource": { "enabled": false, "type": "gitlab", "hostname": "gitlab.com", "path": "itentialopensource/pre-built-automations", "credentials": { "token": "uTc_P4pnMAEsLbQHmyOt" } } } }, "integrationProps": { "threadCount": 5, "timeout": 15000 }, "retryStrategy": { "maxRetries": 5, "retryResetTimer": 60000 } } }
{ "title": "result", "type": "object", "properties": { "status": { "$ref": "common-schema#/definitions/status" }, "message": { "$ref": "common-schema#/definitions/message" }, "data": { "$ref": "profiles-schema" } } }