PrivX Network Targets
/network-access-manager/api/v1/nwtargets
Get network targets
offset
int
Offset from which to start fetching objects
limit
int
Maximum number of objects 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
}
],
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 123,
"end": 123
},
"proto": "udp"
},
"nat": {
"addr": "string",
"port": 123
}
}
],
"exclusive_access": true,
"disabled": "BY_ADMIN",
"tags": [
"string"
]
}
]
}
/network-access-manager/api/v1/nwtargets
Create 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.
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
{
"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"
}
],
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 123,
"end": 123
},
"proto": "udp"
},
"nat": {
"addr": "string",
"port": 123
}
}
],
"exclusive_access": true,
"disabled": "BY_ADMIN",
"tags": [
"string"
]
}
Network target successfully created
{
"id": "5bf77342-221c-11ee-be56-0242ac120002"
}
/network-access-manager/api/v1/nwtargets/search
Search 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
}
],
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 123,
"end": 123
},
"proto": "udp"
},
"nat": {
"addr": "string",
"port": 123
}
}
],
"exclusive_access": true,
"disabled": "BY_ADMIN",
"tags": [
"string"
]
}
]
}
/network-access-manager/api/v1/nwtargets/tags
Get list of network targets' tags.
offset
int
Offset from which to start fetching objects
limit
int
Maximum number of objects 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}
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
}
],
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 123,
"end": 123
},
"proto": "udp"
},
"nat": {
"addr": "string",
"port": 123
}
}
],
"exclusive_access": true,
"disabled": "BY_ADMIN",
"tags": [
"string"
]
}
/network-access-manager/api/v1/nwtargets/{id}
Update 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.
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
{
"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"
}
],
"dst": [
{
"selector": {
"ip": {
"start": "string",
"end": "string"
},
"port": {
"start": 123,
"end": 123
},
"proto": "udp"
},
"nat": {
"addr": "string",
"port": 123
}
}
],
"exclusive_access": true,
"disabled": "BY_ADMIN",
"tags": [
"string"
]
}
Network target successfully updated
Empty response
/network-access-manager/api/v1/nwtargets/{id}
Delete a network target
id
string
required
Network target ID
Network target successfully deleted
Empty response
/network-access-manager/api/v1/nwtargets/{id}/disabled
disabled
boolean
disabled flag: true/false
{
"disabled": true
}
Successful response
Empty response
Was this page helpful?