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)
- func (service *Service) WithMicroTenant(microTenantID string) *Service
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
func (service *Service) GetAll() (list []ProvisioningKey, err error)
func (*Service) GetAllByAssociationType ¶
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 ¶
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}