Documentation ¶
Index ¶
- Variables
- func Delete(ctx context.Context, service *zscaler.Service, ...) (*http.Response, error)
- func Update(ctx context.Context, service *zscaler.Service, ...) (*http.Response, error)
- type ProvisioningKey
- func Create(ctx context.Context, service *zscaler.Service, associationType string, ...) (*ProvisioningKey, *http.Response, error)
- func Get(ctx context.Context, service *zscaler.Service, ...) (*ProvisioningKey, *http.Response, error)
- func GetAll(ctx context.Context, service *zscaler.Service) (list []ProvisioningKey, err error)
- func GetAllByAssociationType(ctx context.Context, service *zscaler.Service, associationType string) ([]ProvisioningKey, error)
- func GetByIDAllAssociations(ctx context.Context, service *zscaler.Service, id string) (p *ProvisioningKey, assoc_type string, resp *http.Response, err error)
- func GetByName(ctx context.Context, service *zscaler.Service, associationType, name string) (*ProvisioningKey, *http.Response, error)
- func GetByNameAllAssociations(ctx context.Context, service *zscaler.Service, name string) (p *ProvisioningKey, assoc_type string, resp *http.Response, err 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 ¶
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 GetAllByAssociationType ¶
func GetByIDAllAssociations ¶
Click to show internal directories.
Click to hide internal directories.