Documentation
¶
Index ¶
- Constants
- type ConfigurationInfo
- type DraftImportResult
- type FileSpec
- type Manager
- func (c *Manager) Cancel(clusterId string) (string, error)
- func (c *Manager) CheckEligibility(clusterId string) (string, error)
- func (c *Manager) EnableClusterConfiguration(clusterId string) (string, error)
- func (c *Manager) GetClusterConfigurationStatus(clusterId string) (ConfigurationInfo, error)
- func (c *Manager) ImportFromFile(clusterId string, spec FileSpec) (DraftImportResult, error)
- func (c *Manager) ImportFromReferenceHost(clusterId, hostId string) (string, error)
- func (c *Manager) RunPrecheck(clusterId string) (string, error)
- func (c *Manager) ValidateConfiguration(clusterId string) (string, error)
Constants ¶
const ( // BasePath the base endpoint for the clusters enablement configuration API BasePath = clusters.BasePath + "/%s/enablement" // ConfigurationPath the endpoint for the enablement configuration API ConfigurationPath = BasePath + "/configuration" // TransitionPath the endpoint for the transition API TransitionPath = ConfigurationPath + "/transition" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationInfo ¶ added in v0.53.0
type ConfigurationInfo struct {
Status string `json:"status"`
}
ConfigurationInfo contains details about the current configuration status of a cluster https://developer.broadcom.com/xapis/vsphere-automation-api/latest/data-structures/Esx%20Settings%20Clusters%20Enablement%20Configuration%20Transition%20Info/
type DraftImportResult ¶
DraftImportResult contains draft information, a result of importing a configuration from a file or a reference host
type Manager ¶
Manager extends rest.Client, adding cluster configuration enablement related methods.
func NewManager ¶
NewManager creates a new Manager instance with the given client.
func (*Manager) Cancel ¶
Cancel deletes the pending cluster configuration Returns a task identifier and an error https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition__action=cancel/post/
func (*Manager) CheckEligibility ¶
CheckEligibility performs server-side validation of whether the cluster is eligible for configuration management via profiles Returns a task identifier and an error https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition__action=checkEligibility__vmw-task=true/post/
func (*Manager) EnableClusterConfiguration ¶
EnableClusterConfiguration enables cluster configuration profiles Returns a task identifier and an error https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition__action=enable__vmw-task=true/post/
func (*Manager) GetClusterConfigurationStatus ¶
func (c *Manager) GetClusterConfigurationStatus(clusterId string) (ConfigurationInfo, error)
GetClusterConfigurationStatus returns the status of the current pending cluster configuration Returns the config status and an error https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition/get/
func (*Manager) ImportFromFile ¶
func (c *Manager) ImportFromFile(clusterId string, spec FileSpec) (DraftImportResult, error)
ImportFromFile imports the configuration in the provided json string Returns a task identifier and an error https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition__action=importFromFile/post/
func (*Manager) ImportFromReferenceHost ¶
ImportFromReferenceHost imports the configuration of an existing ESXi host Returns a task identifier and an error https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition__action=importFromHost__vmw-task=true/post/
func (*Manager) RunPrecheck ¶
RunPrecheck performs server-side pre-checks of the pending cluster configuration Returns a task identifier and an error https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition__action=precheck__vmw-task=true/post/
func (*Manager) ValidateConfiguration ¶
ValidateConfiguration performs server-side validation of the pending cluster configuration Returns a task identifier and an error https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition__action=validateConfig__vmw-task=true/post/