Documentation ¶
Index ¶
- Variables
- type ProvisioningKey
- type Service
- func (service *Service) Create(associationType string, provisioningKey *ProvisioningKey) (*ProvisioningKey, *http.Response, error)
- func (service *Service) Delete(associationType, provisioningKeyID string) (*http.Response, error)
- func (service *Service) Get(associationType, provisioningKeyID string) (*ProvisioningKey, *http.Response, error)
- func (service *Service) GetAll() (list []ProvisioningKey, err error)
- func (service *Service) GetAllByAssociationType(associationType string) ([]ProvisioningKey, error)
- func (service *Service) GetByIDAllAssociations(id string) (p *ProvisioningKey, assoc_type string, resp *http.Response, err error)
- func (service *Service) GetByName(associationType, name string) (*ProvisioningKey, *http.Response, error)
- func (service *Service) GetByNameAllAssociations(name string) (p *ProvisioningKey, assoc_type string, resp *http.Response, err error)
- func (service *Service) Update(associationType, provisioningKeyID string, provisioningKey *ProvisioningKey) (*http.Response, error)
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"` }
type 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 ¶
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 ¶ added in v0.0.4
func (service *Service) GetAll() (list []ProvisioningKey, err error)
func (*Service) GetAllByAssociationType ¶ added in v0.0.4
func (service *Service) GetAllByAssociationType(associationType string) ([]ProvisioningKey, error)
func (*Service) GetByIDAllAssociations ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.