provisioningkey

package
v3.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProvisioningKeyAssociationTypes []string = []string{
	"CONNECTOR_GRP",
	"SERVICE_EDGE_GRP",
}

TODO: because there isn't an endpoint to get all provisionning keys, we need to have all association type here

Functions

func Delete

func Delete(ctx context.Context, service *zscaler.Service, associationType, provisioningKeyID string) (*http.Response, error)

DELETE --> /mgmtconfig/v1/admin/customers/{customerId}/associationType/{associationType}/provisioningKey/{provisioningKeyId}

func Update

func Update(ctx context.Context, service *zscaler.Service, associationType, provisioningKeyID string, provisioningKey *ProvisioningKey) (*http.Response, error)

PUT --> /mgmtconfig/v1/admin/customers/{customerId}/associationType/{associationType}/provisioningKey/{provisioningKeyId}

Types

type ProvisioningKey

type ProvisioningKey struct {
	AppConnectorGroupID   string   `json:"appConnectorGroupId,omitempty"`
	AppConnectorGroupName string   `json:"appConnectorGroupName,omitempty"`
	CreationTime          string   `json:"creationTime,omitempty"`
	Enabled               bool     `json:"enabled,omitempty"`
	ExpirationInEpochSec  string   `json:"expirationInEpochSec,omitempty"`
	ID                    string   `json:"id,omitempty"`
	IPACL                 []string `json:"ipAcl,omitempty"`
	MaxUsage              string   `json:"maxUsage,omitempty"`
	ModifiedBy            string   `json:"modifiedBy,omitempty"`
	ModifiedTime          string   `json:"modifiedTime,omitempty"`
	Name                  string   `json:"name,omitempty"`
	ProvisioningKey       string   `json:"provisioningKey,omitempty"`
	EnrollmentCertID      string   `json:"enrollmentCertId,omitempty"`
	EnrollmentCertName    string   `json:"enrollmentCertName,omitempty"`
	UIConfig              string   `json:"uiConfig,omitempty"`
	UsageCount            string   `json:"usageCount,omitempty"`
	ZcomponentID          string   `json:"zcomponentId,omitempty"`
	ZcomponentName        string   `json:"zcomponentName,omitempty"`
	AssociationType       string   `json:"associationType"`
	MicroTenantID         string   `json:"microtenantId,omitempty"`
	MicroTenantName       string   `json:"microtenantName,omitempty"`
}

func Create

func Create(ctx context.Context, service *zscaler.Service, associationType string, provisioningKey *ProvisioningKey) (*ProvisioningKey, *http.Response, error)

POST --> /mgmtconfig/v1/admin/customers/{customerId}/associationType/{associationType}/provisioningKey

func Get

func Get(ctx context.Context, service *zscaler.Service, associationType, provisioningKeyID string) (*ProvisioningKey, *http.Response, error)

GET --> mgmtconfig/v1/admin/customers/{customerId}/associationType/{associationType}/provisioningKey

func GetAll

func GetAll(ctx context.Context, service *zscaler.Service) (list []ProvisioningKey, err error)

func GetAllByAssociationType

func GetAllByAssociationType(ctx context.Context, service *zscaler.Service, associationType string) ([]ProvisioningKey, error)

func GetByIDAllAssociations

func GetByIDAllAssociations(ctx context.Context, service *zscaler.Service, id string) (p *ProvisioningKey, assoc_type string, resp *http.Response, err error)

func GetByName

func GetByName(ctx context.Context, service *zscaler.Service, associationType, name string) (*ProvisioningKey, *http.Response, error)

GET --> mgmtconfig/v1/admin/customers/{customerId}/associationType/{associationType}/provisioningKey

func GetByNameAllAssociations

func GetByNameAllAssociations(ctx context.Context, service *zscaler.Service, name string) (p *ProvisioningKey, assoc_type string, resp *http.Response, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL