provisioningkey

package
v2.61.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 5 Imported by: 1

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 added in v2.61.0

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

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

func Update added in v2.61.0

func Update(service *services.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 added in v2.61.0

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

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

func Get added in v2.61.0

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

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

func GetAll added in v2.61.0

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

func GetAllByAssociationType added in v2.61.0

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

func GetByIDAllAssociations added in v2.61.0

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

func GetByName added in v2.61.0

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

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

func GetByNameAllAssociations added in v2.61.0

func GetByNameAllAssociations(service *services.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