Juniper Junos Target Connector External API Configuration
This topic describes the required and supported Attributes used when adding or updating a Juniper Junos Target Application using the External API
capam32
This topic describes the required and supported Attributes used when adding or updating a Juniper Junos Target Application using the External API:
2
Junos Target Application External API Attributes
To add or update a Junos Target application using the External API, use the following properties as members of the "attributes" associative array included in the 'body' parameter of the REST call:
extensionType
The attribute extension type
Required | Default Value | Valid Values |
yes | N/A | juniper |
sshPort
The port that is used to connect to the Juniper host using SSH.
Required | Default Value | Valid Values |
yes | 22 | 0-65535 |
connectTimeout
Specifies the amount of time in milliseconds that Credential Manager should wait for the remote host to respond.
Required | Default Value | Valid Values |
no | 60000 | 1000-99999 |
readTimeout
Required | Default Value | Valid Values |
no | 5000 | 1000-99999 |
Junos Target Account External API Attributes
To add a Junos target account that uses the target connector, use the following properties as members of the "attributes" associative array included in the 'body' parameter of the REST call:
extensionType
Required | Default Value | Valid Values |
yes | N/A | juniper |
useOtherAccountToChangePassword
Specifies whether to use the target account or a different account when updating the target account.
Required | Default Value | Valid Values |
yes | false | true, false |
otherAccount
Specifies which other account to use when updating the target account.
Required | Default Value | Valid Values |
If useOtherAccountToChangePassword is true, set to yes | N/A | a valid target account ID. |
Junos Target Application External API Example
POST /api.php/v1/devices.json/{deviceId}/targetApplications { "applicationName":"JuniperApp", "applicationType":"juniper", "attributes":{ "connectTimeout":"60000", "readTimeout":"5000", "sshPort":"22" } }
Junos Target Account External API Example
POST /api.php/v1/devices.json/{deviceId}/targetApplications/{applicationId}/targetAccounts { "accountName":"JuniperAct", "attributes":{ "useOtherAccountToChangePassword":"false", "descriptor1":"sample descriptor1" }, "cacheBehavior":"useCacheFirst", "cacheDuration":"30", "password":"sample", "passwordViewPolicyId":1000, "privileged":"t", "synchronize":"f", "useAliasNameParameter":"f" }