Documentation
¶
Overview ¶
Api classes for vmm's golang SDK
Api classes for vmm's golang SDK ¶
Api classes for vmm's golang SDK ¶
Api classes for vmm's golang SDK ¶
Api classes for vmm's golang SDK ¶
Api classes for vmm's golang SDK
Index ¶
- type EsxiVmApi
- func (api *EsxiVmApi) AssignVmOwner(extId *string, body *import1.OwnershipInfo, args ...map[string]interface{}) (*import1.AssignVmOwnerResponse, error)
- func (api *EsxiVmApi) AssociateVmCategories(extId *string, body *import1.AssociateVmCategoriesParams, ...) (*import1.AssociateVmCategoriesResponse, error)
- func (api *EsxiVmApi) DisassociateVmCategories(extId *string, body *import1.DisassociateVmCategoriesParams, ...) (*import1.DisassociateVmCategoriesResponse, error)
- func (api *EsxiVmApi) GetNutanixGuestTools(extId *string, args ...map[string]interface{}) (*import1.GetNutanixGuestToolsResponse, error)
- func (api *EsxiVmApi) GetVm(extId *string, args ...map[string]interface{}) (*import1.GetVmResponse, error)
- func (api *EsxiVmApi) InsertNutanixVmGuestTools(extId *string, body *import1.NutanixGuestToolsInsertConfig, ...) (*import1.InsertNutanixVmGuestToolsResponse, error)
- func (api *EsxiVmApi) InstallNutanixVmGuestTools(extId *string, body *import1.NutanixGuestToolsInstallConfig, ...) (*import1.InstallNutanixVmGuestToolsResponse, error)
- func (api *EsxiVmApi) ListVms(page_ *int, limit_ *int, filter_ *string, orderby_ *string, ...) (*import1.ListVmsResponse, error)
- func (api *EsxiVmApi) UninstallNutanixVmGuestTools(extId *string, args ...map[string]interface{}) (*import1.UninstallNutanixVmGuestToolsResponse, error)
- func (api *EsxiVmApi) UpdateNutanixGuestTools(extId *string, body *import1.NutanixGuestTools, args ...map[string]interface{}) (*import1.UpdateNutanixGuestToolsResponse, error)
- func (api *EsxiVmApi) UpgradeNutanixVmGuestTools(extId *string, body *import1.NutanixGuestToolsUpgradeConfig, ...) (*import1.UpgradeNutanixVmGuestToolsResponse, error)
- type ImagesApi
- func (api *ImagesApi) CreateImage(body *import2.Image, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *ImagesApi) DeleteImageByExtId(extId *string, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *ImagesApi) GetImageByExtId(extId *string, args ...map[string]interface{}) (*import2.ImageApiResponse, error)
- func (api *ImagesApi) GetImageCategories(extId *string, args ...map[string]interface{}) (*import2.ImageCategoriesApiResponse, error)
- func (api *ImagesApi) GetImageClusterLocations(extId *string, args ...map[string]interface{}) (*import2.ImageClusterLocationListApiResponse, error)
- func (api *ImagesApi) GetImagePlacementPolicies(extId *string, args ...map[string]interface{}) (*import2.ImagePlacementPolicyListApiResponse, error)
- func (api *ImagesApi) GetImagesList(page_ *int, limit_ *int, filter_ *string, orderby_ *string, ...) (*import2.ImageListApiResponse, error)
- func (api *ImagesApi) ImportImage(body *import2.ClusterImages, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *ImagesApi) RemoteCopyImage(body *[]import2.ImageReference, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *ImagesApi) UpdateImageByExtId(extId *string, body *import2.Image, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *ImagesApi) UpdateImageCategories(extId *string, body *[]import2.CategoryReference, ...) (*import2.ImagesTaskApiResponse, error)
- type PlacementPoliciesApi
- func (api *PlacementPoliciesApi) CreatePlacementPolicy(body *import2.PlacementPolicy, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *PlacementPoliciesApi) DeletePlacementPolicyByExtId(extId *string, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *PlacementPoliciesApi) GetPlacementPoliciesList(page_ *int, limit_ *int, filter_ *string, orderby_ *string, ...) (*import2.PlacementPolicyListApiResponse, error)
- func (api *PlacementPoliciesApi) GetPlacementPolicyByExtId(extId *string, args ...map[string]interface{}) (*import2.PlacementPolicyApiResponse, error)
- func (api *PlacementPoliciesApi) ResumePlacementPolicyExtId(extId *string, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *PlacementPoliciesApi) SuspendPlacementPolicyExtId(extId *string, body *import2.CancelPlacementTasks, ...) (*import2.ImagesTaskApiResponse, error)
- func (api *PlacementPoliciesApi) UpdatePlacementPolicyByExtId(extId *string, body *import2.PlacementPolicy, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- type RateLimitsApi
- func (api *RateLimitsApi) CreateRateLimit(body *import2.RateLimit, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *RateLimitsApi) DeleteMultipleRateLimits(body *import2.RateLimitIdList, args ...map[string]interface{}) (*import2.RateLimitTaskListApiResponse, error)
- func (api *RateLimitsApi) DeleteRateLimitByExtId(extId *string, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- func (api *RateLimitsApi) GetRateLimitByExtId(extId *string, args ...map[string]interface{}) (*import2.RateLimitApiResponse, error)
- func (api *RateLimitsApi) GetRateLimitsList(page_ *int, limit_ *int, filter_ *string, orderby_ *string, ...) (*import2.RateLimitListApiResponse, error)
- func (api *RateLimitsApi) ResolveRateLimits(body *import2.ClusterIdList, args ...map[string]interface{}) (*import2.ResolveRateLimitsApiResponse, error)
- func (api *RateLimitsApi) UpdateRateLimitByExtId(extId *string, body *import2.RateLimit, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
- type VmApi
- func (api *VmApi) AssignIp(vmExtId *string, extId *string, body *import3.AssignIpParams, ...) (*import3.AssignIpResponse, error)
- func (api *VmApi) AssignVmOwner(extId *string, body *import3.OwnershipInfo, args ...map[string]interface{}) (*import3.AssignVmOwnerResponse, error)
- func (api *VmApi) AssociateVmCategories(extId *string, body *import3.AssociateVmCategoriesParams, ...) (*import3.AssociateVmCategoriesResponse, error)
- func (api *VmApi) CloneVm(extId *string, body *import3.CloneOverrideParams, ...) (*import3.CloneVmResponse, error)
- func (api *VmApi) CreateCdRom(vmExtId *string, body *import3.CdRom, args ...map[string]interface{}) (*import3.CreateCdRomResponse, error)
- func (api *VmApi) CreateDisk(vmExtId *string, body *import3.Disk, args ...map[string]interface{}) (*import3.CreateDiskResponse, error)
- func (api *VmApi) CreateGpu(vmExtId *string, body *import3.Gpu, args ...map[string]interface{}) (*import3.CreateGpuResponse, error)
- func (api *VmApi) CreateNic(vmExtId *string, body *import3.Nic, args ...map[string]interface{}) (*import3.CreateNicResponse, error)
- func (api *VmApi) CreateSerialPort(vmExtId *string, body *import3.SerialPort, args ...map[string]interface{}) (*import3.CreateSerialPortResponse, error)
- func (api *VmApi) CreateVm(body *import3.Vm, args ...map[string]interface{}) (*import3.CreateVmResponse, error)
- func (api *VmApi) CrossClusterMigrateVm(extId *string, body *import3.VmCrossClusterMigrateParams, ...) (*import3.CrossClusterMigrateVmResponse, error)
- func (api *VmApi) CustomizeGuest(extId *string, body *import3.GuestCustomizationParams, ...) (*import3.CustomizeGuestVmResponse, error)
- func (api *VmApi) DeleteCdRom(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteCdRomResponse, error)
- func (api *VmApi) DeleteDisk(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteDiskResponse, error)
- func (api *VmApi) DeleteGpu(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteGpuResponse, error)
- func (api *VmApi) DeleteNic(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteNicResponse, error)
- func (api *VmApi) DeleteSerialPort(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteSerialPortResponse, error)
- func (api *VmApi) DeleteVm(extId *string, args ...map[string]interface{}) (*import3.DeleteVmResponse, error)
- func (api *VmApi) DisassociateVmCategories(extId *string, body *import3.DisassociateVmCategoriesParams, ...) (*import3.DisassociateVmCategoriesResponse, error)
- func (api *VmApi) EjectCdRom(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.EjectCdRomResponse, error)
- func (api *VmApi) GetCdRomByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetCdRomResponse, error)
- func (api *VmApi) GetDiskByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetDiskResponse, error)
- func (api *VmApi) GetGpuByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetGpuResponse, error)
- func (api *VmApi) GetNicByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetNicResponse, error)
- func (api *VmApi) GetSerialPortByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetSerialPortResponse, error)
- func (api *VmApi) GetVmByExtId(extId *string, args ...map[string]interface{}) (*import3.GetVmResponse, error)
- func (api *VmApi) GetVmGuestTools(extId *string, args ...map[string]interface{}) (*import3.GetGuestToolsResponse, error)
- func (api *VmApi) GuestRebootVm(extId *string, body *import3.GuestPowerOptions, args ...map[string]interface{}) (*import3.RebootVmResponse, error)
- func (api *VmApi) GuestShutdownVm(extId *string, body *import3.GuestPowerOptions, args ...map[string]interface{}) (*import3.ShutdownVmResponse, error)
- func (api *VmApi) InsertCdRom(vmExtId *string, extId *string, body *import3.CdRomInsertParams, ...) (*import3.InsertCdRomResponse, error)
- func (api *VmApi) InsertVmGuestTools(extId *string, body *import3.GuestToolsInsertConfig, ...) (*import3.InsertVmGuestToolsResponse, error)
- func (api *VmApi) InstallVmGuestTools(extId *string, body *import3.GuestToolsInstallConfig, ...) (*import3.InstallVmGuestToolsResponse, error)
- func (api *VmApi) ListCdRoms(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import3.ListCdRomsResponse, error)
- func (api *VmApi) ListDisks(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import3.ListDisksResponse, error)
- func (api *VmApi) ListGpus(vmExtId *string, page_ *int, limit_ *int, filter_ *string, ...) (*import3.ListGpusResponse, error)
- func (api *VmApi) ListNics(vmExtId *string, page_ *int, limit_ *int, filter_ *string, ...) (*import3.ListNicsResponse, error)
- func (api *VmApi) ListSerialPorts(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import3.ListSerialPortsResponse, error)
- func (api *VmApi) ListVms(page_ *int, limit_ *int, filter_ *string, orderby_ *string, ...) (*import3.ListVmsResponse, error)
- func (api *VmApi) MigrateNic(vmExtId *string, extId *string, body *import3.MigrateNicConfig, ...) (*import3.MigrateNicResponse, error)
- func (api *VmApi) PowerCycleVm(extId *string, args ...map[string]interface{}) (*import3.PowerCycleVmResponse, error)
- func (api *VmApi) PowerOffVm(extId *string, args ...map[string]interface{}) (*import3.PowerOffVmResponse, error)
- func (api *VmApi) PowerOnVm(extId *string, args ...map[string]interface{}) (*import3.PowerOnVmResponse, error)
- func (api *VmApi) RebootVm(extId *string, args ...map[string]interface{}) (*import3.RebootVmResponse, error)
- func (api *VmApi) ReleaseIp(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.ReleaseIpResponse, error)
- func (api *VmApi) ResetVm(extId *string, args ...map[string]interface{}) (*import3.ResetVmResponse, error)
- func (api *VmApi) ShutdownVm(extId *string, args ...map[string]interface{}) (*import3.ShutdownVmResponse, error)
- func (api *VmApi) UninstallVmGuestTools(extId *string, args ...map[string]interface{}) (*import3.UninstallVmGuestToolsResponse, error)
- func (api *VmApi) UpdateDisk(vmExtId *string, extId *string, body *import3.Disk, ...) (*import3.UpdateDiskResponse, error)
- func (api *VmApi) UpdateNic(vmExtId *string, extId *string, body *import3.Nic, ...) (*import3.UpdateNicResponse, error)
- func (api *VmApi) UpdateSerialPort(vmExtId *string, extId *string, body *import3.SerialPort, ...) (*import3.UpdateSerialPortResponse, error)
- func (api *VmApi) UpdateVm(extId *string, body *import3.Vm, args ...map[string]interface{}) (*import3.UpdateVmResponse, error)
- func (api *VmApi) UpdateVmGuestTools(extId *string, body *import3.GuestTools, args ...map[string]interface{}) (*import3.UpdateGuestToolsResponse, error)
- func (api *VmApi) UpgradeVmGuestTools(extId *string, body *import3.GuestToolsUpgradeConfig, ...) (*import3.UpgradeVmGuestToolsResponse, error)
- type VmDataProtectionApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EsxiVmApi ¶
func NewEsxiVmApi ¶
func (*EsxiVmApi) AssignVmOwner ¶
func (api *EsxiVmApi) AssignVmOwner(extId *string, body *import1.OwnershipInfo, args ...map[string]interface{}) (*import1.AssignVmOwnerResponse, error)
Assign the owner of a Virtual Machine.
func (*EsxiVmApi) AssociateVmCategories ¶
func (api *EsxiVmApi) AssociateVmCategories(extId *string, body *import1.AssociateVmCategoriesParams, args ...map[string]interface{}) (*import1.AssociateVmCategoriesResponse, error)
Associate categories to a Virtual Machine.
func (*EsxiVmApi) DisassociateVmCategories ¶
func (api *EsxiVmApi) DisassociateVmCategories(extId *string, body *import1.DisassociateVmCategoriesParams, args ...map[string]interface{}) (*import1.DisassociateVmCategoriesResponse, error)
Disassociate categories from a Virtual Machine.
func (*EsxiVmApi) GetNutanixGuestTools ¶
func (api *EsxiVmApi) GetNutanixGuestTools(extId *string, args ...map[string]interface{}) (*import1.GetNutanixGuestToolsResponse, error)
Retrieves the Nutanix Guest Tools configuration for a Virtual Machine.
func (*EsxiVmApi) GetVm ¶
func (api *EsxiVmApi) GetVm(extId *string, args ...map[string]interface{}) (*import1.GetVmResponse, error)
Retrieves configuration details for a Virtual Machine.
func (*EsxiVmApi) InsertNutanixVmGuestTools ¶
func (api *EsxiVmApi) InsertNutanixVmGuestTools(extId *string, body *import1.NutanixGuestToolsInsertConfig, args ...map[string]interface{}) (*import1.InsertNutanixVmGuestToolsResponse, error)
Inserts the Nutanix Guest Tools installation and configuration ISO into a virtual machine.
func (*EsxiVmApi) InstallNutanixVmGuestTools ¶
func (api *EsxiVmApi) InstallNutanixVmGuestTools(extId *string, body *import1.NutanixGuestToolsInstallConfig, args ...map[string]interface{}) (*import1.InstallNutanixVmGuestToolsResponse, error)
Installs Nutanix Guest Tools in a Virtual Machine by using the provided credentials.
func (*EsxiVmApi) ListVms ¶
func (api *EsxiVmApi) ListVms(page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import1.ListVmsResponse, error)
Lists the Virtual Machines defined on the system. List of Virtual Machines can be further filtered out using various filtering options.
func (*EsxiVmApi) UninstallNutanixVmGuestTools ¶
func (api *EsxiVmApi) UninstallNutanixVmGuestTools(extId *string, args ...map[string]interface{}) (*import1.UninstallNutanixVmGuestToolsResponse, error)
Trigger an in-guest uninstallation of Nutanix Guest Tools.
func (*EsxiVmApi) UpdateNutanixGuestTools ¶
func (api *EsxiVmApi) UpdateNutanixGuestTools(extId *string, body *import1.NutanixGuestTools, args ...map[string]interface{}) (*import1.UpdateNutanixGuestToolsResponse, error)
Updates the Nutanix Guest Tools configuration for a Virtual Machine.
func (*EsxiVmApi) UpgradeNutanixVmGuestTools ¶
func (api *EsxiVmApi) UpgradeNutanixVmGuestTools(extId *string, body *import1.NutanixGuestToolsUpgradeConfig, args ...map[string]interface{}) (*import1.UpgradeNutanixVmGuestToolsResponse, error)
Trigger an in-guest upgrade of Nutanix Guest Tools.
type ImagesApi ¶
func NewImagesApi ¶
func (*ImagesApi) CreateImage ¶
func (api *ImagesApi) CreateImage(body *import2.Image, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Create an image.
func (*ImagesApi) DeleteImageByExtId ¶
func (api *ImagesApi) DeleteImageByExtId(extId *string, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Delete the image with the given extId.
func (*ImagesApi) GetImageByExtId ¶
func (api *ImagesApi) GetImageByExtId(extId *string, args ...map[string]interface{}) (*import2.ImageApiResponse, error)
Get image details with the given extId.
func (*ImagesApi) GetImageCategories ¶
func (api *ImagesApi) GetImageCategories(extId *string, args ...map[string]interface{}) (*import2.ImageCategoriesApiResponse, error)
Get image categories for a given extId.
func (*ImagesApi) GetImageClusterLocations ¶
func (api *ImagesApi) GetImageClusterLocations(extId *string, args ...map[string]interface{}) (*import2.ImageClusterLocationListApiResponse, error)
Get the Prism Element locations where the image is currently available.
func (*ImagesApi) GetImagePlacementPolicies ¶
func (api *ImagesApi) GetImagePlacementPolicies(extId *string, args ...map[string]interface{}) (*import2.ImagePlacementPolicyListApiResponse, error)
Get the current image placement policies for an image.
func (*ImagesApi) GetImagesList ¶
func (api *ImagesApi) GetImagesList(page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import2.ImageListApiResponse, error)
List images.
func (*ImagesApi) ImportImage ¶
func (api *ImagesApi) ImportImage(body *import2.ClusterImages, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Import images owned by a registered Prism Element cluster to the current Prism Central.
func (*ImagesApi) RemoteCopyImage ¶
func (api *ImagesApi) RemoteCopyImage(body *[]import2.ImageReference, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Copy the given images to a remote paired Prism Central.
func (*ImagesApi) UpdateImageByExtId ¶
func (api *ImagesApi) UpdateImageByExtId(extId *string, body *import2.Image, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Update the image with the given extId.
func (*ImagesApi) UpdateImageCategories ¶
func (api *ImagesApi) UpdateImageCategories(extId *string, body *[]import2.CategoryReference, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Replace the attached image categories with the given extId.
type PlacementPoliciesApi ¶
type PlacementPoliciesApi struct { ApiClient *client.ApiClient // contains filtered or unexported fields }
func NewPlacementPoliciesApi ¶
func NewPlacementPoliciesApi(apiClient *client.ApiClient) *PlacementPoliciesApi
func (*PlacementPoliciesApi) CreatePlacementPolicy ¶
func (api *PlacementPoliciesApi) CreatePlacementPolicy(body *import2.PlacementPolicy, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Create an image placement policy.
func (*PlacementPoliciesApi) DeletePlacementPolicyByExtId ¶
func (api *PlacementPoliciesApi) DeletePlacementPolicyByExtId(extId *string, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Delete the image placement policy with the given extId.
func (*PlacementPoliciesApi) GetPlacementPoliciesList ¶
func (api *PlacementPoliciesApi) GetPlacementPoliciesList(page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import2.PlacementPolicyListApiResponse, error)
List of image placement policies.
func (*PlacementPoliciesApi) GetPlacementPolicyByExtId ¶
func (api *PlacementPoliciesApi) GetPlacementPolicyByExtId(extId *string, args ...map[string]interface{}) (*import2.PlacementPolicyApiResponse, error)
Get the image placement policy with the given extId.
func (*PlacementPoliciesApi) ResumePlacementPolicyExtId ¶
func (api *PlacementPoliciesApi) ResumePlacementPolicyExtId(extId *string, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Resume a suspended image placement policy to be considered for enforcement.
func (*PlacementPoliciesApi) SuspendPlacementPolicyExtId ¶
func (api *PlacementPoliciesApi) SuspendPlacementPolicyExtId(extId *string, body *import2.CancelPlacementTasks, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Suspend an active image placement policy, active policy is one that is being considered for enforcement.
func (*PlacementPoliciesApi) UpdatePlacementPolicyByExtId ¶
func (api *PlacementPoliciesApi) UpdatePlacementPolicyByExtId(extId *string, body *import2.PlacementPolicy, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Update the image placement policy with the given extId.
type RateLimitsApi ¶
func NewRateLimitsApi ¶
func NewRateLimitsApi(apiClient *client.ApiClient) *RateLimitsApi
func (*RateLimitsApi) CreateRateLimit ¶
func (api *RateLimitsApi) CreateRateLimit(body *import2.RateLimit, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Create an image rate limit.
func (*RateLimitsApi) DeleteMultipleRateLimits ¶
func (api *RateLimitsApi) DeleteMultipleRateLimits(body *import2.RateLimitIdList, args ...map[string]interface{}) (*import2.RateLimitTaskListApiResponse, error)
Delete the image rate limits with the specified extIds.
func (*RateLimitsApi) DeleteRateLimitByExtId ¶
func (api *RateLimitsApi) DeleteRateLimitByExtId(extId *string, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Delete the image rate limit with the given extId.
func (*RateLimitsApi) GetRateLimitByExtId ¶
func (api *RateLimitsApi) GetRateLimitByExtId(extId *string, args ...map[string]interface{}) (*import2.RateLimitApiResponse, error)
Get the image rate limit with the given extId.
func (*RateLimitsApi) GetRateLimitsList ¶
func (api *RateLimitsApi) GetRateLimitsList(page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import2.RateLimitListApiResponse, error)
List image rate limits.
func (*RateLimitsApi) ResolveRateLimits ¶
func (api *RateLimitsApi) ResolveRateLimits(body *import2.ClusterIdList, args ...map[string]interface{}) (*import2.ResolveRateLimitsApiResponse, error)
Resolve the effective image rate limit for the given Prism Elements when multiple image rate limits apply.
func (*RateLimitsApi) UpdateRateLimitByExtId ¶
func (api *RateLimitsApi) UpdateRateLimitByExtId(extId *string, body *import2.RateLimit, args ...map[string]interface{}) (*import2.ImagesTaskApiResponse, error)
Update an image rate limit.
type VmApi ¶
func (*VmApi) AssignIp ¶
func (api *VmApi) AssignIp(vmExtId *string, extId *string, body *import3.AssignIpParams, args ...map[string]interface{}) (*import3.AssignIpResponse, error)
Assigns a specific IP address to a network device attached to a managed network.
func (*VmApi) AssignVmOwner ¶
func (api *VmApi) AssignVmOwner(extId *string, body *import3.OwnershipInfo, args ...map[string]interface{}) (*import3.AssignVmOwnerResponse, error)
Assign the owner of a Virtual Machine.
func (*VmApi) AssociateVmCategories ¶
func (api *VmApi) AssociateVmCategories(extId *string, body *import3.AssociateVmCategoriesParams, args ...map[string]interface{}) (*import3.AssociateVmCategoriesResponse, error)
Associate categories to a Virtual Machine.
func (*VmApi) CloneVm ¶
func (api *VmApi) CloneVm(extId *string, body *import3.CloneOverrideParams, args ...map[string]interface{}) (*import3.CloneVmResponse, error)
Clones an existing Virtual Machine. This operation also includes updating the existing configuration during the clone operation.
func (*VmApi) CreateCdRom ¶
func (api *VmApi) CreateCdRom(vmExtId *string, body *import3.CdRom, args ...map[string]interface{}) (*import3.CreateCdRomResponse, error)
Creates and attaches a CD-ROM device to a Virtual Machine.
func (*VmApi) CreateDisk ¶
func (api *VmApi) CreateDisk(vmExtId *string, body *import3.Disk, args ...map[string]interface{}) (*import3.CreateDiskResponse, error)
Creates and attaches a disk device to a Virtual Machine.
func (*VmApi) CreateGpu ¶
func (api *VmApi) CreateGpu(vmExtId *string, body *import3.Gpu, args ...map[string]interface{}) (*import3.CreateGpuResponse, error)
Attaches a GPU device to a Virtual Machine.
func (*VmApi) CreateNic ¶
func (api *VmApi) CreateNic(vmExtId *string, body *import3.Nic, args ...map[string]interface{}) (*import3.CreateNicResponse, error)
Creates and attaches a network device to a Virtual Machine.
func (*VmApi) CreateSerialPort ¶
func (api *VmApi) CreateSerialPort(vmExtId *string, body *import3.SerialPort, args ...map[string]interface{}) (*import3.CreateSerialPortResponse, error)
Creates and attaches a serial port device to a Virtual Machine.
func (*VmApi) CreateVm ¶
func (api *VmApi) CreateVm(body *import3.Vm, args ...map[string]interface{}) (*import3.CreateVmResponse, error)
Creates a Virtual Machine with the provided configuration.
func (*VmApi) CrossClusterMigrateVm ¶
func (api *VmApi) CrossClusterMigrateVm(extId *string, body *import3.VmCrossClusterMigrateParams, args ...map[string]interface{}) (*import3.CrossClusterMigrateVmResponse, error)
Migrates a VM (including its storage) from the current cluster to a new target cluster.
func (*VmApi) CustomizeGuest ¶
func (api *VmApi) CustomizeGuest(extId *string, body *import3.GuestCustomizationParams, args ...map[string]interface{}) (*import3.CustomizeGuestVmResponse, error)
Stage a Sysprep or cloud-init configuration file to be used by the guest for the next boot. Note that the Sysprep command must be used to generalize the Windows VMs before triggering this API call.
func (*VmApi) DeleteCdRom ¶
func (api *VmApi) DeleteCdRom(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteCdRomResponse, error)
Removes the specified CD-ROM device from a Virtual Machine.
func (*VmApi) DeleteDisk ¶
func (api *VmApi) DeleteDisk(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteDiskResponse, error)
Removes the specified disk device from a Virtual Machine.
func (*VmApi) DeleteGpu ¶
func (api *VmApi) DeleteGpu(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteGpuResponse, error)
Removes the specified GPU device from a Virtual Machine.
func (*VmApi) DeleteNic ¶
func (api *VmApi) DeleteNic(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteNicResponse, error)
Removes the specified network device from a Virtual Machine.
func (*VmApi) DeleteSerialPort ¶
func (api *VmApi) DeleteSerialPort(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteSerialPortResponse, error)
Removes the specified serial port from a Virtual Machine.
func (*VmApi) DeleteVm ¶
func (api *VmApi) DeleteVm(extId *string, args ...map[string]interface{}) (*import3.DeleteVmResponse, error)
Delete the specified Virtual Machine.
func (*VmApi) DisassociateVmCategories ¶
func (api *VmApi) DisassociateVmCategories(extId *string, body *import3.DisassociateVmCategoriesParams, args ...map[string]interface{}) (*import3.DisassociateVmCategoriesResponse, error)
Disassociate categories from a Virtual Machine.
func (*VmApi) EjectCdRom ¶
func (api *VmApi) EjectCdRom(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.EjectCdRomResponse, error)
Ejects the ISO currently inserted into a CD-ROM device on a Virtual Machine.
func (*VmApi) GetCdRomByExtId ¶
func (api *VmApi) GetCdRomByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetCdRomResponse, error)
Retrieves configuration details for the provided CD-ROM device attached to a Virtual Machine.
func (*VmApi) GetDiskByExtId ¶
func (api *VmApi) GetDiskByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetDiskResponse, error)
Retrieves configuration details for the provided disk device attached to a Virtual Machine.
func (*VmApi) GetGpuByExtId ¶
func (api *VmApi) GetGpuByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetGpuResponse, error)
Retrieves configuration details for the provided GPU device attached to a Virtual Machine.
func (*VmApi) GetNicByExtId ¶
func (api *VmApi) GetNicByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetNicResponse, error)
Retrieves configuration details for the provided network device attached to a Virtual Machine.
func (*VmApi) GetSerialPortByExtId ¶
func (api *VmApi) GetSerialPortByExtId(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetSerialPortResponse, error)
Retrieves configuration details for the provided serial port attached to a Virtual Machine.
func (*VmApi) GetVmByExtId ¶
func (api *VmApi) GetVmByExtId(extId *string, args ...map[string]interface{}) (*import3.GetVmResponse, error)
Retrieves configuration details for a Virtual Machine.
func (*VmApi) GetVmGuestTools ¶
func (api *VmApi) GetVmGuestTools(extId *string, args ...map[string]interface{}) (*import3.GetGuestToolsResponse, error)
Retrieves the Nutanix Guest Tools configuration for a Virtual Machine.
func (*VmApi) GuestRebootVm ¶
func (api *VmApi) GuestRebootVm(extId *string, body *import3.GuestPowerOptions, args ...map[string]interface{}) (*import3.RebootVmResponse, error)
Collaborative reboot of a Virtual Machine, requesting Nutanix Guest Tools to trigger a reboot from within the VM.
func (*VmApi) GuestShutdownVm ¶
func (api *VmApi) GuestShutdownVm(extId *string, body *import3.GuestPowerOptions, args ...map[string]interface{}) (*import3.ShutdownVmResponse, error)
Collaborative shutdown of a Virtual Machine, requesting Nutanix Guest Tools to trigger a shutdown from within the VM.
func (*VmApi) InsertCdRom ¶
func (api *VmApi) InsertCdRom(vmExtId *string, extId *string, body *import3.CdRomInsertParams, args ...map[string]interface{}) (*import3.InsertCdRomResponse, error)
Inserts the defined ISO into a CD-ROM device attached to a Virtual Machine.
func (*VmApi) InsertVmGuestTools ¶
func (api *VmApi) InsertVmGuestTools(extId *string, body *import3.GuestToolsInsertConfig, args ...map[string]interface{}) (*import3.InsertVmGuestToolsResponse, error)
Inserts the Nutanix Guest Tools installation and configuration ISO into a virtual machine.
func (*VmApi) InstallVmGuestTools ¶
func (api *VmApi) InstallVmGuestTools(extId *string, body *import3.GuestToolsInstallConfig, args ...map[string]interface{}) (*import3.InstallVmGuestToolsResponse, error)
Installs Nutanix Guest Tools in a Virtual Machine by using the provided credentials.
func (*VmApi) ListCdRoms ¶
func (api *VmApi) ListCdRoms(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import3.ListCdRomsResponse, error)
Lists the CD-ROM devices attached to a Virtual Machine.
func (*VmApi) ListDisks ¶
func (api *VmApi) ListDisks(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import3.ListDisksResponse, error)
Lists the disk devices attached to a Virtual Machine.
func (*VmApi) ListGpus ¶
func (api *VmApi) ListGpus(vmExtId *string, page_ *int, limit_ *int, filter_ *string, args ...map[string]interface{}) (*import3.ListGpusResponse, error)
Lists the GPU devices attached to a Virtual Machine.
func (*VmApi) ListNics ¶
func (api *VmApi) ListNics(vmExtId *string, page_ *int, limit_ *int, filter_ *string, args ...map[string]interface{}) (*import3.ListNicsResponse, error)
Lists the network devices attached to a Virtual Machine.
func (*VmApi) ListSerialPorts ¶
func (api *VmApi) ListSerialPorts(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import3.ListSerialPortsResponse, error)
Lists the serial ports attached to a Virtual Machine.
func (*VmApi) ListVms ¶
func (api *VmApi) ListVms(page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import3.ListVmsResponse, error)
Lists the Virtual Machines defined on the system. List of Virtual Machines can be further filtered out using various filtering options.
func (*VmApi) MigrateNic ¶
func (api *VmApi) MigrateNic(vmExtId *string, extId *string, body *import3.MigrateNicConfig, args ...map[string]interface{}) (*import3.MigrateNicResponse, error)
Migrates a network device attached to a Virtual Machine to another subnet. This can be used to move network devices between VLAN and VPC subnets.
func (*VmApi) PowerCycleVm ¶
func (api *VmApi) PowerCycleVm(extId *string, args ...map[string]interface{}) (*import3.PowerCycleVmResponse, error)
Force a power-cycle for a Virtual Machine. This operation is equivalent to requesting a VM power-off followed by the VM power-on. Power cycling a VM is slower than resetting it, but it will be creating a fresh instance of the Virtual Machine. When resetting, the same instance is restarted within the context of the running VM instance.
func (*VmApi) PowerOffVm ¶
func (api *VmApi) PowerOffVm(extId *string, args ...map[string]interface{}) (*import3.PowerOffVmResponse, error)
Force shutdown of a Virtual Machine. Equivalent to removing the power cable. Note: If any write operations are being made to any disk when this API is called, it might result in some data loss.
func (*VmApi) PowerOnVm ¶
func (api *VmApi) PowerOnVm(extId *string, args ...map[string]interface{}) (*import3.PowerOnVmResponse, error)
Turns a Virtual Machine on.
func (*VmApi) RebootVm ¶
func (api *VmApi) RebootVm(extId *string, args ...map[string]interface{}) (*import3.RebootVmResponse, error)
Collaborative reboot of a Virtual Machine through the ACPI support in the operating system.
func (*VmApi) ReleaseIp ¶
func (api *VmApi) ReleaseIp(vmExtId *string, extId *string, args ...map[string]interface{}) (*import3.ReleaseIpResponse, error)
Releases the IP address assignment from a network device attached to a managed network.
func (*VmApi) ResetVm ¶
func (api *VmApi) ResetVm(extId *string, args ...map[string]interface{}) (*import3.ResetVmResponse, error)
Force reset of a Virtual Machine, without waiting for the guest VM to shutdown itself. Resetting a VM is faster than power-cycle as the reset occurs within the context of the running virtual machine instance rather than creating a fresh instance.
func (*VmApi) ShutdownVm ¶
func (api *VmApi) ShutdownVm(extId *string, args ...map[string]interface{}) (*import3.ShutdownVmResponse, error)
Collaborative shutdown of a Virtual Machine through the ACPI support in the operating system.
func (*VmApi) UninstallVmGuestTools ¶
func (api *VmApi) UninstallVmGuestTools(extId *string, args ...map[string]interface{}) (*import3.UninstallVmGuestToolsResponse, error)
Trigger an in-guest uninstallation of Nutanix Guest Tools.
func (*VmApi) UpdateDisk ¶
func (api *VmApi) UpdateDisk(vmExtId *string, extId *string, body *import3.Disk, args ...map[string]interface{}) (*import3.UpdateDiskResponse, error)
Updates the configuration details for the provided disk device.
func (*VmApi) UpdateNic ¶
func (api *VmApi) UpdateNic(vmExtId *string, extId *string, body *import3.Nic, args ...map[string]interface{}) (*import3.UpdateNicResponse, error)
Updates the configuration details for the provided network device.
func (*VmApi) UpdateSerialPort ¶
func (api *VmApi) UpdateSerialPort(vmExtId *string, extId *string, body *import3.SerialPort, args ...map[string]interface{}) (*import3.UpdateSerialPortResponse, error)
Updates the configuration details for the provided serial port.
func (*VmApi) UpdateVm ¶
func (api *VmApi) UpdateVm(extId *string, body *import3.Vm, args ...map[string]interface{}) (*import3.UpdateVmResponse, error)
Updates configuration details for a Virtual Machine.
func (*VmApi) UpdateVmGuestTools ¶
func (api *VmApi) UpdateVmGuestTools(extId *string, body *import3.GuestTools, args ...map[string]interface{}) (*import3.UpdateGuestToolsResponse, error)
Updates the Nutanix Guest Tools configuration for a Virtual Machine.
func (*VmApi) UpgradeVmGuestTools ¶
func (api *VmApi) UpgradeVmGuestTools(extId *string, body *import3.GuestToolsUpgradeConfig, args ...map[string]interface{}) (*import3.UpgradeVmGuestToolsResponse, error)
Trigger an in-guest upgrade of Nutanix Guest Tools.
type VmDataProtectionApi ¶
type VmDataProtectionApi struct { ApiClient *client.ApiClient // contains filtered or unexported fields }
func NewVmDataProtectionApi ¶
func NewVmDataProtectionApi(apiClient *client.ApiClient) *VmDataProtectionApi
func (*VmDataProtectionApi) RevertVm ¶
func (api *VmDataProtectionApi) RevertVm(extId *string, body *import3.VmRevertParams, args ...map[string]interface{}) (*import3.RevertVmResponse, error)
Revert VM identified by {extId}. This does an in-place VM restore from a specified VM Recovery Point.