Using REST API for Connection Profiles

The example below can be used to get a list of connection profiles.

Copy
###################################################
##############  Connection Profiles  ##############
### GET a list of current connection profiles###
# @name CP_List
GET https://{{host}}/admin/v2/sites/{{Siteid}}/connection-Profiles HTTP/1.1
Authorization: EFTAdminAuthToken {{AuthToken}}
###
@ConnectionProfileID = {{CP_List.response.body.$.data[0].id}}
### GET Details for specific connection profile####
GET https://{{host}}/admin/v2/sites/{{Siteid}}/connection-Profiles/{{ConnectionProfileID}} HTTP/1.1
Authorization: EFTAdminAuthToken {{AuthToken}}
### DELETE specific connection profile####
DELETE  https://{{host}}/admin/v2/sites/{{Siteid}}/connection-Profiles/{{ConnectionProfileID}} HTTP/1.1
Authorization: EFTAdminAuthToken {{AuthToken}}
### Create a Connection Profile ###
POST https://{{host}}/admin/v2/sites/{{Siteid}}/connection-Profiles/ HTTP/1.1
Authorization: EFTAdminAuthToken {{AuthToken}}
{
"data": {
"attributes": {
"name": "APIaa1_POST_Test_13",
"description": "POST REQUEST FAILS TO ADD USER DETAILS",
"testPath": "c:\\test",
"connectionSettings": {
"protocol": "FTPSAuthTLS",
"host": "192.168.1.210",
"port": 21,
"user": "AFAR",
"password": "",
"autoLogin": true,
"proxySettings": {
"use": true,
"type": "FTP",
"hostName": "123",
"username": "123",
"password": "UpKUJq1sD4Yfb1Hz8ZFiRw==",
"port": 21,
"subType": 0,
"separator": "@",
"customCommands": []
},
"SOCKSSettings": {
"use": true,
"type": "None",
"hostName": "123",
"port": 1080,
"auth": false,
"username": "123",
"password": "555"
},
"advancedSettings": {
"numberOfConnectionRetries": 11,
"delayBetweenRetries": 22,
"maxConcurrentThreads": 4,
"connectionTimeout": 55,
"dataPortMode": "AUTO",
"PASVPortMin": 5,
"PASVPortMax": 50000,
"preserveLocalTimeStamp": true,
"preserveRemoteTimeStamp": true,
"validateFileIntegrity": true,
"homeIP": "192.168.1.*",
"clearCommandChannel": true,
"clearDataChannel": true,
"transferEncoding": "UTF8"
}
}
}
}
}
####