provisioningkey

package
v2.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 5 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

This section is empty.

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"`
}

type Service

type Service struct {
	Client *zpa.Client
	// contains filtered or unexported fields
}

func New

func New(c *zpa.Client) *Service

func (*Service) Create

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

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

func (*Service) Delete

func (service *Service) Delete(associationType, provisioningKeyID string) (*http.Response, error)

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

func (*Service) Get

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

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

func (*Service) GetAll

func (service *Service) GetAll() (list []ProvisioningKey, err error)

func (*Service) GetAllByAssociationType

func (service *Service) GetAllByAssociationType(associationType string) ([]ProvisioningKey, error)

func (*Service) GetByIDAllAssociations

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

func (*Service) GetByName

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

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

func (*Service) GetByNameAllAssociations

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

func (*Service) Update

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

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

func (*Service) WithMicroTenant

func (service *Service) WithMicroTenant(microTenantID string) *Service

Jump to

Keyboard shortcuts

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