api

package
v4.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Api classes for vmm's golang SDK

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsxiStatsApi

type EsxiStatsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewEsxiStatsApi

func NewEsxiStatsApi(apiClient *client.ApiClient) *EsxiStatsApi

func (*EsxiStatsApi) GetDiskStatsById

func (api *EsxiStatsApi) GetDiskStatsById(vmExtId *string, extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import2.GetDiskStatsApiResponse, error)

Fetches the stats for the specified VM disk. Users can fetch the stats by specifying the following params in the request query: 1) '$select': comma-separated attributes with the prefix 'stats/', e.g. 'stats/checkScore'. 2) '$startTime': the start time for which stats should be reported, e.g. '2023-01-01T12:00:00.000-08:00'; 3) '$endTime': the end time for which stats should be reported; 4) '$samplingInterval': the sampling interval in seconds at which statistical data should be collected; 5) '$statType': the down-sampling operator to use while performing down-sampling on stats data

func (*EsxiStatsApi) GetNicStatsById

func (api *EsxiStatsApi) GetNicStatsById(vmExtId *string, extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import2.GetNicStatsApiResponse, error)

Fetches the stats for the specified VM NIC. Users can fetch the stats by specifying the following params in the request query: 1) '$select': comma-separated attributes with the prefix 'stats/', e.g. 'stats/checkScore'. 2) '$startTime': the start time for which stats should be reported, e.g. '2023-01-01T12:00:00.000-08:00'; 3) '$endTime': the end time for which stats should be reported; 4) '$samplingInterval': the sampling interval in seconds at which statistical data should be collected; 5) '$statType': the down-sampling operator to use while performing down-sampling on stats data

func (*EsxiStatsApi) GetVmStatsById

func (api *EsxiStatsApi) GetVmStatsById(extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import2.GetVmStatsApiResponse, error)

Get VM stats for a given VM. Users can fetch the stats by specifying the following params in the request query: 1) '$select': comma-separated attributes with the prefix 'stats/', e.g. 'stats/checkScore'. 2) '$startTime': the start time for which stats should be reported, e.g. '2023-01-01T12:00:00.000-08:00'; 3) '$endTime': the end time for which stats should be reported; 4) '$samplingInterval': the sampling interval in seconds at which statistical data should be collected; 5) '$statType': the down-sampling operator to use while performing down-sampling on stats data

func (*EsxiStatsApi) ListVmStats

func (api *EsxiStatsApi) ListVmStats(startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import2.ListVmStatsApiResponse, error)

List VM stats for all VMs. Users can fetch the stats by specifying the following params in the request query: 1) '$select': comma-separated attributes with the prefix 'stats/', e.g. 'stats/controllerNumIo,stats/hypervisorNumIo'. 2) '$startTime': the start time for which stats should be reported, e.g. '2023-01-01T12:00:00.000-08:00'; 3) '$endTime': the end time for which stats should be reported; 4) '$samplingInterval': the sampling interval in seconds at which statistical data should be collected; 5) '$statType': the down-sampling operator to use while performing down-sampling on stats data; 6) '$orderby'; 7) '$page'; 8) '$limit'; and 9) '$filter': the OData filter to use, e.g. 'stats/hypervisorCpuUsagePpm gt 100000 and stats/guestMemoryUsagePpm lt 2000000.'

type EsxiVmApi

type EsxiVmApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewEsxiVmApi

func NewEsxiVmApi(apiClient *client.ApiClient) *EsxiVmApi

func (*EsxiVmApi) AssignVmOwner

func (api *EsxiVmApi) AssignVmOwner(extId *string, body *import3.OwnershipInfo, args ...map[string]interface{}) (*import3.AssignVmOwnerApiResponse, error)

Assign the owner of a virtual machine.

func (*EsxiVmApi) AssociateCategories

func (api *EsxiVmApi) AssociateCategories(extId *string, body *import3.AssociateVmCategoriesParams, args ...map[string]interface{}) (*import3.AssociateCategoriesApiResponse, error)

Associate categories to a virtual machine.

func (*EsxiVmApi) DisassociateCategories

func (api *EsxiVmApi) DisassociateCategories(extId *string, body *import3.DisassociateVmCategoriesParams, args ...map[string]interface{}) (*import3.DisassociateCategoriesApiResponse, error)

Disassociate categories from a virtual machine.

func (*EsxiVmApi) GetNutanixGuestToolsById

func (api *EsxiVmApi) GetNutanixGuestToolsById(extId *string, args ...map[string]interface{}) (*import3.GetNutanixGuestToolsApiResponse, error)

Retrieves the Nutanix Guest Tools configuration for a virtual machine.

func (*EsxiVmApi) GetVmById

func (api *EsxiVmApi) GetVmById(extId *string, args ...map[string]interface{}) (*import3.GetVmApiResponse, error)

Retrieves configuration details for a virtual machine.

func (*EsxiVmApi) InsertNutanixGuestTools

func (api *EsxiVmApi) InsertNutanixGuestTools(extId *string, body *import3.NutanixGuestToolsInsertConfig, args ...map[string]interface{}) (*import3.InsertNutanixGuestToolsApiResponse, error)

Inserts the Nutanix Guest Tools installation and configuration ISO into a virtual machine.

func (*EsxiVmApi) InstallNutanixGuestTools

func (api *EsxiVmApi) InstallNutanixGuestTools(extId *string, body *import3.NutanixGuestToolsInstallConfig, args ...map[string]interface{}) (*import3.InstallNutanixGuestToolsApiResponse, 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, select_ *string, args ...map[string]interface{}) (*import3.ListVmsApiResponse, error)

Lists the Virtual Machines defined on the system. List of Virtual Machines can be further filtered out using various filtering options.

func (*EsxiVmApi) PowerOffVm

func (api *EsxiVmApi) PowerOffVm(extId *string, args ...map[string]interface{}) (*import3.PowerOffVmApiResponse, error)

Forceably shuts down a virtual machine which is equivalent to removing the power cable. Note: The forced shutdown may result in data loss if any operations are in progress during the shutdown.

func (*EsxiVmApi) PowerOnVm

func (api *EsxiVmApi) PowerOnVm(extId *string, args ...map[string]interface{}) (*import3.PowerOnVmApiResponse, error)

Powers a Virtual Machine on or resumes it from the suspended state.

func (*EsxiVmApi) RebootGuestVm

func (api *EsxiVmApi) RebootGuestVm(extId *string, args ...map[string]interface{}) (*import3.RebootGuestOSApiResponse, error)

Issues a command to reboot ESXi guest OS. This operation requires ESXi tools installed.

func (*EsxiVmApi) ResetVm

func (api *EsxiVmApi) ResetVm(extId *string, args ...map[string]interface{}) (*import3.ResetVmApiResponse, error)

Sequentially performs the power off and power on operations; any operation between these actions will fail.

func (*EsxiVmApi) RevertVm

func (api *EsxiVmApi) RevertVm(extId *string, body *import3.RevertParams, args ...map[string]interface{}) (*import3.RevertVmApiResponse, error)

Revert VM identified by {extId}. This does an in-place VM restore from a specified VM Recovery Point.

func (*EsxiVmApi) ShutdownGuestVm

func (api *EsxiVmApi) ShutdownGuestVm(extId *string, args ...map[string]interface{}) (*import3.ShutdownVmApiResponse, error)

Issues a command to the ESXi guest OS to perform a clean shut down of services running on it. This operation requires ESXi tools to be installed.

func (*EsxiVmApi) SuspendVm

func (api *EsxiVmApi) SuspendVm(extId *string, args ...map[string]interface{}) (*import3.SuspendVmApiResponse, error)

Pause/Suspend execution in an ESXi virtual machine.

func (*EsxiVmApi) UninstallNutanixGuestTools

func (api *EsxiVmApi) UninstallNutanixGuestTools(extId *string, args ...map[string]interface{}) (*import3.UninstallNutanixGuestToolsApiResponse, error)

Trigger an in-guest uninstallation of Nutanix Guest Tools.

func (*EsxiVmApi) UpdateNutanixGuestToolsById

func (api *EsxiVmApi) UpdateNutanixGuestToolsById(extId *string, body *import3.NutanixGuestTools, args ...map[string]interface{}) (*import3.UpdateNutanixGuestToolsApiResponse, error)

Updates the Nutanix Guest Tools configuration for a virtual machine.

func (*EsxiVmApi) UpgradeNutanixGuestTools

func (api *EsxiVmApi) UpgradeNutanixGuestTools(extId *string, body *import3.NutanixGuestToolsUpgradeConfig, args ...map[string]interface{}) (*import3.UpgradeNutanixGuestToolsApiResponse, error)

Trigger an in-guest upgrade of Nutanix Guest Tools.

type ImagePlacementPoliciesApi

type ImagePlacementPoliciesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewImagePlacementPoliciesApi

func NewImagePlacementPoliciesApi(apiClient *client.ApiClient) *ImagePlacementPoliciesApi

func (*ImagePlacementPoliciesApi) CreatePlacementPolicy

func (api *ImagePlacementPoliciesApi) CreatePlacementPolicy(body *import4.PlacementPolicy, args ...map[string]interface{}) (*import4.CreatePlacementPolicyApiResponse, error)

Creates an image placement policy using the provided request body. The name, placement type, cluster entity filter and image entity filter are mandatory fields for creating an image placement policy.

func (*ImagePlacementPoliciesApi) DeletePlacementPolicyById

func (api *ImagePlacementPoliciesApi) DeletePlacementPolicyById(extId *string, args ...map[string]interface{}) (*import4.DeletePlacementPolicyApiResponse, error)

Deletes the image placement policy with the given external identifier.

func (*ImagePlacementPoliciesApi) GetPlacementPolicyById

func (api *ImagePlacementPoliciesApi) GetPlacementPolicyById(extId *string, args ...map[string]interface{}) (*import4.GetPlacementPolicyApiResponse, error)

Retrieves the image placement policy details for the provided external identifier.

func (*ImagePlacementPoliciesApi) ListPlacementPolicies

func (api *ImagePlacementPoliciesApi) ListPlacementPolicies(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import4.ListPlacementPoliciesApiResponse, error)

Lists image placement policies created in Prism Central, along with details such as name, description, and so on. This API supports operations such as filtering, sorting, selection, and pagination.

func (*ImagePlacementPoliciesApi) ResumePlacementPolicy

func (api *ImagePlacementPoliciesApi) ResumePlacementPolicy(extId *string, args ...map[string]interface{}) (*import4.ResumePlacementPolicyApiResponse, error)

Resumes a suspended image placement policy. A suspended image placement policy is one that is not being considered for enforcement.

func (*ImagePlacementPoliciesApi) SuspendPlacementPolicy

func (api *ImagePlacementPoliciesApi) SuspendPlacementPolicy(extId *string, body *import4.SuspendPlacementPolicyConfig, args ...map[string]interface{}) (*import4.SuspendPlacementPolicyApiResponse, error)

Suspends an active image placement policy. An active image placement policy is considered for enforcement.

func (*ImagePlacementPoliciesApi) UpdatePlacementPolicyById

func (api *ImagePlacementPoliciesApi) UpdatePlacementPolicyById(extId *string, body *import4.PlacementPolicy, args ...map[string]interface{}) (*import4.UpdatePlacementPolicyApiResponse, error)

Updates the image placement policy using the provided request body with the given external identifier. It is always recommended to perform a GET operation on a resource before performing a PUT operation to ensure the correct ETag is used.

type ImageRateLimitPoliciesApi

type ImageRateLimitPoliciesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewImageRateLimitPoliciesApi

func NewImageRateLimitPoliciesApi(apiClient *client.ApiClient) *ImageRateLimitPoliciesApi

func (*ImageRateLimitPoliciesApi) CreateRateLimitPolicy

func (api *ImageRateLimitPoliciesApi) CreateRateLimitPolicy(body *import4.RateLimitPolicy, args ...map[string]interface{}) (*import4.CreateRateLimitPolicyApiResponse, error)

Creates an image rate limit policy using the provided request body. The name, rate limit Kbps and cluster entity filter are mandatory fields for creating an image rate limit.

func (*ImageRateLimitPoliciesApi) DeleteRateLimitPolicyById

func (api *ImageRateLimitPoliciesApi) DeleteRateLimitPolicyById(extId *string, args ...map[string]interface{}) (*import4.DeleteRateLimitPolicyApiResponse, error)

Deletes the image rate limit policy with the given external identifier.

func (*ImageRateLimitPoliciesApi) GetRateLimitPolicyById

func (api *ImageRateLimitPoliciesApi) GetRateLimitPolicyById(extId *string, args ...map[string]interface{}) (*import4.GetRateLimitPolicyApiResponse, error)

Retrieves an image rate limit policy details for the provided external identifier.

func (*ImageRateLimitPoliciesApi) ListEffectiveRateLimitPolicies

func (api *ImageRateLimitPoliciesApi) ListEffectiveRateLimitPolicies(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import4.ListEffectiveRateLimitPoliciesApiResponse, error)

The effective rate limit for the Prism Elements. If no rate limit applies to a particular cluster, no entry is returned for that cluster. The API supports operations such as filtering, sorting, selection, and pagination.

func (*ImageRateLimitPoliciesApi) ListRateLimitPolicies

func (api *ImageRateLimitPoliciesApi) ListRateLimitPolicies(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import4.ListRateLimitPoliciesApiResponse, error)

Lists image rate limit policies created on Prism Central along with other details such as, name, description and so on. This API supports operations such as filtering, sorting, selection, and pagination.

func (*ImageRateLimitPoliciesApi) UpdateRateLimitPolicyById

func (api *ImageRateLimitPoliciesApi) UpdateRateLimitPolicyById(extId *string, body *import4.RateLimitPolicy, args ...map[string]interface{}) (*import4.UpdateRateLimitPolicyApiResponse, error)

Updates the image rate limit policy using the provided request body with the given external identifier. It is always recommended to perform a GET operation on a resource before performing a PUT operation to ensure the correct ETag is used.

type ImagesApi

type ImagesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewImagesApi

func NewImagesApi(apiClient *client.ApiClient) *ImagesApi

func (*ImagesApi) CreateImage

func (api *ImagesApi) CreateImage(body *import5.Image, args ...map[string]interface{}) (*import5.CreateImageApiResponse, error)

Creates an image using the provided request body. The name, type and source are mandatory fields to create an image.

func (*ImagesApi) DeleteImageById

func (api *ImagesApi) DeleteImageById(extId *string, args ...map[string]interface{}) (*import5.DeleteImageApiResponse, error)

Deletes the image with the given external identifier.

func (*ImagesApi) GetFileByImageId

func (api *ImagesApi) GetFileByImageId(imageExtId *string, args ...map[string]interface{}) (*import5.GetImageFileApiResponse, error)

Downloads the image with the given external identifier.

func (*ImagesApi) GetImageById

func (api *ImagesApi) GetImageById(extId *string, args ...map[string]interface{}) (*import5.GetImageApiResponse, error)

Retrieves the image details for the provided external identifier.

func (*ImagesApi) ImportImage

func (api *ImagesApi) ImportImage(body *import5.ImageImportConfig, args ...map[string]interface{}) (*import5.ImportImageApiResponse, error)

Imports images owned by a registered Prism Element cluster into the current Prism Central.

func (*ImagesApi) ListImages

func (api *ImagesApi) ListImages(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import5.ListImagesApiResponse, error)

Lists images owned by Prism Central, along with image details such as name, description, type, and so on. This API supports operation such as filtering, sorting, selection, and pagination.

func (*ImagesApi) UpdateImageById

func (api *ImagesApi) UpdateImageById(extId *string, body *import5.Image, args ...map[string]interface{}) (*import5.UpdateImageApiResponse, error)

Updates the image with the given external identifier. It is always recommended to perform a GET operation on a resource before performing a PUT operation to ensure that the correct ETag is used.

type StatsApi

type StatsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewStatsApi

func NewStatsApi(apiClient *client.ApiClient) *StatsApi

func (*StatsApi) GetDiskStatsById

func (api *StatsApi) GetDiskStatsById(vmExtId *string, extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import8.GetDiskStatsApiResponse, error)

Fetches the stats for the specified VM disk. Users can fetch the stats by specifying the following params in the request query: 1) '$select': comma-separated attributes with the prefix 'stats/', e.g. 'stats/checkScore'. 2) '$startTime': the start time for which stats should be reported, e.g. '2023-01-01T12:00:00.000-08:00'; 3) '$endTime': the end time for which stats should be reported; 4) '$samplingInterval': the sampling interval in seconds at which statistical data should be collected; 5) '$statType': the down-sampling operator to use while performing down-sampling on stats data

func (*StatsApi) GetNicStatsById

func (api *StatsApi) GetNicStatsById(vmExtId *string, extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import8.GetNicStatsApiResponse, error)

Fetches the stats for the specified VM NIC. Users can fetch the stats by specifying the following params in the request query: 1) '$select': comma-separated attributes with the prefix 'stats/', e.g. 'stats/checkScore'. 2) '$startTime': the start time for which stats should be reported, e.g. '2023-01-01T12:00:00.000-08:00'; 3) '$endTime': the end time for which stats should be reported; 4) '$samplingInterval': the sampling interval in seconds at which statistical data should be collected; 5) '$statType': the down-sampling operator to use while performing down-sampling on stats data

func (*StatsApi) GetVmStatsById

func (api *StatsApi) GetVmStatsById(extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import8.GetVmStatsApiResponse, error)

Get VM stats for a given VM. Users can fetch the stats by specifying the following params in the request query: 1) '$select': comma-separated attributes with the prefix 'stats/', e.g. 'stats/checkScore'. 2) '$startTime': the start time for which stats should be reported, e.g. '2023-01-01T12:00:00.000-08:00'; 3) '$endTime': the end time for which stats should be reported; 4) '$samplingInterval': the sampling interval in seconds at which statistical data should be collected; 5) '$statType': the down-sampling operator to use while performing down-sampling on stats data

func (*StatsApi) ListVmStats

func (api *StatsApi) ListVmStats(startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import8.ListVmStatsApiResponse, error)

List VM stats for all VMs. Users can fetch the stats by specifying the following params in the request query: 1) '$select': comma-separated attributes with the prefix 'stats/', e.g. 'stats/controllerNumIo,stats/hypervisorNumIo'. 2) '$startTime': the start time for which stats should be reported, e.g. '2023-01-01T12:00:00.000-08:00'; 3) '$endTime': the end time for which stats should be reported; 4) '$samplingInterval': the sampling interval in seconds at which statistical data should be collected; 5) '$statType': the down-sampling operator to use while performing down-sampling on stats data; 6) '$orderby'; 7) '$page'; 8) '$limit'; and 9) '$filter': the OData filter to use, e.g. 'stats/hypervisorCpuUsagePpm gt 100000 and stats/guestMemoryUsagePpm lt 2000000.'

type TemplatesApi

type TemplatesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewTemplatesApi

func NewTemplatesApi(apiClient *client.ApiClient) *TemplatesApi

func (*TemplatesApi) CancelGuestUpdate

func (api *TemplatesApi) CancelGuestUpdate(extId *string, args ...map[string]interface{}) (*import5.CancelGuestUpdateApiResponse, error)

This operation cancels the update initiated by the \"Initiate guest OS update\" API for the given template. The temporary VM created during the update process is deleted, and the pending update status is cleared. Please note that any modifications made to the temporary VM will be lost upon cancelling the update operation.

func (*TemplatesApi) CompleteGuestUpdate

func (api *TemplatesApi) CompleteGuestUpdate(extId *string, body *import5.CompleteGuestUpdateSpec, args ...map[string]interface{}) (*import5.CompleteGuestUpdateApiResponse, error)

This operation finalizes the update initiated by the \"Initiate guest OS update\" API for the template. A new version is added to the template, the temporary VM created during the update process is deleted, and the pending update status is cleared.

func (*TemplatesApi) CreateTemplate

func (api *TemplatesApi) CreateTemplate(body *import5.Template, args ...map[string]interface{}) (*import5.CreateTemplateApiResponse, error)

Creates a template from the given VM identifier. A template stores the VM configuration and disks from the source VM.

func (*TemplatesApi) DeleteTemplateById

func (api *TemplatesApi) DeleteTemplateById(extId *string, args ...map[string]interface{}) (*import5.DeleteTemplateApiResponse, error)

Deletes the template and all of its versions for a given template identifier.

func (*TemplatesApi) DeleteTemplateVersionById

func (api *TemplatesApi) DeleteTemplateVersionById(templateExtId *string, extId *string, args ...map[string]interface{}) (*import5.DeleteTemplateVersionApiResponse, error)

Deletes a version for the given template version identifier.

func (*TemplatesApi) DeployTemplate

func (api *TemplatesApi) DeployTemplate(extId *string, body *import5.TemplateDeployment, args ...map[string]interface{}) (*import5.DeployTemplateApiResponse, error)

Deploys one or more VMs from a template. You can specify the number of VMs to deploy and their corresponding VM configuration overrides.

func (*TemplatesApi) GetTemplateById

func (api *TemplatesApi) GetTemplateById(extId *string, args ...map[string]interface{}) (*import5.GetTemplateApiResponse, error)

Retrieves the template details for a given template identifier.

func (*TemplatesApi) GetTemplateVersionById

func (api *TemplatesApi) GetTemplateVersionById(templateExtId *string, extId *string, args ...map[string]interface{}) (*import5.GetTemplateVersionApiResponse, error)

Retrieves the template version details of the given template and version identifier.

func (*TemplatesApi) InitiateGuestUpdate

func (api *TemplatesApi) InitiateGuestUpdate(extId *string, body *import5.InitiateGuestUpdateSpec, args ...map[string]interface{}) (*import5.InitiateGuestUpdateApiResponse, error)

Initiates the process of updating the Guest OS from a given template version identifier. Only one guest OS update can be initiated for a template at a time. A temporary VM is created where the guest OS updates will be applied. The user must make the necessary modifications to this temporary VM. After completing the modifications, the user should issue the \"Complete Guest OS Update\" command to finalize the update. The \"Cancel Guest OS Update\" command can be issued at any time to abort an ongoing update.

func (*TemplatesApi) ListTemplateVersions

func (api *TemplatesApi) ListTemplateVersions(templateExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import5.ListTemplateVersionsApiResponse, error)

Lists all the versions of a template with details such as name, description, VM configuration and so on. This operation supports filtering, sorting and pagination.

func (*TemplatesApi) ListTemplates

func (api *TemplatesApi) ListTemplates(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import5.ListTemplatesApiResponse, error)

Lists templates with details such as name, description, VM configuration and so on. This operation supports filtering, sorting and pagination.

func (*TemplatesApi) PublishTemplate

func (api *TemplatesApi) PublishTemplate(extId *string, body *import5.TemplatePublishSpec, args ...map[string]interface{}) (*import5.PublishTemplateApiResponse, error)

Designate the template version identified by the given identifier as the active version. An active version is a default version for creating VMs from the template and starting the Guest OS Update.

func (*TemplatesApi) UpdateTemplateById

func (api *TemplatesApi) UpdateTemplateById(extId *string, body *import5.Template, args ...map[string]interface{}) (*import5.UpdateTemplateApiResponse, error)

Updates a template with the given template identifier. This operation updates the template configuration and/or adds a new version to the template. Unless otherwise specified, the newly created version is set as the active version.

type VmAntiAffinityPoliciesApi

type VmAntiAffinityPoliciesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewVmAntiAffinityPoliciesApi

func NewVmAntiAffinityPoliciesApi(apiClient *client.ApiClient) *VmAntiAffinityPoliciesApi

func (*VmAntiAffinityPoliciesApi) CreateVmAntiAffinityPolicy

func (api *VmAntiAffinityPoliciesApi) CreateVmAntiAffinityPolicy(body *import10.VmAntiAffinityPolicy, args ...map[string]interface{}) (*import10.CreateVmAntiAffinityPolicyApiResponse, error)

Creates a VM-VM anti-affinity policy.

func (*VmAntiAffinityPoliciesApi) DeleteLegacyVmAntiAffinityPolicyById

func (api *VmAntiAffinityPoliciesApi) DeleteLegacyVmAntiAffinityPolicyById(extId *string, args ...map[string]interface{}) (*import10.DeleteLegacyVmAntiAffinityPolicyApiResponse, error)

Deletes the legacy VM-VM anti-affinity policy.

func (*VmAntiAffinityPoliciesApi) DeleteVmAntiAffinityPolicyById

func (api *VmAntiAffinityPoliciesApi) DeleteVmAntiAffinityPolicyById(extId *string, args ...map[string]interface{}) (*import10.DeleteVmAntiAffinityPolicyApiResponse, error)

Deletes the requested VM-VM anti-affinity policy.

func (*VmAntiAffinityPoliciesApi) GetVmAntiAffinityPolicyById

func (api *VmAntiAffinityPoliciesApi) GetVmAntiAffinityPolicyById(extId *string, args ...map[string]interface{}) (*import10.GetVmAntiAffinityPolicyApiResponse, error)

Fetches the VM-VM anti-affinity policy of the provided VM-VM anti-affinity policy external identifier.

func (*VmAntiAffinityPoliciesApi) ListLegacyVmAntiAffinityPolicies

func (api *VmAntiAffinityPoliciesApi) ListLegacyVmAntiAffinityPolicies(page_ *int, limit_ *int, filter_ *string, args ...map[string]interface{}) (*import10.ListLegacyVmAntiAffinityPoliciesApiResponse, error)

List legacy VM-VM anti-affinity policies.

func (*VmAntiAffinityPoliciesApi) ListVmAntiAffinityPolicies

func (api *VmAntiAffinityPoliciesApi) ListVmAntiAffinityPolicies(page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import10.ListVmAntiAffinityPoliciesApiResponse, error)

List VM-VM anti-affinity policies.

func (*VmAntiAffinityPoliciesApi) ListVmAntiAffinityPolicyVmComplianceStates

func (api *VmAntiAffinityPoliciesApi) ListVmAntiAffinityPolicyVmComplianceStates(vmAntiAffinityPolicyExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import10.ListVmAntiAffinityPolicyVmComplianceStatesApiResponse, error)

Lists compliance states of VMs in the VM-VM anti-affinity policy of the provided VM-VM anti-affinity policy external identifier.

func (*VmAntiAffinityPoliciesApi) UpdateVmAntiAffinityPolicyById

func (api *VmAntiAffinityPoliciesApi) UpdateVmAntiAffinityPolicyById(extId *string, body *import10.VmAntiAffinityPolicy, args ...map[string]interface{}) (*import10.UpdateVmAntiAffinityPolicyApiResponse, error)

Updates the requested VM-VM anti-affinity policy.

type VmApi

type VmApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewVmApi

func NewVmApi(apiClient *client.ApiClient) *VmApi

func (*VmApi) AssignIpById

func (api *VmApi) AssignIpById(vmExtId *string, extId *string, body *import9.AssignIpParams, args ...map[string]interface{}) (*import9.AssignIpApiResponse, 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 *import9.OwnershipInfo, args ...map[string]interface{}) (*import9.AssignVmOwnerApiResponse, error)

Assign the owner of a virtual machine.

func (*VmApi) AssociateCategories

func (api *VmApi) AssociateCategories(extId *string, body *import9.AssociateVmCategoriesParams, args ...map[string]interface{}) (*import9.AssociateCategoriesApiResponse, error)

Associate categories to a virtual machine.

func (*VmApi) CloneVm

func (api *VmApi) CloneVm(extId *string, body *import9.CloneOverrideParams, args ...map[string]interface{}) (*import9.CloneVmApiResponse, 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 *import9.CdRom, args ...map[string]interface{}) (*import9.CreateCdRomApiResponse, error)

Creates and attaches a CD-ROM device to a virtual machine.

func (*VmApi) CreateDisk

func (api *VmApi) CreateDisk(vmExtId *string, body *import9.Disk, args ...map[string]interface{}) (*import9.CreateDiskApiResponse, error)

Creates and attaches a disk device to a virtual machine.

func (*VmApi) CreateGpu

func (api *VmApi) CreateGpu(vmExtId *string, body *import9.Gpu, args ...map[string]interface{}) (*import9.CreateGpuApiResponse, error)

Attaches a GPU device to a virtual machine

func (*VmApi) CreateNic

func (api *VmApi) CreateNic(vmExtId *string, body *import9.Nic, args ...map[string]interface{}) (*import9.CreateNicApiResponse, error)

Creates and attaches a network device to a virtual machine.

func (*VmApi) CreatePcieDevice

func (api *VmApi) CreatePcieDevice(vmExtId *string, body *import9.PcieDevice, args ...map[string]interface{}) (*import9.CreatePcieDeviceApiResponse, error)

Creates and attaches a PCIe device to a virtual machine.

func (*VmApi) CreateSerialPort

func (api *VmApi) CreateSerialPort(vmExtId *string, body *import9.SerialPort, args ...map[string]interface{}) (*import9.CreateSerialPortApiResponse, error)

Creates and attaches a serial port device to a virtual machine.

func (*VmApi) CreateVm

func (api *VmApi) CreateVm(body *import9.Vm, args ...map[string]interface{}) (*import9.CreateVmApiResponse, error)

Creates a Virtual Machine with the provided configuration.

func (*VmApi) CrossClusterMigrateVm

func (api *VmApi) CrossClusterMigrateVm(extId *string, body *import9.VmCrossClusterMigrateParams, dryrun_ *bool, args ...map[string]interface{}) (*import9.CrossClusterMigrateVmApiResponse, error)

Migrates a VM from the current cluster to a new target cluster. Supports the dry-run option, which if used results only in validation of the cross-cluster migration parameters and pre-requisites.

func (*VmApi) CustomizeGuestVm

func (api *VmApi) CustomizeGuestVm(extId *string, body *import9.GuestCustomizationParams, args ...map[string]interface{}) (*import9.CustomizeGuestVmApiResponse, 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) DeleteCdRomById

func (api *VmApi) DeleteCdRomById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.DeleteCdRomApiResponse, error)

Removes the specified CD-ROM device from a virtual machine.

func (*VmApi) DeleteDiskById

func (api *VmApi) DeleteDiskById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.DeleteDiskApiResponse, error)

Removes the specified disk device from a virtual machine.

func (*VmApi) DeleteGpuById

func (api *VmApi) DeleteGpuById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.DeleteGpuApiResponse, error)

Removes the specified GPU device from a virtual machine

func (*VmApi) DeleteNicById

func (api *VmApi) DeleteNicById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.DeleteNicApiResponse, error)

Removes the specified network device from a virtual machine.

func (*VmApi) DeletePcieDeviceById

func (api *VmApi) DeletePcieDeviceById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.DeletePcieDeviceApiResponse, error)

Removes the specified PCIe device from a virtual machine.

func (*VmApi) DeleteSerialPortById

func (api *VmApi) DeleteSerialPortById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.DeleteSerialPortApiResponse, error)

Removes the specified serial port from a virtual machine.

func (*VmApi) DeleteVmById

func (api *VmApi) DeleteVmById(extId *string, args ...map[string]interface{}) (*import9.DeleteVmApiResponse, error)

Delete the specified virtual machine.

func (*VmApi) DisassociateCategories

func (api *VmApi) DisassociateCategories(extId *string, body *import9.DisassociateVmCategoriesParams, args ...map[string]interface{}) (*import9.DisassociateCategoriesApiResponse, error)

Disassociate categories from a virtual machine.

func (*VmApi) EjectCdRomById

func (api *VmApi) EjectCdRomById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.EjectCdRomApiResponse, error)

Ejects the ISO currently inserted into a CD-ROM device on a Virtual Machine.

func (*VmApi) GetCdRomById

func (api *VmApi) GetCdRomById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.GetCdRomApiResponse, error)

Retrieves configuration details for the provided CD-ROM device attached to a virtual machine.

func (*VmApi) GetDiskById

func (api *VmApi) GetDiskById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.GetDiskApiResponse, error)

Retrieves configuration details for the provided disk device attached to a virtual machine.

func (*VmApi) GetGpuById

func (api *VmApi) GetGpuById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.GetGpuApiResponse, error)

Retrieves configuration details for the provided GPU device attached to a virtual machine.

func (*VmApi) GetGuestToolsById

func (api *VmApi) GetGuestToolsById(extId *string, args ...map[string]interface{}) (*import9.GetGuestToolsApiResponse, error)

Retrieves the Nutanix Guest Tools configuration for a virtual machine.

func (*VmApi) GetNicById

func (api *VmApi) GetNicById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.GetNicApiResponse, error)

Retrieves configuration details for the provided network device attached to a virtual machine.

func (*VmApi) GetPcieDeviceById

func (api *VmApi) GetPcieDeviceById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.GetPcieDeviceApiResponse, error)

Retrieves configuration details for the provided PCIe device attached to a virtual machine.

func (*VmApi) GetSerialPortById

func (api *VmApi) GetSerialPortById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.GetSerialPortApiResponse, error)

Retrieves configuration details for the provided serial port attached to a virtual machine.

func (*VmApi) GetVmById

func (api *VmApi) GetVmById(extId *string, args ...map[string]interface{}) (*import9.GetVmApiResponse, error)

Retrieves configuration details for a virtual machine.

func (*VmApi) InsertCdRomById

func (api *VmApi) InsertCdRomById(vmExtId *string, extId *string, body *import9.CdRomInsertParams, args ...map[string]interface{}) (*import9.InsertCdRomApiResponse, 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 *import9.GuestToolsInsertConfig, args ...map[string]interface{}) (*import9.InsertVmGuestToolsApiResponse, error)

Inserts the Nutanix Guest Tools installation and configuration ISO into a virtual machine.

func (*VmApi) InstallVmGuestTools

func (api *VmApi) InstallVmGuestTools(extId *string, body *import9.GuestToolsInstallConfig, args ...map[string]interface{}) (*import9.InstallVmGuestToolsApiResponse, error)

Installs Nutanix Guest Tools in a Virtual Machine by using the provided credentials.

func (*VmApi) ListCdRomsByVmId

func (api *VmApi) ListCdRomsByVmId(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import9.ListCdRomsApiResponse, error)

Lists the CD-ROM devices attached to a virtual machine.

func (*VmApi) ListDisksByVmId

func (api *VmApi) ListDisksByVmId(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import9.ListDisksApiResponse, error)

Lists the disk devices attached to a virtual machine.

func (*VmApi) ListGpusByVmId

func (api *VmApi) ListGpusByVmId(vmExtId *string, page_ *int, limit_ *int, filter_ *string, args ...map[string]interface{}) (*import9.ListGpusApiResponse, error)

Lists the GPU devices attached to a virtual machine

func (*VmApi) ListNicsByVmId

func (api *VmApi) ListNicsByVmId(vmExtId *string, page_ *int, limit_ *int, filter_ *string, args ...map[string]interface{}) (*import9.ListNicsApiResponse, error)

Lists the network devices attached to a virtual machine.

func (*VmApi) ListPcieDevicesByVmId

func (api *VmApi) ListPcieDevicesByVmId(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import9.ListPcieDevicesApiResponse, error)

Lists all the PCIe devices attached to a virtual machine.

func (*VmApi) ListSerialPortsByVmId

func (api *VmApi) ListSerialPortsByVmId(vmExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import9.ListSerialPortsApiResponse, 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, select_ *string, args ...map[string]interface{}) (*import9.ListVmsApiResponse, error)

Lists the Virtual Machines defined on the system. List of Virtual Machines can be further filtered out using various filtering options.

func (*VmApi) MigrateNicById

func (api *VmApi) MigrateNicById(vmExtId *string, extId *string, body *import9.MigrateNicConfig, args ...map[string]interface{}) (*import9.MigrateNicApiResponse, 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) MigrateVmDisks

func (api *VmApi) MigrateVmDisks(extId *string, body *import9.DiskMigrationParams, args ...map[string]interface{}) (*import9.MigrateVmDisksApiResponse, error)

Specifies the VmDisks of a VM for migration and the migration plan for them. If all the disks of a VM need to be migrated to the same storage container, only a single migration plan with only the external ID of the destination storage container is needed. If the disks are being migrated to different containers, one plan per disk needs to be specified.

func (*VmApi) MigrateVmToHost

func (api *VmApi) MigrateVmToHost(extId *string, body *import9.VmMigrateToHostParams, args ...map[string]interface{}) (*import9.MigrateVmToHostApiResponse, error)

Migrate a VM to another host within the same cluster.

func (*VmApi) PowerCycleVm

func (api *VmApi) PowerCycleVm(extId *string, args ...map[string]interface{}) (*import9.PowerCycleVmApiResponse, 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{}) (*import9.PowerOffVmApiResponse, error)

Forceably shuts down a virtual machine which is equivalent to removing the power cable. Note: The forced shutdown may result in data loss if any operations are in progress during the shutdown.

func (*VmApi) PowerOnVm

func (api *VmApi) PowerOnVm(extId *string, args ...map[string]interface{}) (*import9.PowerOnVmApiResponse, error)

Turns a Virtual Machine on.

func (*VmApi) RebootGuestVm

func (api *VmApi) RebootGuestVm(extId *string, body *import9.GuestPowerOptions, args ...map[string]interface{}) (*import9.RebootVmApiResponse, error)

Collaborative reboot of a Virtual Machine, requesting Nutanix Guest Tools to trigger a reboot from within the VM.

func (*VmApi) RebootVm

func (api *VmApi) RebootVm(extId *string, args ...map[string]interface{}) (*import9.RebootVmApiResponse, error)

Collaborative reboot of a Virtual Machine through the ACPI support in the operating system.

func (*VmApi) ReleaseIpById

func (api *VmApi) ReleaseIpById(vmExtId *string, extId *string, args ...map[string]interface{}) (*import9.ReleaseIpApiResponse, 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{}) (*import9.ResetVmApiResponse, 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) RevertVm

func (api *VmApi) RevertVm(extId *string, body *import9.RevertParams, args ...map[string]interface{}) (*import9.RevertVmApiResponse, error)

Revert VM identified by {extId}. This does an in-place VM restore from a specified VM Recovery Point.

func (*VmApi) ShutdownGuestVm

func (api *VmApi) ShutdownGuestVm(extId *string, body *import9.GuestPowerOptions, args ...map[string]interface{}) (*import9.ShutdownVmApiResponse, error)

Collaborative shutdown of a Virtual Machine, requesting Nutanix Guest Tools to trigger a shutdown from within the VM.

func (*VmApi) ShutdownVm

func (api *VmApi) ShutdownVm(extId *string, args ...map[string]interface{}) (*import9.ShutdownVmApiResponse, 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{}) (*import9.UninstallVmGuestToolsApiResponse, error)

Trigger an in-guest uninstallation of Nutanix Guest Tools.

func (*VmApi) UpdateDiskById

func (api *VmApi) UpdateDiskById(vmExtId *string, extId *string, body *import9.Disk, args ...map[string]interface{}) (*import9.UpdateDiskApiResponse, error)

Updates the configuration details for the provided disk device.

func (*VmApi) UpdateGuestToolsById

func (api *VmApi) UpdateGuestToolsById(extId *string, body *import9.GuestTools, args ...map[string]interface{}) (*import9.UpdateGuestToolsApiResponse, error)

Updates the Nutanix Guest Tools configuration for a virtual machine.

func (*VmApi) UpdateNicById

func (api *VmApi) UpdateNicById(vmExtId *string, extId *string, body *import9.Nic, args ...map[string]interface{}) (*import9.UpdateNicApiResponse, error)

Updates the configuration details for the provided network device.

func (*VmApi) UpdateSerialPortById

func (api *VmApi) UpdateSerialPortById(vmExtId *string, extId *string, body *import9.SerialPort, args ...map[string]interface{}) (*import9.UpdateSerialPortApiResponse, error)

Updates the configuration details for the provided serial port.

func (*VmApi) UpdateVmById

func (api *VmApi) UpdateVmById(extId *string, body *import9.Vm, args ...map[string]interface{}) (*import9.UpdateVmApiResponse, error)

Updates configuration details for a virtual machine.

func (*VmApi) UpgradeVmGuestTools

func (api *VmApi) UpgradeVmGuestTools(extId *string, body *import9.GuestToolsUpgradeConfig, args ...map[string]interface{}) (*import9.UpgradeVmGuestToolsApiResponse, error)

Trigger an in-guest upgrade of Nutanix Guest Tools.

type VmHostAffinityPoliciesApi

type VmHostAffinityPoliciesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewVmHostAffinityPoliciesApi

func NewVmHostAffinityPoliciesApi(apiClient *client.ApiClient) *VmHostAffinityPoliciesApi

func (*VmHostAffinityPoliciesApi) CreateVmHostAffinityPolicy

func (api *VmHostAffinityPoliciesApi) CreateVmHostAffinityPolicy(body *import10.VmHostAffinityPolicy, args ...map[string]interface{}) (*import10.CreateVmHostAffinityPolicyApiResponse, error)

Creates a new VM-host affinity policy with the provided configuration.

func (*VmHostAffinityPoliciesApi) DeleteVmHostAffinityPolicyById

func (api *VmHostAffinityPoliciesApi) DeleteVmHostAffinityPolicyById(extId *string, args ...map[string]interface{}) (*import10.DeleteVmHostAffinityPolicyApiResponse, error)

Deletes the VM-host affinity policy with the given external identifier.

func (*VmHostAffinityPoliciesApi) GetVmHostAffinityPolicyById

func (api *VmHostAffinityPoliciesApi) GetVmHostAffinityPolicyById(extId *string, args ...map[string]interface{}) (*import10.GetVmHostAffinityPolicyApiResponse, error)

Fetches the VM-host affinity policy configuration for the provided VM-host affinity policy external identifier.

func (*VmHostAffinityPoliciesApi) ListVmHostAffinityPolicies

func (api *VmHostAffinityPoliciesApi) ListVmHostAffinityPolicies(page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import10.ListVmHostAffinityPoliciesApiResponse, error)

Lists all the VM-Host Affinity policies.

func (*VmHostAffinityPoliciesApi) ListVmHostAffinityPolicyVmComplianceStates

func (api *VmHostAffinityPoliciesApi) ListVmHostAffinityPolicyVmComplianceStates(vmHostAffinityPolicyExtId *string, page_ *int, limit_ *int, args ...map[string]interface{}) (*import10.ListVmHostAffinityPolicyVmComplianceStatesApiResponse, error)

Lists the compliance state of all the VMs associated with the VM-host affinity policy.

func (*VmHostAffinityPoliciesApi) ReEnforceVmHostAffinityPolicyById

func (api *VmHostAffinityPoliciesApi) ReEnforceVmHostAffinityPolicyById(extId *string, args ...map[string]interface{}) (*import10.ReEnforceVmHostAffinityPolicyApiResponse, error)

Re-enforces the VM-host affinity policy on all the VMs associated with the policy.

func (*VmHostAffinityPoliciesApi) UpdateVmHostAffinityPolicyById

func (api *VmHostAffinityPoliciesApi) UpdateVmHostAffinityPolicyById(extId *string, body *import10.VmHostAffinityPolicy, args ...map[string]interface{}) (*import10.UpdateVmHostAffinityPolicyApiResponse, error)

Updates the configuration of the VM-host affinity policy with the given external identifier.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL