Skip to content
Start here

Lists

List Zero Trust lists
client.ZeroTrust.Gateway.Lists.List(ctx, params) (*SinglePage[GatewayList], error)
GET/accounts/{account_id}/gateway/lists
Get Zero Trust list details
client.ZeroTrust.Gateway.Lists.Get(ctx, listID, query) (*GatewayList, error)
GET/accounts/{account_id}/gateway/lists/{list_id}
Create Zero Trust list
client.ZeroTrust.Gateway.Lists.New(ctx, params) (*GatewayListNewResponse, error)
POST/accounts/{account_id}/gateway/lists
Update Zero Trust list
client.ZeroTrust.Gateway.Lists.Update(ctx, listID, params) (*GatewayList, error)
PUT/accounts/{account_id}/gateway/lists/{list_id}
Patch Zero Trust list.
client.ZeroTrust.Gateway.Lists.Edit(ctx, listID, params) (*GatewayList, error)
PATCH/accounts/{account_id}/gateway/lists/{list_id}
Delete Zero Trust list
client.ZeroTrust.Gateway.Lists.Delete(ctx, listID, body) (*GatewayListDeleteResponse, error)
DELETE/accounts/{account_id}/gateway/lists/{list_id}
ModelsExpand Collapse
type GatewayItem struct{…}
CreatedAt Timeoptional
formatdate-time
Description stringoptional

Provide the list item description (optional).

minimum0
Value stringoptional

Specify the item value.

type GatewayList struct{…}
ID stringoptional

Identify the API resource with a UUID.

maxLength36
Count float64optional

Indicate the number of items in the list.

CreatedAt Timeoptional
formatdate-time
Description stringoptional

Provide the list description.

Items []GatewayItemoptional

Provide the list items.

CreatedAt Timeoptional
formatdate-time
Description stringoptional

Provide the list item description (optional).

minimum0
Value stringoptional

Specify the item value.

Name stringoptional

Specify the list name.

Type GatewayListTypeoptional

Specify the list type.

One of the following:
const GatewayListTypeSerial GatewayListType = "SERIAL"
const GatewayListTypeURL GatewayListType = "URL"
const GatewayListTypeDomain GatewayListType = "DOMAIN"
const GatewayListTypeEmail GatewayListType = "EMAIL"
const GatewayListTypeIP GatewayListType = "IP"
const GatewayListTypeCategory GatewayListType = "CATEGORY"
const GatewayListTypeLocation GatewayListType = "LOCATION"
const GatewayListTypeDevice GatewayListType = "DEVICE"
UpdatedAt Timeoptional
formatdate-time

ListsItems

Get Zero Trust list items
client.ZeroTrust.Gateway.Lists.Items.List(ctx, listID, query) (*SinglePage[[]GatewayItem], error)
GET/accounts/{account_id}/gateway/lists/{list_id}/items