Skip to content
Start here

Infrastructure

InfrastructureTargets

List all targets
client.zeroTrust.access.infrastructure.targets.list(TargetListParams { account_id, created_after, created_before, 18 more } params, RequestOptionsoptions?): V4PagePaginationArray<TargetListResponse { id, created_at, hostname, 2 more } >
GET/accounts/{account_id}/infrastructure/targets
Get target
client.zeroTrust.access.infrastructure.targets.get(stringtargetId, TargetGetParams { account_id } params, RequestOptionsoptions?): TargetGetResponse { id, created_at, hostname, 2 more }
GET/accounts/{account_id}/infrastructure/targets/{target_id}
Create new target
client.zeroTrust.access.infrastructure.targets.create(TargetCreateParams { account_id, hostname, ip } params, RequestOptionsoptions?): TargetCreateResponse { id, created_at, hostname, 2 more }
POST/accounts/{account_id}/infrastructure/targets
Update target
client.zeroTrust.access.infrastructure.targets.update(stringtargetId, TargetUpdateParams { account_id, hostname, ip } params, RequestOptionsoptions?): TargetUpdateResponse { id, created_at, hostname, 2 more }
PUT/accounts/{account_id}/infrastructure/targets/{target_id}
Delete target
client.zeroTrust.access.infrastructure.targets.delete(stringtargetId, TargetDeleteParams { account_id } params, RequestOptionsoptions?): void
DELETE/accounts/{account_id}/infrastructure/targets/{target_id}
Create new targets
client.zeroTrust.access.infrastructure.targets.bulkUpdate(TargetBulkUpdateParams { account_id, body } params, RequestOptionsoptions?): SinglePage<TargetBulkUpdateResponse { id, created_at, hostname, 2 more } >
PUT/accounts/{account_id}/infrastructure/targets/batch
Delete targets (Deprecated)
Deprecated
client.zeroTrust.access.infrastructure.targets.bulkDelete(TargetBulkDeleteParams { account_id } params, RequestOptionsoptions?): void
DELETE/accounts/{account_id}/infrastructure/targets/batch
Delete targets
client.zeroTrust.access.infrastructure.targets.bulkDeleteV2(TargetBulkDeleteV2Params { account_id, target_ids } params, RequestOptionsoptions?): void
POST/accounts/{account_id}/infrastructure/targets/batch_delete
ModelsExpand Collapse
TargetListResponse { id, created_at, hostname, 2 more }
id: string

Target identifier

formatuuid
maxLength36
created_at: string

Date and time at which the target was created

formatdate-time
hostname: string

A non-unique field that refers to a target

ip: IP { ipv4, ipv6 }

The IPv4/IPv6 address that identifies where to reach a target

ipv4?: IPV4 { ip_addr, virtual_network_id }

The target’s IPv4 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
ipv6?: IPV6 { ip_addr, virtual_network_id }

The target’s IPv6 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
modified_at: string

Date and time at which the target was modified

formatdate-time
TargetGetResponse { id, created_at, hostname, 2 more }
id: string

Target identifier

formatuuid
maxLength36
created_at: string

Date and time at which the target was created

formatdate-time
hostname: string

A non-unique field that refers to a target

ip: IP { ipv4, ipv6 }

The IPv4/IPv6 address that identifies where to reach a target

ipv4?: IPV4 { ip_addr, virtual_network_id }

The target’s IPv4 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
ipv6?: IPV6 { ip_addr, virtual_network_id }

The target’s IPv6 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
modified_at: string

Date and time at which the target was modified

formatdate-time
TargetCreateResponse { id, created_at, hostname, 2 more }
id: string

Target identifier

formatuuid
maxLength36
created_at: string

Date and time at which the target was created

formatdate-time
hostname: string

A non-unique field that refers to a target

ip: IP { ipv4, ipv6 }

The IPv4/IPv6 address that identifies where to reach a target

ipv4?: IPV4 { ip_addr, virtual_network_id }

The target’s IPv4 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
ipv6?: IPV6 { ip_addr, virtual_network_id }

The target’s IPv6 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
modified_at: string

Date and time at which the target was modified

formatdate-time
TargetUpdateResponse { id, created_at, hostname, 2 more }
id: string

Target identifier

formatuuid
maxLength36
created_at: string

Date and time at which the target was created

formatdate-time
hostname: string

A non-unique field that refers to a target

ip: IP { ipv4, ipv6 }

The IPv4/IPv6 address that identifies where to reach a target

ipv4?: IPV4 { ip_addr, virtual_network_id }

The target’s IPv4 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
ipv6?: IPV6 { ip_addr, virtual_network_id }

The target’s IPv6 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
modified_at: string

Date and time at which the target was modified

formatdate-time
TargetBulkUpdateResponse { id, created_at, hostname, 2 more }
id: string

Target identifier

formatuuid
maxLength36
created_at: string

Date and time at which the target was created

formatdate-time
hostname: string

A non-unique field that refers to a target

ip: IP { ipv4, ipv6 }

The IPv4/IPv6 address that identifies where to reach a target

ipv4?: IPV4 { ip_addr, virtual_network_id }

The target’s IPv4 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
ipv6?: IPV6 { ip_addr, virtual_network_id }

The target’s IPv6 address

ip_addr?: string

IP address of the target

virtual_network_id?: string

(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.

formatuuid
modified_at: string

Date and time at which the target was modified

formatdate-time