Documentation ¶
Index ¶
- func BulkDelete(service *services.Service, ids []int) (*http.Response, error)
- func Delete(service *services.Service, vpnCredentialID int) error
- type Location
- type ManagedBy
- type VPNCredentials
- func Create(service *services.Service, vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, error)
- func Get(service *services.Service, vpnCredentialID int) (*VPNCredentials, error)
- func GetAll(service *services.Service) ([]VPNCredentials, error)
- func GetByFQDN(service *services.Service, vpnCredentialName string) (*VPNCredentials, error)
- func GetByIP(service *services.Service, vpnCredentialIP string) (*VPNCredentials, error)
- func GetVPNByType(service *services.Service, vpnType string) (*VPNCredentials, error)
- func Update(service *services.Service, vpnCredentialID int, vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkDelete ¶ added in v2.72.1
BulkDeleteVPNCredentials sends a bulk delete request for VPN credentials.
Types ¶
type VPNCredentials ¶
type VPNCredentials struct { // VPN credential id ID int `json:"id"` // VPN authentication type (i.e., how the VPN credential is sent to the server). It is not modifiable after VpnCredential is created. // Note: Zscaler no longer supports adding a new XAUTH VPN credential, but existing entries can be edited or deleted using the respective endpoints. Type string `json:"type,omitempty"` // Fully Qualified Domain Name. Applicable only to UFQDN or XAUTH (or HOSTED_MOBILE_USERS) auth type. FQDN string `json:"fqdn,omitempty"` // Static IP address for VPN that is self-provisioned or provisioned by Zscaler. This is a required field for IP auth type and is not applicable to other auth types. // Note: If you want Zscaler to provision static IP addresses for your organization, contact Zscaler Support. IPAddress string `json:"ipAddress,omitempty"` PreSharedKey string `json:"preSharedKey,omitempty"` // Additional information about this VPN credential. Comments string `json:"comments,omitempty"` // Location that is associated to this VPN credential. Non-existence means not associated to any location. Location *Location `json:"location,omitempty"` // SD-WAN Partner that manages the location. If a partner does not manage the location, this is set to Self. ManagedBy *ManagedBy `json:"managedBy,omitempty"` }
func Create ¶ added in v2.61.7
func Create(service *services.Service, vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, error)
func Get ¶ added in v2.61.7
func Get(service *services.Service, vpnCredentialID int) (*VPNCredentials, error)
func GetByFQDN ¶ added in v2.61.7
func GetByFQDN(service *services.Service, vpnCredentialName string) (*VPNCredentials, error)
func GetByIP ¶ added in v2.61.7
func GetByIP(service *services.Service, vpnCredentialIP string) (*VPNCredentials, error)
func GetVPNByType ¶ added in v2.61.7
func GetVPNByType(service *services.Service, vpnType string) (*VPNCredentials, error)
func Update ¶ added in v2.61.7
func Update(service *services.Service, vpnCredentialID int, vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, error)
Click to show internal directories.
Click to hide internal directories.