PrivX Network Targets
/network-access-manager/api/v1/nwtargets
Get all network targets
offset
int
Collection query offset
limit
int
Maximum number of collection items to return
sortkey
string
Sorting key
sortdir
string
Sorting direction
name
string
The name of the network target
id
string
The ID of the network target
Authentication succesful
{
"count": 123,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"updated_by": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"author": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"comment": "A comment",
"name": "string",
"user_instructions": "string",
"src_nat": true,
"roles": [
{
"id": "string",
"name": "string",
"deleted": true
}
],
"integration_type": "",
"static_config": "string",
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 1,
"end": 1
},
"proto": ""
},
"nat": {
"addr": "string",
"port": 0
}
}
],
"exclusive_access": true,
"disabled": "FALSE",
"tags": [
"string"
]
}
]
}
/network-access-manager/api/v1/nwtargets
Create a network target
id
string
A unique identifier for the user
created
string
When the object was created
updated
string
When the object was updated
updated_by
string
ID of the user who updated the object
author
string
ID of the user who originally authored the object
comment
string
A comment describing the object
name
string
required
A unique name for the network target
user_instructions
string
User instructions shown in UI
src_nat
boolean
Flag to enable source NATing
roles
array
required
id
string
required
Role ID
name
string
Role name, ignored by server in requests.
integration_type
string
Router integration type
static_config
string
Static network target configuration used for router integration, formatted as a string-serialized JSON object
dst
array
required
selector
object (selector)
required
Selector specifies a single network target destination
nat
object (nat)
NAT destination parameters
exclusive_access
boolean
Allow only one ongoing network access session at a time to this network target.
disabled
string
Network target disabled status
tags
array
Tags. Maximum allowed number of tags is 128 and each tag must be no longer than 1024 characters.
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"updated_by": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"author": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"comment": "A comment",
"name": "string",
"user_instructions": "string",
"src_nat": true,
"roles": [
{
"id": "string",
"name": "string"
}
],
"integration_type": "",
"static_config": "string",
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 1,
"end": 1
},
"proto": ""
},
"nat": {
"addr": "string",
"port": 0
}
}
],
"exclusive_access": true,
"disabled": "FALSE",
"tags": [
"string"
]
}
Network target successfully created
{
"id": "5bf77342-221c-11ee-be56-0242ac120002"
}
/network-access-manager/api/v1/nwtargets/search
Find network targets
keywords
string
comma or space separated list of search keywords
tags
array
tags to search, network target tags will be searched using case-insensitive exact matching
{
"keywords": "string",
"tags": [
"string"
]
}
Network target search succeeded
{
"count": 123,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"updated_by": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"author": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"comment": "A comment",
"name": "string",
"user_instructions": "string",
"src_nat": true,
"roles": [
{
"id": "string",
"name": "string",
"deleted": true
}
],
"integration_type": "",
"static_config": "string",
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 1,
"end": 1
},
"proto": ""
},
"nat": {
"addr": "string",
"port": 0
}
}
],
"exclusive_access": true,
"disabled": "FALSE",
"tags": [
"string"
]
}
]
}
/network-access-manager/api/v1/nwtargets/tags
Get all of network targets' tags.
offset
int
Collection query offset
limit
int
Maximum number of collection items to return
sortdir
string
Sorting direction
query
string
Query string matches the tags
Successfully returned network targets' tags
{
"count": 123,
"items": [
"string"
]
}
/network-access-manager/api/v1/nwtargets/{id}
Get a network target by ID
id
string
required
Network Target ID
Successful response, returns a user object
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"updated_by": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"author": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"comment": "A comment",
"name": "string",
"user_instructions": "string",
"src_nat": true,
"roles": [
{
"id": "string",
"name": "string",
"deleted": true
}
],
"integration_type": "",
"static_config": "string",
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 1,
"end": 1
},
"proto": ""
},
"nat": {
"addr": "string",
"port": 0
}
}
],
"exclusive_access": true,
"disabled": "FALSE",
"tags": [
"string"
]
}
/network-access-manager/api/v1/nwtargets/{id}
Update a network target by ID
id
string
A unique identifier for the user
created
string
When the object was created
updated
string
When the object was updated
updated_by
string
ID of the user who updated the object
author
string
ID of the user who originally authored the object
comment
string
A comment describing the object
name
string
required
A unique name for the network target
user_instructions
string
User instructions shown in UI
src_nat
boolean
Flag to enable source NATing
roles
array
required
id
string
required
Role ID
name
string
Role name, ignored by server in requests.
integration_type
string
Router integration type
static_config
string
Static network target configuration used for router integration, formatted as a string-serialized JSON object
dst
array
required
selector
object (selector)
required
Selector specifies a single network target destination
nat
object (nat)
NAT destination parameters
exclusive_access
boolean
Allow only one ongoing network access session at a time to this network target.
disabled
string
Network target disabled status
tags
array
Tags. Maximum allowed number of tags is 128 and each tag must be no longer than 1024 characters.
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"updated_by": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"author": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"comment": "A comment",
"name": "string",
"user_instructions": "string",
"src_nat": true,
"roles": [
{
"id": "string",
"name": "string"
}
],
"integration_type": "",
"static_config": "string",
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 1,
"end": 1
},
"proto": ""
},
"nat": {
"addr": "string",
"port": 0
}
}
],
"exclusive_access": true,
"disabled": "FALSE",
"tags": [
"string"
]
}
Network target successfully updated
Empty response
/network-access-manager/api/v1/nwtargets/{id}
Delete a network target by ID
id
string
required
Network target ID
Network target successfully deleted
Empty response
/network-access-manager/api/v1/nwtargets/{id}/disabled
Disable a network target by ID
disabled
boolean
disabled flag: true/false
{
"disabled": true
}
Successful response
Empty response
Was this page helpful?