client

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ProtectRecoverPotListRespKey = "recoveryPoints"
View Source
const RecoverPotListRespKey = "recoveryPoints"
View Source
const (
	WebZStackPort = 5000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthType

type AuthType string
const (
	AuthTypeAccessKey   AuthType = "AccessKey"
	AuthTypeAccount     AuthType = "Account"
	AuthTypeAccountUser AuthType = "AccountUser"
	AuthTypeSession     AuthType = "Session"
)

type FencerStrategy

type FencerStrategy string
const (
	Force      FencerStrategy = "Force"      // Force
	Permissive FencerStrategy = "Permissive" // Permissive
)

type ZSClient

type ZSClient struct {
	*ZSHttpClient
}

func NewZSClient

func NewZSClient(config *ZSConfig) *ZSClient

func (*ZSClient) AddDnsToL3Network

func (cli *ZSClient) AddDnsToL3Network(l3NetworkUuid string, params param.AddDnsToL3NetworkParam) error

AddDnsToL3Network Adds DNS to a Layer 3 network

func (*ZSClient) AddImage

func (cli *ZSClient) AddImage(imageParam param.AddImageParam) (*view.ImageView, error)

AddImage Add Image

func (*ZSClient) AddImageAsync

func (cli *ZSClient) AddImageAsync(imageParam param.AddImageParam) (string, error)

func (*ZSClient) AddImageStoreBackupStorage

func (cli *ZSClient) AddImageStoreBackupStorage(params param.AddImageStoreBackupStorageParam) (*view.BackupStorageInventoryView, error)

AddImageStoreBackupStorage adds an image store backup storage

func (*ZSClient) AddIpRange

func (cli *ZSClient) AddIpRange(l3NetworkUuid string, params param.AddIpRangeParam) (view.IpRangeInventoryView, error)

AddIpRange Adds an IP address range

func (*ZSClient) AddIpRangeByNetworkCidr

func (cli *ZSClient) AddIpRangeByNetworkCidr(l3NetworkUuid string, params param.AddIpRangeByNetworkCidrParam) (view.IpRangeInventoryView, error)

AddIpRangeByNetworkCidr Adds an IP address range via network CIDR

func (*ZSClient) AddIpv6Range

func (cli *ZSClient) AddIpv6Range(l3NetworkUuid string, params param.AddIpv6RangeParam) (view.IpRangeInventoryView, error)

AddIpv6Range Adds an IPv6 address range

func (*ZSClient) AddIpv6RangeByNetworkCidr

func (cli *ZSClient) AddIpv6RangeByNetworkCidr(l3NetworkUuid string, params param.AddIpv6RangeByNetworkCidrParam) (view.IpRangeInventoryView, error)

func (*ZSClient) AddKVMHost

func (cli *ZSClient) AddKVMHost(params param.AddKVMHostParam) (*view.HostInventoryView, error)

AddKVMHost Add KVM physical machine

func (*ZSClient) AddReservedIpRange

func (cli *ZSClient) AddReservedIpRange(l3NetworkUuid string, params param.AddReservedIpRangeParam) (view.ReservedIpRangeInventoryView, error)

AddReservedIpRange Adds a reserved IP address range

func (*ZSClient) AddSecurityGroupRule

func (cli *ZSClient) AddSecurityGroupRule(securityGroupUuid string, params param.AddSecurityGroupRuleParam) (*view.SecurityGroupInventoryView, error)

AddSecurityGroupRule Add rules to a security group

func (*ZSClient) AddVmNicToSecurityGroup

func (cli *ZSClient) AddVmNicToSecurityGroup(securityGroupUuid string, p param.AddVmNicToSecurityGroupParam) error

AddVmNicToSecurityGroup Add VM NIC to security group TODO

func (*ZSClient) AttachBackupStorageToZone

func (cli *ZSClient) AttachBackupStorageToZone(zoneUuid, backupStorageUuid string) (*view.BackupStorageInventoryView, error)

AttachBackupStorageToZone attaches backup storage to a zone

func (*ZSClient) AttachDataVolumeToVm

func (cli *ZSClient) AttachDataVolumeToVm(volumeUuid, vmInstanceUuid string) (*view.VolumeView, error)

func (*ZSClient) AttachEip

func (cli *ZSClient) AttachEip(eipUuid, vmNicUuid string) error

AttachEip Attach Elastic IP

func (*ZSClient) AttachGuestToolsIsoToVm

func (cli *ZSClient) AttachGuestToolsIsoToVm(uuid string) error

AttachGuestToolsIsoToVm attaches the guest tools ISO to a VM.

func (*ZSClient) AttachIsoToVmInstance

func (cli *ZSClient) AttachIsoToVmInstance(isoUUID, instanceUUID, cdRomUUID string) (*view.VmInstanceInventoryView, error)

AttachIsoToVmInstance attaches an ISO image to a virtual machine.

func (*ZSClient) AttachL2NetworkToCluster

func (cli *ZSClient) AttachL2NetworkToCluster(clusterUuid, l2NetworkUuid string) (view.L2NetworkInventoryView, error)

AttachL2NetworkToCluster attaches a Layer 2 network to a cluster

func (*ZSClient) AttachL3NetworkToVm

func (cli *ZSClient) AttachL3NetworkToVm(l3NetworkUuid, vmInstanceUuid string, params param.AttachL3NetworkToVmParam) (*view.VmInstanceInventoryView, error)

func (*ZSClient) AttachNetworkServiceToL3Network

func (cli *ZSClient) AttachNetworkServiceToL3Network(l3NetworkUuid string, p param.AttachNetworkServiceToL3NetworkParam) error

AttachNetworkServiceToL3Network Attach network service to L3 network

func (*ZSClient) AttachTagToResource

func (cli *ZSClient) AttachTagToResource(tagUuid string, resourceUuids []string, attachType ...string) (view.AttachTagToResourceResult, error)

AttachTagToResource attaches a tag to one or more resources with optional token support.

Parameters:

  • tagUuid: The UUID of the tag to be attached
  • resourceUuids: A slice of resource UUIDs to attach the tag to
  • attachType: Optional parameters:
  • First parameter: "withToken" to enable token support
  • Second parameter: JSON string of tokens (e.g. {"key":"value"})

Returns the result of the attachment operation and any error encountered.

func (*ZSClient) AttachUsbDeviceToVm

func (cli *ZSClient) AttachUsbDeviceToVm(usbDeviceUuid string, params param.AttachUsbDeviceToVmParam) (view.UsbDeviceView, error)

AttachUsbDeviceToVm Attach a physical USB device to a cloud VM

func (*ZSClient) CancelLongJob

func (cli *ZSClient) CancelLongJob(uuid string) error

CancelLongJob Cancel a long-running task

func (*ZSClient) ChangeBackupStorageState

func (cli *ZSClient) ChangeBackupStorageState(uuid string, state param.StateEvent) (*view.BackupStorageInventoryView, error)

ChangeBackupStorageState changes the availability state of a backup storage

func (*ZSClient) ChangeEipState

func (cli *ZSClient) ChangeEipState(params param.ChangeEipStateParam) (view.EipInventoryView, error)

ChangeEipState Change Virtual IP enable state

func (*ZSClient) ChangeHostState

func (cli *ZSClient) ChangeHostState(uuid string, params *param.ChangeHostStateParam) (*view.HostInventoryView, error)

ChangeHostState Update physical machine enable state

func (*ZSClient) ChangeImageState

func (cli *ZSClient) ChangeImageState(params param.ChangeImageStateParam) (view.ImageView, error)

ChangeImageState Modify Image State

func (*ZSClient) ChangeSecurityGroupState

func (cli *ZSClient) ChangeSecurityGroupState(params param.ChangeSecurityGroupStateParam) (view.SecurityGroupInventoryView, error)

ChangeSecurityGroupState Change the state of a security group

func (*ZSClient) ChangeVmNicNetwork

func (cli *ZSClient) ChangeVmNicNetwork(l3NetworkUuid, vmNicUuid string, params param.ChangeVmNicNetworkParam) (*view.VmNicInventoryView, error)

func (*ZSClient) ChangeVmPassword

func (cli *ZSClient) ChangeVmPassword(params param.UpdateVmInstanceChangePwdParam) error

ChangeVmPassword changes the password of a virtual machine.

func (*ZSClient) ChangeVolumeState

func (cli *ZSClient) ChangeVolumeState(uuid string, params param.ChangeVolumeStateParam) (*view.VolumeView, error)

func (*ZSClient) CheckIpAvailability

func (cli *ZSClient) CheckIpAvailability(l3NetworkUuid, ip string) (view.CheckIpView, error)

func (*ZSClient) CheckVolumeSnapshotGroupAvailability

func (cli *ZSClient) CheckVolumeSnapshotGroupAvailability(uuids []string) ([]view.VolumeSnapshotGroupAvailabilityView, error)

func (*ZSClient) CloneVmInstance

func (cli *ZSClient) CloneVmInstance(uuid string, params param.CloneVmInstanceParam) (*view.CloneVmInstanceResult, error)

CloneVmInstance clones a VM to a specified host.

func (*ZSClient) CreateCdpPolicy

func (cli *ZSClient) CreateCdpPolicy(params *param.CreateCdpPolicyParam) (*view.CdpPolicyInventoryView, error)

CreateCdpPolicy creates a CDP policy.

func (*ZSClient) CreateCdpTask

func (cli *ZSClient) CreateCdpTask(params *param.CreateCdpTaskParam) (*view.CdpTaskInventoryView, error)

CreateCdpTask creates a CDP task.

func (*ZSClient) CreateDataVolume

func (cli *ZSClient) CreateDataVolume(params param.CreateDataVolumeParam) (*view.VolumeView, error)

func (*ZSClient) CreateDataVolumeFromVolumeSnapshot

func (cli *ZSClient) CreateDataVolumeFromVolumeSnapshot(volumeSnapshotUuid string, params param.CreateDataVolumeFromVolumeSnapshotParam) (*view.VolumeView, error)

func (*ZSClient) CreateDataVolumeFromVolumeTemplate

func (cli *ZSClient) CreateDataVolumeFromVolumeTemplate(imageUuid string, params param.CreateDataVolumeFromVolumeTemplateParam) (*view.VolumeView, error)

func (*ZSClient) CreateDataVolumeTemplateFromVolume

func (cli *ZSClient) CreateDataVolumeTemplateFromVolume(params param.CreateDataVolumeTemplateFromVolumeParam) (view.ImageView, error)

CreateDataVolumeTemplateFromVolume Create Data Volume Template from Volume

func (*ZSClient) CreateDataVolumeTemplateFromVolumeSnapshot

func (cli *ZSClient) CreateDataVolumeTemplateFromVolumeSnapshot(params param.CreateDataVolumeTemplateFromVolumeSnapshotParam) (view.ImageView, error)

CreateDataVolumeTemplateFromVolumeSnapshot Create Data Volume Template from Volume Snapshot

func (*ZSClient) CreateDiskOffering

func (cli *ZSClient) CreateDiskOffering(params *param.CreateDiskOfferingParam) (*view.DiskOfferingInventoryView, error)

CreateDiskOffering creates a cloud host specification

func (*ZSClient) CreateEip

func (cli *ZSClient) CreateEip(params param.CreateEipParam) (view.EipInventoryView, error)

CreateEip Create Elastic IP

func (*ZSClient) CreateInstanceOffering

func (cli *ZSClient) CreateInstanceOffering(params *param.CreateInstanceOfferingParam) (*view.InstanceOfferingInventoryView, error)

CreateInstanceOffering creates a cloud host specification

func (*ZSClient) CreateL2NoVlanNetwork

func (cli *ZSClient) CreateL2NoVlanNetwork(params param.CreateL2NoVlanNetworkParam) (view.L2NetworkInventoryView, error)

CreateL2NoVlanNetwork creates a Layer 2 network without VLAN

func (*ZSClient) CreateL2VlanNetwork

func (cli *ZSClient) CreateL2VlanNetwork(params param.CreateL2VlanNetworkParam) (view.L2NetworkInventoryView, error)

CreateL2VlanNetwork creates a Layer 2 VLAN network

func (*ZSClient) CreateL3Network

func (cli *ZSClient) CreateL3Network(params param.CreateL3NetworkParam) (view.L3NetworkInventoryView, error)

CreateL3Network Creates a Layer 3 network

func (*ZSClient) CreateRootVolumeTemplateFromRootVolume

func (cli *ZSClient) CreateRootVolumeTemplateFromRootVolume(params param.CreateRootVolumeTemplateFromRootVolumeParam) (view.ImageView, error)

CreateRootVolumeTemplateFromRootVolume Create Root Volume Template from Root Volume

func (*ZSClient) CreateRootVolumeTemplateFromVolumeSnapshot

func (cli *ZSClient) CreateRootVolumeTemplateFromVolumeSnapshot(params param.CreateRootVolumeTemplateFromVolumeSnapshotParam) (view.ImageView, error)

CreateRootVolumeTemplateFromVolumeSnapshot Create Root Volume Template from Volume Snapshot

func (*ZSClient) CreateSecurityGroup

CreateSecurityGroup Create a security group

func (*ZSClient) CreateSystemTag

func (cli *ZSClient) CreateSystemTag(params param.CreateTagParam) (view.SystemTagView, error)

CreateSystemTag Create a system tag

func (*ZSClient) CreateTag

func (cli *ZSClient) CreateTag(params param.CreateResourceTagParam) (view.TagInventoryView, error)

CreateTag Create a tag

func (*ZSClient) CreateUserTag

func (cli *ZSClient) CreateUserTag(params param.CreateTagParam) (view.UserTagInventoryView, error)

CreateUserTag Create a user tag

func (*ZSClient) CreateVip

func (cli *ZSClient) CreateVip(params param.CreateVipParam) (view.VipInventoryView, error)

CreateVip Create a Virtual IP

func (*ZSClient) CreateVirtualRouterInstance

func (cli *ZSClient) CreateVirtualRouterInstance(params param.CreateVirtualRouterInstanceParam) (*view.VirtualRouterInventoryView, error)

CreateVirtualRouterVM Create a Virtual Router VM instance

func (*ZSClient) CreateVirtualRouterOffering

func (cli *ZSClient) CreateVirtualRouterOffering(params param.CreateVirtualRouterOfferingParam) (*view.VirtualRouterOfferingInventoryView, error)

CreateInstanceOffering creates a cloud host specification

func (*ZSClient) CreateVmCdRom

func (cli *ZSClient) CreateVmCdRom(params param.CreateVmCdRomParam) (*view.VMCDRomView, error)

CreateVmCdRom creates a new CD-ROM for a virtual machine.

func (*ZSClient) CreateVmFromCdpBackup

func (cli *ZSClient) CreateVmFromCdpBackup(params *param.CreateVmFromCdpBackupParam) (*view.VmInstanceInventoryView, error)

CreateVmFromCdpBackup creates a VM from a CDP backup.

func (*ZSClient) CreateVmInstance

func (cli *ZSClient) CreateVmInstance(params param.CreateVmInstanceParam) (*view.VmInstanceInventoryView, error)

CreateVmInstance Create a VM instance

func (*ZSClient) CreateVmInstanceFromOvf

func (cli *ZSClient) CreateVmInstanceFromOvf(params param.CreateVmInstanceFromOvfParam) (*view.VmInstanceInventoryView, error)

CreateVmInstanceFromOvf imports a virtual machine from an OVF template.

func (*ZSClient) CreateVmInstanceFromVolume

func (cli *ZSClient) CreateVmInstanceFromVolume(params param.CreateVmFromVolumeParam) (*view.VmInstanceInventoryView, error)

CreateVmInstanceFromVolume Create a VM instance from a volume

func (*ZSClient) CreateVmInstanceScript

func (cli *ZSClient) CreateVmInstanceScript(params param.CreateVmInstanceScriptParam) (*view.VmInstanceScriptInventoryView, error)

func (*ZSClient) CreateVolumeSnapshot

func (cli *ZSClient) CreateVolumeSnapshot(volumeUuid string, params param.VolumeSnapshotParam) (*view.VolumeSnapshotView, error)

func (*ZSClient) CreateVolumeSnapshotGroup

func (cli *ZSClient) CreateVolumeSnapshotGroup(params param.VolumeSnapshotGroupParam) (*view.VolumeSnapshotGroupView, error)

func (*ZSClient) DeleteBackupStorage

func (cli *ZSClient) DeleteBackupStorage(uuid string) error

DeleteBackupStorage deletes a backup storage

func (*ZSClient) DeleteCdpPolicy

func (cli *ZSClient) DeleteCdpPolicy(uuid string, deleteMode param.DeleteMode) error

DeleteCdpPolicy deletes a CDP policy.

func (*ZSClient) DeleteCdpTask

func (cli *ZSClient) DeleteCdpTask(uuid string, deleteMode param.DeleteMode) error

DeleteCdpTask deletes a CDP task.

func (*ZSClient) DeleteCdpTaskData

func (cli *ZSClient) DeleteCdpTaskData(uuid string) error

DeleteCdpTaskData deletes data associated with a specific CDP task.

func (*ZSClient) DeleteDataVolume

func (cli *ZSClient) DeleteDataVolume(uuid string, deleteMode param.DeleteMode) error

func (*ZSClient) DeleteDiskOffering

func (cli *ZSClient) DeleteDiskOffering(uuid string, deleteMode param.DeleteMode) error

DeleteDiskOffering deletes a cloud host specification

func (*ZSClient) DeleteEip

func (cli *ZSClient) DeleteEip(uuid string, deleteMode param.DeleteMode) error

DeleteEip Delete Elastic IP

func (*ZSClient) DeleteExportedImageFromBackupStorage

func (cli *ZSClient) DeleteExportedImageFromBackupStorage(params param.DeleteExportedImageFromBackupStorageParam) error

DeleteExportedImageFromBackupStorage deletes an exported image from backup storage

func (*ZSClient) DeleteHost

func (cli *ZSClient) DeleteHost(uuid string, deleteMode param.DeleteMode) error

DeleteHost Delete physical machine

func (*ZSClient) DeleteImage

func (cli *ZSClient) DeleteImage(uuid string, deleteMode param.DeleteMode) error

DeleteImage Delete Image

func (*ZSClient) DeleteInstanceOffering

func (cli *ZSClient) DeleteInstanceOffering(uuid string, deleteMode param.DeleteMode) error

DeleteInstanceOffering deletes a cloud host specification

func (*ZSClient) DeleteIpRange

func (cli *ZSClient) DeleteIpRange(ipRangeUuid string, deleteMode param.DeleteMode) error

DeleteIpRange Deletes an IP address range

func (*ZSClient) DeleteL2Network

func (cli *ZSClient) DeleteL2Network(uuid string, deleteMode param.DeleteMode) error

DeleteL2Network deletes a Layer 2 network

func (*ZSClient) DeleteL3Network

func (cli *ZSClient) DeleteL3Network(uuid string, deleteMode param.DeleteMode) error

DeleteL3Network Deletes a Layer 3 network

func (*ZSClient) DeleteLicense

func (cli *ZSClient) DeleteLicense(managementNodeUuid, uuid, module string) error

DeleteLicense Deletes a license file Can only delete the license for the primary management node, cannot delete licenses for secondary management nodes

func (*ZSClient) DeleteLongJob

func (cli *ZSClient) DeleteLongJob(uuid string) error

DeleteLongJob Delete a long-running task

func (*ZSClient) DeleteReservedIpRange

func (cli *ZSClient) DeleteReservedIpRange(uuid string, deleteMode param.DeleteMode) error

DeleteReservedIpRange Deletes a reserved IP address range

func (*ZSClient) DeleteSecurityGroup

func (cli *ZSClient) DeleteSecurityGroup(uuid string, deleteMode param.DeleteMode) error

DeleteSecurityGroup Delete a security group

func (*ZSClient) DeleteSecurityGroupRule

func (cli *ZSClient) DeleteSecurityGroupRule(ruleUuid string) error

DeleteSecurityGroupRule Delete a security group rule

func (*ZSClient) DeleteTag

func (cli *ZSClient) DeleteTag(uuid string, mode param.DeleteMode) error

DeleteTag Delete a tag

func (*ZSClient) DeleteVip

func (cli *ZSClient) DeleteVip(uuid string, mode param.DeleteMode) error

DeleteVip Delete a Virtual IP

func (*ZSClient) DeleteVmCdRom

func (cli *ZSClient) DeleteVmCdRom(cdRomUUID string, deleteMode param.DeleteMode) error

DeleteVmCdRom deletes a CD-ROM from a virtual machine.

func (*ZSClient) DeleteVmInstanceScrpt

func (cli *ZSClient) DeleteVmInstanceScrpt(uuid string, deleteMode param.DeleteMode) error

func (*ZSClient) DeleteVmNicFromSecurityGroup

func (cli *ZSClient) DeleteVmNicFromSecurityGroup(securityGroupUuid string, vmNicUuids []string) error

DeleteVmNicFromSecurityGroup Delete VM NIC from security group

func (*ZSClient) DeleteVmSshKey

func (cli *ZSClient) DeleteVmSshKey(uuid string, mode param.DeleteMode) error

DeleteVmSshKey deletes the SSH key of a virtual machine.

func (*ZSClient) DeleteVmStaticIp

func (cli *ZSClient) DeleteVmStaticIp(vmInstanceUuid string, params param.DeleteVmStaticIpParam) error

func (*ZSClient) DeleteVolumeQoS

func (cli *ZSClient) DeleteVolumeQoS(uuid string, mode string) error

func (*ZSClient) DeleteVolumeSnapshot

func (cli *ZSClient) DeleteVolumeSnapshot(uuid string, deleteMode param.DeleteMode) error

func (*ZSClient) DeleteVolumeSnapshotGroup

func (cli *ZSClient) DeleteVolumeSnapshotGroup(uuid string, deleteMode param.DeleteMode) error

func (*ZSClient) DescribeVmInstanceRecoveryPoint

func (cli *ZSClient) DescribeVmInstanceRecoveryPoint(uuid string, params *param.GetRecoveryPointParam) (*view.PointResourceInfoView, error)

DescribeVmInstanceRecoveryPoint Get recovery point information for a VM instance

func (*ZSClient) DestroyVmInstance

func (cli *ZSClient) DestroyVmInstance(uuid string, deleteMode param.DeleteMode) error

DestroyVmInstance Delete a VM instance

func (*ZSClient) DetachDataVolumeFromVm

func (cli *ZSClient) DetachDataVolumeFromVm(uuid, vmUuid string) (*view.VolumeView, error)

func (*ZSClient) DetachEip

func (cli *ZSClient) DetachEip(eipUuid string) error

DetachEip Detach Elastic IP

func (*ZSClient) DetachIsoFromVmInstance

func (cli *ZSClient) DetachIsoFromVmInstance(instanceUUID, isoUUID string) (*view.VmInstanceInventoryView, error)

DetachIsoFromVmInstance detaches an ISO image from a virtual machine.

func (*ZSClient) DetachL3NetworkFromVm

func (cli *ZSClient) DetachL3NetworkFromVm(vmNicUuid string) (*view.VmInstanceInventoryView, error)

func (*ZSClient) DetachTagFromResource

func (cli *ZSClient) DetachTagFromResource(tagUuid string, resourceUuids []string) error

DetachTagFromResource detaches a tag from one or more resources.

Parameters:

  • tagUuid: The UUID of the tag to be detached
  • resourceUuids: A slice of resource UUIDs to detach the tag from

Returns an error if the detachment operation fails.

func (*ZSClient) DetachUsbDeviceFromVm

func (cli *ZSClient) DetachUsbDeviceFromVm(usbDeviceUuid string, params param.DetachUsbDeviceFromVmParam) error

DetachUsbDeviceFromVm Detach a USB device mounted on a cloud VM

func (*ZSClient) DisableCdpTask

func (cli *ZSClient) DisableCdpTask(uuid string) (*view.CdpTaskInventoryView, error)

DisableCdpTask disables a specific CDP task.

func (*ZSClient) EnableCdpTask

func (cli *ZSClient) EnableCdpTask(uuid string) (*view.CdpTaskInventoryView, error)

EnableCdpTask enables a specific CDP task.

func (*ZSClient) ExecuteVmInstanceScript

func (cli *ZSClient) ExecuteVmInstanceScript(uuid string, params param.ExecuteVmInstanceScriptParam) (*view.VmInstanceScriptResultInventoryView, error)

func (*ZSClient) ExportImageFromBackupStorage

ExportImageFromBackupStorage exports an image from backup storage

func (*ZSClient) ExpungeDataVolume

func (cli *ZSClient) ExpungeDataVolume(uuid string) error

func (*ZSClient) ExpungeImage

func (cli *ZSClient) ExpungeImage(imageId string) error

ExpungeImage Permanently Delete Image

func (*ZSClient) ExpungeVmInstance

func (cli *ZSClient) ExpungeVmInstance(uuid string) error

ExpungeVmInstance Permanently delete a VM instance

func (*ZSClient) GetAllMetricMetadata

func (cli *ZSClient) GetAllMetricMetadata(params param.GetAllMetricMetadataParam) ([]view.MetricMetadataView, error)

GetAllMetricMetadata Retrieve all metric metadata

func (*ZSClient) GetBackupStorage

func (cli *ZSClient) GetBackupStorage(uuid string) (*view.BackupStorageInventoryView, error)

GetBackupStorage retrieves a specific backup storage by UUID

func (*ZSClient) GetCandidateBackupStorageForCreatingImage

func (cli *ZSClient) GetCandidateBackupStorageForCreatingImage(params param.GetCandidateBackupStorageForCreatingImageParam) ([]view.ImageView, error)

GetCandidateBackupStorageForCreatingImage Get Backup Storage Candidates for Creating Image

func (*ZSClient) GetCandidateIsoForAttachingVm

func (cli *ZSClient) GetCandidateIsoForAttachingVm(uuid string, p *param.QueryParam) ([]view.ImageView, error)

GetCandidateIsoForAttachingVm retrieves the list of ISO images that can be attached to a virtual machine.

func (*ZSClient) GetCandidatePrimaryStoragesForCreatingVm

func (cli *ZSClient) GetCandidatePrimaryStoragesForCreatingVm(params param.QueryParam) (*view.GetCandidatePrimaryStoragesForCreatingVmView, error)

GetCandidatePrimaryStoragesForCreatingVm retrieves the list of candidate primary storages for creating a virtual machine.

func (*ZSClient) GetCandidateVmForAttachingIso

func (cli *ZSClient) GetCandidateVmForAttachingIso(uuid string, p *param.QueryParam) ([]view.VmInstanceInventoryView, error)

GetCandidateVmForAttachingIso Get Candidate VMs for Attaching ISO

func (*ZSClient) GetCandidateVmNicForSecurityGroup

func (cli *ZSClient) GetCandidateVmNicForSecurityGroup(securityGroupUuid string) ([]view.VmNicInventoryView, error)

GetCandidateVmNicForSecurityGroup Get candidate VM NICs for security group

func (*ZSClient) GetCdpPolicy

func (cli *ZSClient) GetCdpPolicy(uuid string) (*view.CdpPolicyInventoryView, error)

GetCdpPolicy retrieves a specific CDP policy by UUID.

func (*ZSClient) GetCdpTask

func (cli *ZSClient) GetCdpTask(uuid string) (*view.CdpTaskInventoryView, error)

GetCdpTask retrieves a specific CDP task by UUID.

func (*ZSClient) GetClusterHostNetworkFacts

func (cli *ZSClient) GetClusterHostNetworkFacts(clusterUuid string) (view.ClusterHostNetworkFactsView, error)

GetClusterHostNetworkFacts queries attachable network interfaces for a cluster

func (*ZSClient) GetDataVolumeAttachableVm

func (cli *ZSClient) GetDataVolumeAttachableVm(volumeUuid string) ([]view.VmInstanceInventoryView, error)

func (*ZSClient) GetDiskOffering

func (cli *ZSClient) GetDiskOffering(uuid string) (*view.DiskOfferingInventoryView, error)

GetDiskOffering Get Disk Offering

func (*ZSClient) GetEip

func (cli *ZSClient) GetEip(uuid string) (view.EipInventoryView, error)

GetEip Query Elastic IP by UUID

func (*ZSClient) GetEipAttachableVmNics

func (cli *ZSClient) GetEipAttachableVmNics(params param.GetEipAttachableVmNicsParam) ([]view.VmNicInventoryView, error)

GetEipAttachableVmNics Get VM NICs that can be attached to the specified Elastic IP

func (*ZSClient) GetFreeIp

func (cli *ZSClient) GetFreeIp(l3NetworkUuid string, queryParam param.QueryParam) ([]view.FreeIpInventoryView, error)

GetFreeIp Queries free IPs

func (*ZSClient) GetHost

func (cli *ZSClient) GetHost(uuid string) (*view.HostInventoryView, error)

GetHost Physical machine details

func (*ZSClient) GetImage

func (cli *ZSClient) GetImage(uuid string) (*view.ImageView, error)

GetImage Query Image

func (*ZSClient) GetImageQga

func (cli *ZSClient) GetImageQga(uuid string) (view.GetImageQgaView, error)

GetImageQga Get Image Qga

func (*ZSClient) GetImageStoreBackupStorage

func (cli *ZSClient) GetImageStoreBackupStorage(uuid string) (*view.BackupStorageInventoryView, error)

GetImageStoreBackupStorage retrieves a specific image store backup storage by UUID

func (*ZSClient) GetInstanceConsolePassword

func (cli *ZSClient) GetInstanceConsolePassword(instanceUUID string) (string, error)

GetInstanceConsolePassword retrieves the console password of a VM.

func (*ZSClient) GetInstanceOffering

func (cli *ZSClient) GetInstanceOffering(uuid string) (*view.InstanceOfferingInventoryView, error)

GetInstanceOffering Get Instance Offering

func (*ZSClient) GetIpAddressCapacity

func (cli *ZSClient) GetIpAddressCapacity(ipRangeUuids string) (view.IpAddressCapacityView, error)

GetIpAddressCapacity Retrieves IP address capacity for a given range

func (*ZSClient) GetIpRange

func (cli *ZSClient) GetIpRange(uuid string) (view.IpRangeInventoryView, error)

GetIpRange Retrieves a specific IP address range

func (*ZSClient) GetL2Network

func (cli *ZSClient) GetL2Network(uuid string) (view.L2NetworkInventoryView, error)

GetL2Network queries a specific Layer 2 network

func (*ZSClient) GetL3Network

func (cli *ZSClient) GetL3Network(uuid string) (view.L3NetworkInventoryView, error)

GetL3Network Queries a specific Layer 3 network

func (*ZSClient) GetL3NetworkDhcpIpAddress

func (cli *ZSClient) GetL3NetworkDhcpIpAddress(l3NetworkUuid string) (view.DhcpIpAddressView, error)

GetL3NetworkDhcpIpAddress Retrieves the DHCP IP address for a network

func (*ZSClient) GetL3NetworkIpStatistic

func (cli *ZSClient) GetL3NetworkIpStatistic(l3NetworkUuid string) ([]view.IpStatisticView, error)

GetL3NetworkIpStatistic Retrieves IP address usage statistics for a Layer 3 network

func (*ZSClient) GetL3NetworkMtu

func (cli *ZSClient) GetL3NetworkMtu(l3NetworkUuid string) (view.MtuView, error)

GetL3NetworkMtu Retrieves the MTU value for a Layer 3 network

func (*ZSClient) GetLatestGuestToolsForVm

func (cli *ZSClient) GetLatestGuestToolsForVm(uuid string) (*view.LatestGuestToolsView, error)

GetLatestGuestToolsForVm Get the latest guest tools available for the VM

func (*ZSClient) GetLicenseAddOns

func (cli *ZSClient) GetLicenseAddOns(params param.QueryParam) ([]view.LicenseAddOnInventoryView, error)

GetLicenseAddOns Retrieves add-on license information

func (*ZSClient) GetLicenseCapabilities

func (cli *ZSClient) GetLicenseCapabilities(params param.QueryParam) (map[string]interface{}, error)

GetLicenseCapabilities Retrieves license capacity

func (*ZSClient) GetLicenseInfo

func (cli *ZSClient) GetLicenseInfo(params param.QueryParam) (view.LicenseInventoryView, error)

GetLicenseInfo Retrieves license information This interface only retrieves the application code and license information for the primary management node

func (*ZSClient) GetLicenseRecords

func (cli *ZSClient) GetLicenseRecords(params param.QueryParam) ([]view.LicenseInventoryView, error)

GetLicenseRecords Retrieves historical license authorization information The results only include historical license authorization information for the primary management node

func (*ZSClient) GetLongJob

func (cli *ZSClient) GetLongJob(uuid string) (*view.LongJobInventoryView, error)

GetLongJob Retrieve a long-running task

func (*ZSClient) GetMetricData

func (cli *ZSClient) GetMetricData(params param.GetMetricDataParam) ([]view.MetricDataView, error)

GetMetricData Retrieve metric data

func (*ZSClient) GetMetricLabelValue

func (cli *ZSClient) GetMetricLabelValue(params param.GetMetricLabelValueParam) ([]map[string]interface{}, error)

GetMetricLabelValue Retrieve the label values for a metric

func (*ZSClient) GetResourceConfig

func (cli *ZSClient) GetResourceConfig(resourceUuid, category, name string) ([]view.ResourceConfigView, error)

GetResourceConfig Get advanced settings for the resource

func (*ZSClient) GetSdnController

func (cli *ZSClient) GetSdnController(uuid string) (*view.SdnControllerInventoryView, error)

Get SDN Controller by UUID

func (*ZSClient) GetSecurityGroup

func (cli *ZSClient) GetSecurityGroup(uuid string) (*view.SecurityGroupInventoryView, error)

GetSecurityGroup Get security group by UUID

func (*ZSClient) GetSecurityGroupRule

func (cli *ZSClient) GetSecurityGroupRule(uuid string) (*view.SecurityGroupRuleInventoryView, error)

GetSecurityGroupRule Get security group rule by UUID

func (*ZSClient) GetTag

func (cli *ZSClient) GetTag(uuid string) (view.TagInventoryView, error)

GetTag Get tag by uuid

func (*ZSClient) GetTaskProgress

func (cli *ZSClient) GetTaskProgress(apiId string) (*view.TaskProgressInventoryView, error)

GetTaskProgress Retrieve task progress

func (*ZSClient) GetUploadImageJobDetails

func (cli *ZSClient) GetUploadImageJobDetails(params param.GetUploadImageJobDetailsParam) (*view.GetUploadImageJobDetailsResponse, error)

GetUploadImageJobDetails Get Upload Image Job Details

func (*ZSClient) GetUsbDevice

func (cli *ZSClient) GetUsbDevice(uuid string) (view.UsbDeviceView, error)

GetUsbDevice Get a specific USB device

func (*ZSClient) GetUsbDeviceCandidatesForAttachingVm

func (cli *ZSClient) GetUsbDeviceCandidatesForAttachingVm(vmInstanceUuid string, attachType param.AttachType) ([]view.UsbDeviceView, error)

GetUsbDeviceCandidatesForAttachingVm Get the list of candidate USB devices for passthrough

func (*ZSClient) GetUserTag

func (cli *ZSClient) GetUserTag(uuid string) ([]view.TagInventory, error)

func (*ZSClient) GetVersion

func (cli *ZSClient) GetVersion() (string, error)

GetVersion Retrieve the current version

func (*ZSClient) GetVip

func (cli *ZSClient) GetVip(uuid string) (view.VipInventoryView, error)

GetVip Query a specific Virtual IP

func (*ZSClient) GetVirtualRouterOffering

func (cli *ZSClient) GetVirtualRouterOffering(uuid string) (view.VirtualRouterOfferingInventoryView, error)

GetVirtualRouterOffering Query a specific VPC Virtual Router Offering

func (*ZSClient) GetVirtualRouterVm

func (cli *ZSClient) GetVirtualRouterVm(uuid string) (view.VirtualRouterInventoryView, error)

GetVirtualRouterVm Query a specific VPC Virtual Router

func (*ZSClient) GetVmAttachableDataVolume

func (cli *ZSClient) GetVmAttachableDataVolume(uuid string) ([]view.VolumeView, error)

GetVmAttachableDataVolume retrieves a list of data volumes that can be attached to a VM.

func (*ZSClient) GetVmAttachableL3Network

func (cli *ZSClient) GetVmAttachableL3Network(uuid string) ([]view.L3NetworkInventoryView, error)

GetVmAttachableL3Network retrieves a list of L3 networks that can be attached to a VM.

func (*ZSClient) GetVmBootOrder

func (cli *ZSClient) GetVmBootOrder(uuid string) ([]string, error)

GetVmBootOrder retrieves the boot device order of a VM.

func (*ZSClient) GetVmConsoleAddress

func (cli *ZSClient) GetVmConsoleAddress(instanceUUID string) (*view.VMConsoleAddressView, error)

GetVmConsoleAddress retrieves the console address and protocol of a VM.

func (*ZSClient) GetVmGuestToolsInfo

func (cli *ZSClient) GetVmGuestToolsInfo(uuid string) (*view.VmGuestToolsInfoView, error)

GetVmGuestToolsInfo Get information about VM guest tools

func (*ZSClient) GetVmInstance

func (cli *ZSClient) GetVmInstance(uuid string) (*view.VmInstanceInventoryView, error)

func (*ZSClient) GetVmInstanceScript

func (cli *ZSClient) GetVmInstanceScript(uuid string) (*view.VmInstanceScriptInventoryView, error)

func (*ZSClient) GetVmInstanceScriptExecutedRecord

func (cli *ZSClient) GetVmInstanceScriptExecutedRecord(uuid string) (*view.VmInstanceScriptResultInventoryView, error)

func (*ZSClient) GetVmMigrationCandidateHosts

func (cli *ZSClient) GetVmMigrationCandidateHosts(instanceUUID string) ([]view.HostInventoryView, error)

GetVmMigrationCandidateHosts retrieves a list of hosts eligible for live migration.

func (*ZSClient) GetVmNic

func (cli *ZSClient) GetVmNic(uuid string) (*view.VmNicInventoryView, error)

func (*ZSClient) GetVmNicAttachableEips

func (cli *ZSClient) GetVmNicAttachableEips(params param.GetVmNicAttachableEipsParam) ([]view.EipInventoryView, error)

GetVmNicAttachableEips Get Elastic IPs that can be attached to a VM NIC

func (*ZSClient) GetVmQga

func (cli *ZSClient) GetVmQga(uuid string) (view.VMQgaView, error)

GetVmQga retrieves the Qga (Guest Agent) information of a VM.

func (*ZSClient) GetVmSshKey

func (cli *ZSClient) GetVmSshKey(uuid string) (view.VMSshKeyView, error)

GetVmSshKey retrieves the SSH key associated with a virtual machine.

func (*ZSClient) GetVmStartingCandidateClustersHosts

func (cli *ZSClient) GetVmStartingCandidateClustersHosts(instanceUUID string) ([]view.HostInventoryView, error)

GetVmStartingCandidateClustersHosts retrieves a list of potential destinations for starting a VM.

func (*ZSClient) GetVolume

func (cli *ZSClient) GetVolume(uuid string) (*view.VolumeView, error)

func (*ZSClient) GetVolumeCapabilities

func (cli *ZSClient) GetVolumeCapabilities(uuid string) (*view.VolumeCapabilitiesView, error)

func (*ZSClient) GetVolumeFormat

func (cli *ZSClient) GetVolumeFormat() ([]view.VolumeFormatView, error)

func (*ZSClient) GetVolumeQoS

func (cli *ZSClient) GetVolumeQoS(uuid string) (*view.VolumeQoSView, error)

func (*ZSClient) GetVolumeSnapshot

func (cli *ZSClient) GetVolumeSnapshot(uuid string) (*view.VolumeSnapshotView, error)

func (*ZSClient) GetVolumeSnapshotGroup

func (cli *ZSClient) GetVolumeSnapshotGroup(uuid string) (*view.VolumeSnapshotGroupView, error)

func (*ZSClient) GetVolumeSnapshotSize

func (cli *ZSClient) GetVolumeSnapshotSize(uuid string) (*view.VolumeSnapshotSizeView, error)

func (*ZSClient) GetVolumeSnapshotTree

func (cli *ZSClient) GetVolumeSnapshotTree(uuid string) (*view.VolumeSnapshotTreeView, error)

func (*ZSClient) GetVpcRouter

func (cli *ZSClient) GetVpcRouter(uuid string) (view.VpcRouterVmInventoryView, error)

GetVpcRouter retrieves details of a specific VPC router by its UUID.

func (*ZSClient) GetZone

func (cli *ZSClient) GetZone(uuid string) (*view.ZoneView, error)

GetZone by uuid

func (*ZSClient) GuestNameList

func (cli *ZSClient) GuestNameList() ([]view.GuestOsNameView, error)

func (*ZSClient) GuestOsTypeList

func (cli *ZSClient) GuestOsTypeList() ([]view.GuestOsTypeView, error)

func (*ZSClient) ListAllImages

func (cli *ZSClient) ListAllImages() ([]view.ImageView, error)

QueryImage Query All Images

func (*ZSClient) ListAllTags

func (cli *ZSClient) ListAllTags() ([]view.TagInventoryView, error)

QueryTag Query all tags

func (*ZSClient) ListAllUserTags

func (cli *ZSClient) ListAllUserTags() ([]view.UserTagInventoryView, error)

QueryUserTag Query all user tags

func (*ZSClient) LiveMigrateVM

func (cli *ZSClient) LiveMigrateVM(instanceUUID, hostUUID string, autoConverge bool) (*view.VmInstanceInventoryView, error)

LiveMigrateVM performs a live migration of a VM. hostUUID specifies the target host. If empty, the cloud chooses a host automatically.

func (*ZSClient) Login

func (cli *ZSClient) Login() (*view.SessionView, error)

func (*ZSClient) Logout

func (cli *ZSClient) Logout() error

func (*ZSClient) MountVmInstanceRecoveryPoint

func (cli *ZSClient) MountVmInstanceRecoveryPoint(params param.MountVmInstanceRecoveryPointParam) (*view.MountVmInstanceRecoveryPointView, error)

MountVmInstanceRecoveryPoint mounts a CDP recovery point.

func (*ZSClient) PageBackupStorage

func (cli *ZSClient) PageBackupStorage(params param.QueryParam) ([]view.BackupStorageInventoryView, int, error)

PageBackupStorage queries backup storage with pagination

func (*ZSClient) PageCdpPolicy

func (cli *ZSClient) PageCdpPolicy(params param.QueryParam) ([]view.CdpPolicyInventoryView, int, error)

PageCdpPolicy performs paginated querying of CDP policies.

func (*ZSClient) PageCdpTask

func (cli *ZSClient) PageCdpTask(params param.QueryParam) ([]view.CdpTaskInventoryView, int, error)

PageCdpTask performs paginated querying of CDP tasks.

func (*ZSClient) PageCephPrimaryStoragePool

func (cli *ZSClient) PageCephPrimaryStoragePool(params param.QueryParam) ([]view.CephPrimaryStoragePoolInventoryView, int, error)

PageCephPrimaryStoragePool Paginate query Ceph primary storage pool

func (*ZSClient) PageEip

func (cli *ZSClient) PageEip(params param.QueryParam) ([]view.EipInventoryView, int, error)

PageEip Pagination

func (*ZSClient) PageHost

func (cli *ZSClient) PageHost(params param.QueryParam) ([]view.HostInventoryView, int, error)

PageHost Paging of physical machines

func (*ZSClient) PageImage

func (cli *ZSClient) PageImage(params param.QueryParam) ([]view.ImageView, int, error)

PageImage Pagination

func (*ZSClient) PageImageStoreBackupStorage

func (cli *ZSClient) PageImageStoreBackupStorage(params param.QueryParam) ([]view.BackupStorageInventoryView, int, error)

PageImageStoreBackupStorage queries image store backup storage with pagination

func (*ZSClient) PageL2Network

func (cli *ZSClient) PageL2Network(params param.QueryParam) ([]view.L2NetworkInventoryView, int, error)

PageL2Network queries Layer 2 networks with pagination

func (*ZSClient) PageL3network

func (cli *ZSClient) PageL3network(params param.QueryParam) ([]view.L3NetworkInventoryView, int, error)

PageL3network Paginated query for Layer 3 networks

func (*ZSClient) PageLongJob

func (cli *ZSClient) PageLongJob(params param.QueryParam) ([]view.LongJobInventoryView, int, error)

PageLongJob Paginated query for long-running tasks

func (*ZSClient) PagePrimaryStorage

func (cli *ZSClient) PagePrimaryStorage(params param.QueryParam) ([]view.PrimaryStorageInventoryView, int, error)

PagePrimaryStorage Paginate query primary storage

func (*ZSClient) PageUsbDevice

func (cli *ZSClient) PageUsbDevice(params param.QueryParam) ([]view.UsbDeviceView, int, error)

PageUsbDevice Paginated query of USB devices

func (*ZSClient) PageVmCdRom

func (cli *ZSClient) PageVmCdRom(p param.QueryParam) ([]view.VMCDRomView, int, error)

PageVmCdRom queries CD-ROMs for virtual machines with pagination.

func (*ZSClient) PageVmInstance

func (cli *ZSClient) PageVmInstance(params param.QueryParam) ([]view.VmInstanceInventoryView, int, error)

PageVmInstance Paginate VM instances

func (*ZSClient) PageVmNic

func (cli *ZSClient) PageVmNic(params param.QueryParam) ([]view.VmNicInventoryView, int, error)

func (*ZSClient) PageVolume

func (cli *ZSClient) PageVolume(params param.QueryParam) ([]view.VolumeView, int, error)

func (*ZSClient) PageVolumeSnapshot

func (cli *ZSClient) PageVolumeSnapshot(params param.QueryParam) ([]view.VolumeSnapshotView, int, error)

func (*ZSClient) PageVolumeSnapshotGroup

func (cli *ZSClient) PageVolumeSnapshotGroup(params param.QueryParam) ([]view.VolumeSnapshotGroupView, int, error)

func (*ZSClient) ParseOvf

func (cli *ZSClient) ParseOvf(params param.ParseOvfParam) (*view.OvfInfo, error)

ParseOvf parses the OVF template information.

func (*ZSClient) PauseVmInstance

func (cli *ZSClient) PauseVmInstance(uuid string) (*view.VmInstanceInventoryView, error)

PauseVmInstance Pause a VM instance

func (*ZSClient) ProtectVmInstanceRecoveryPoint

func (cli *ZSClient) ProtectVmInstanceRecoveryPoint(uuid string, params param.ProtectVmInstanceRecoveryPointParam) error

ProtectVmInstanceRecoveryPoint Set protected recovery point for a VM instance

func (*ZSClient) QuerryIAMProject added in v1.0.3

func (cli *ZSClient) QuerryIAMProject(param param.QueryParam) ([]view.IMA2ProjectInventoryView, error)

func (*ZSClient) QueryAccount added in v1.0.3

func (cli *ZSClient) QueryAccount(param param.QueryParam) ([]view.AccountInventoryView, error)

func (*ZSClient) QueryAccountResourceRef

func (cli *ZSClient) QueryAccountResourceRef(params param.QueryParam) ([]view.AccountResourceRefInventoryView, error)

PageVmInstance Paginate VM instances

func (*ZSClient) QueryBackupStorage

func (cli *ZSClient) QueryBackupStorage(params param.QueryParam) ([]view.BackupStorageInventoryView, error)

QueryBackupStorage queries backup storage

func (*ZSClient) QueryCdpPolicy

func (cli *ZSClient) QueryCdpPolicy(params param.QueryParam) ([]view.CdpPolicyInventoryView, error)

QueryCdpPolicy queries CDP policies.

func (*ZSClient) QueryCdpTask

func (cli *ZSClient) QueryCdpTask(params param.QueryParam) ([]view.CdpTaskInventoryView, error)

QueryCdpTask queries CDP tasks.

func (*ZSClient) QueryCephPrimaryStoragePool

func (cli *ZSClient) QueryCephPrimaryStoragePool(params param.QueryParam) ([]view.CephPrimaryStoragePoolInventoryView, error)

QueryCephPrimaryStoragePool Query Ceph primary storage pool

func (*ZSClient) QueryCluster

func (cli *ZSClient) QueryCluster(params param.QueryParam) ([]view.ClusterInventoryView, error)

QueryCluster queries ZStack Clusters

func (*ZSClient) QueryDiskOffering

func (cli *ZSClient) QueryDiskOffering(params param.QueryParam) ([]view.DiskOfferingInventoryView, error)

QueryDiskOffering

func (*ZSClient) QueryEip

func (cli *ZSClient) QueryEip(params param.QueryParam) ([]view.EipInventoryView, error)

QueryEip Query Elastic IP

func (*ZSClient) QueryGlobalConfig

func (cli *ZSClient) QueryGlobalConfig(params param.QueryParam) ([]view.GlobalConfigView, error)

func (*ZSClient) QueryGuestVmScriptExecutedRecordDetail

func (cli *ZSClient) QueryGuestVmScriptExecutedRecordDetail(params param.QueryParam) ([]view.VmInstanceScriptResultDetailInventoryView, error)

func (*ZSClient) QueryHost

func (cli *ZSClient) QueryHost(params param.QueryParam) ([]view.HostInventoryView, error)

QueryHost Query physical machine

func (*ZSClient) QueryHostNetworkBonding

func (cli *ZSClient) QueryHostNetworkBonding(params param.QueryParam) ([]view.HostNetworkBondingInventoryView, error)

QueryHostNetworkBonding Query physical machine bonding information

func (*ZSClient) QueryHostNetworkInterface

func (cli *ZSClient) QueryHostNetworkInterface(params param.QueryParam) ([]view.HostNetworkInterfaceInventoryView, error)

QueryHostNetworkInterface Query physical machine network interface information

func (*ZSClient) QueryImage

func (cli *ZSClient) QueryImage(params param.QueryParam) ([]view.ImageView, error)

QueryImage Query Image

func (*ZSClient) QueryImageStoreBackupStorage

func (cli *ZSClient) QueryImageStoreBackupStorage(params param.QueryParam) ([]view.BackupStorageInventoryView, error)

QueryImageStoreBackupStorage queries image store backup storage

func (*ZSClient) QueryInstaceOffering

func (cli *ZSClient) QueryInstaceOffering(params param.QueryParam) ([]view.InstanceOfferingInventoryView, error)

QueryInstanceOffering Query Instance Offering

func (*ZSClient) QueryIpAddress

func (cli *ZSClient) QueryIpAddress(queryParam param.QueryParam) ([]view.IpAddressInventoryView, error)

QueryIpAddress Queries IP addresses

func (*ZSClient) QueryIpRange

func (cli *ZSClient) QueryIpRange(queryParam param.QueryParam) ([]view.IpRangeInventoryView, error)

QueryIpRange Queries IP address ranges

func (*ZSClient) QueryL2Network

func (cli *ZSClient) QueryL2Network(params param.QueryParam) ([]view.L2NetworkInventoryView, error)

QueryL2Network queries Layer 2 networks

func (*ZSClient) QueryL3Network

func (cli *ZSClient) QueryL3Network(params param.QueryParam) ([]view.L3NetworkInventoryView, error)

QueryL3Network Queries Layer 3 network

func (*ZSClient) QueryLongJob

func (cli *ZSClient) QueryLongJob(queryParam param.QueryParam) ([]view.LongJobInventoryView, error)

QueryLongJob Query long-running tasks

func (*ZSClient) QueryManagementNode

func (cli *ZSClient) QueryManagementNode(params param.QueryParam) ([]view.ManagementNodeInventoryView, error)

QueryManagementNode Query management nodes

func (*ZSClient) QueryNetworkServiceProvider

func (cli *ZSClient) QueryNetworkServiceProvider(params param.QueryParam) ([]view.NetworkServiceProviderInventoryView, error)

QueryNetworkServiceProvider Query network service module

func (*ZSClient) QueryPrimaryStorage

func (cli *ZSClient) QueryPrimaryStorage(params param.QueryParam) ([]view.PrimaryStorageInventoryView, error)

QueryPrimaryStorage Query primary storage

func (*ZSClient) QueryProtectRecoveryPoint

func (cli *ZSClient) QueryProtectRecoveryPoint(uuid string, params param.QueryProtectRecoveryPointParam) (*view.ProtectRecoveryPointRespView, error)

QueryProtectRecoveryPoint Query protected recovery points for a VM instance

func (*ZSClient) QueryRecoveryPoint

func (cli *ZSClient) QueryRecoveryPoint(uuid string, params param.QueryRecoveryPointParam) (*view.RecoveryPointRespView, error)

QueryRecoveryPoint Query recovery points for a VM instance

func (*ZSClient) QueryResourceConfig

func (cli *ZSClient) QueryResourceConfig(params param.QueryParam) ([]view.ResourceConfigView, error)

func (*ZSClient) QuerySdnController

func (cli *ZSClient) QuerySdnController(params param.QueryParam) ([]view.SdnControllerInventoryView, error)

Query SDN Controller

func (*ZSClient) QuerySecurityGroup

func (cli *ZSClient) QuerySecurityGroup(params param.QueryParam) ([]view.SecurityGroupInventoryView, error)

QurySecurityGroup

func (*ZSClient) QuerySecurityGroupRule

func (cli *ZSClient) QuerySecurityGroupRule(params param.QueryParam) ([]view.SecurityGroupRuleInventoryView, error)

QuerySecurityGroupRule Query security group rules

func (*ZSClient) QuerySystemTags

func (cli *ZSClient) QuerySystemTags(params param.QueryParam) ([]view.SystemTagView, error)

QuerySystemTags Query system tags

func (*ZSClient) QueryTag

func (cli *ZSClient) QueryTag(params param.QueryParam) ([]view.TagInventoryView, error)

QueryTag

func (*ZSClient) QueryUsbDevice

func (cli *ZSClient) QueryUsbDevice(params param.QueryParam) ([]view.UsbDeviceView, error)

QueryUsbDevice Query USB devices

func (*ZSClient) QueryUserTag

func (cli *ZSClient) QueryUserTag(params param.QueryParam) ([]view.UserTagInventoryView, error)

QueryUserTag Query user tags

func (*ZSClient) QueryVip

func (cli *ZSClient) QueryVip(params param.QueryParam) ([]view.VipInventoryView, error)

QueryVip Query Virtual IPs

func (*ZSClient) QueryVirtualRouterOffering

func (cli *ZSClient) QueryVirtualRouterOffering(params param.QueryParam) ([]view.VirtualRouterOfferingInventoryView, error)

QueryVirtualRouter Offering Query VPC Virtual Router Offering

func (*ZSClient) QueryVirtualRouterVm

func (cli *ZSClient) QueryVirtualRouterVm(params param.QueryParam) ([]view.VirtualRouterInventoryView, error)

QueryVirtualRouterVm Query VPC Virtual Router

func (*ZSClient) QueryVmCdRom

func (cli *ZSClient) QueryVmCdRom(p param.QueryParam) ([]view.VMCDRomView, error)

QueryVmCdRom queries the list of CD-ROMs for virtual machines.

func (*ZSClient) QueryVmInstance

func (cli *ZSClient) QueryVmInstance(params param.QueryParam) ([]view.VmInstanceInventoryView, error)

QueryVmInstance Query VM instances

func (*ZSClient) QueryVmInstanceScript

func (cli *ZSClient) QueryVmInstanceScript(params param.QueryParam) ([]view.VmInstanceScriptInventoryView, error)

func (*ZSClient) QueryVmInstanceScriptExecutedRecord

func (cli *ZSClient) QueryVmInstanceScriptExecutedRecord(params param.QueryParam) ([]view.VmInstanceScriptResultInventoryView, error)

func (*ZSClient) QueryVmNic

func (cli *ZSClient) QueryVmNic(params param.QueryParam) ([]view.VmNicInventoryView, error)

func (*ZSClient) QueryVolume

func (cli *ZSClient) QueryVolume(params param.QueryParam) ([]view.VolumeView, error)

func (*ZSClient) QueryVolumeSnapshot

func (cli *ZSClient) QueryVolumeSnapshot(params param.QueryParam) ([]view.VolumeSnapshotView, error)

func (*ZSClient) QueryVolumeSnapshotGroup

func (cli *ZSClient) QueryVolumeSnapshotGroup(params param.QueryParam) ([]view.VolumeSnapshotGroupView, error)

func (*ZSClient) QueryVolumeSnapshotTree

func (cli *ZSClient) QueryVolumeSnapshotTree(params param.QueryParam) ([]view.VolumeSnapshotTreeView, error)

func (*ZSClient) QueryVpcRouter

func (cli *ZSClient) QueryVpcRouter(params param.QueryParam) ([]view.VpcRouterVmInventoryView, error)

QueryVpcRouter queries the list of VPC routers.

func (*ZSClient) QueryZone

func (cli *ZSClient) QueryZone(params param.QueryParam) ([]view.ZoneView, error)

QueryZone queries the list of zones

func (*ZSClient) RebootVmInstance

func (cli *ZSClient) RebootVmInstance(uuid string) (*view.VmInstanceInventoryView, error)

RebootVmInstance Reboot a VM instance

func (*ZSClient) ReclaimSpaceFromImageStore

func (cli *ZSClient) ReclaimSpaceFromImageStore(uuid string) (*view.GcResultView, error)

ReclaimSpaceFromImageStore reclaims space from an image store backup storage

func (*ZSClient) ReconnectHost

func (cli *ZSClient) ReconnectHost(uuid string) (*view.HostInventoryView, error)

ReconnectHost Reconnect physical machine

func (*ZSClient) ReconnectImageStoreBackupStorage

func (cli *ZSClient) ReconnectImageStoreBackupStorage(uuid string) (*view.BackupStorageInventoryView, error)

ReconnectImageStoreBackupStorage reconnects an image store backup storage

func (*ZSClient) RecoverDataVolume

func (cli *ZSClient) RecoverDataVolume(uuid string) (*view.VolumeView, error)

func (*ZSClient) RecoverImage

func (cli *ZSClient) RecoverImage(params param.RecoverImageParam) (view.ImageView, error)

RecoverImage Recover Image

func (*ZSClient) ReloadLicense

func (cli *ZSClient) ReloadLicense(params param.ReloadLicenseParam) (view.LicenseInventoryView, error)

ReloadLicense Reloads the license Reloads the application code and license information for the specified management node UUIDs (reload a single mn, multiple mns, or all mns) The result will only include historical license authorization information for the primary management node

func (*ZSClient) RemoveDnsFromL3Network

func (cli *ZSClient) RemoveDnsFromL3Network(l3NetworkUuid string, dns string) error

RemoveDnsFromL3Network Removes DNS from a Layer 3 network

func (*ZSClient) RequestConsoleAccess

func (cli *ZSClient) RequestConsoleAccess(params param.RequestConsoleAccessParam) (view.ConsoleInventoryView, error)

RequestConsoleAccess Request console access URL

func (*ZSClient) ResizeDataVolume

func (cli *ZSClient) ResizeDataVolume(uuid string, size int64) (*view.VolumeView, error)

func (*ZSClient) ResizeRootVolume

func (cli *ZSClient) ResizeRootVolume(uuid string, size int64) (*view.VolumeView, error)

func (*ZSClient) ResumeVmInstance

func (cli *ZSClient) ResumeVmInstance(uuid string) (*view.VmInstanceInventoryView, error)

ResumeVmInstance Resume a paused VM instance

func (*ZSClient) RevertVmFromCdpBackup

func (cli *ZSClient) RevertVmFromCdpBackup(uuid string, params *param.RevertVmFromCdpBackupParam) error

RevertVmFromCdpBackup reverts a VM to a CDP backup state.

func (*ZSClient) RevertVmFromSnapshotGroup

func (cli *ZSClient) RevertVmFromSnapshotGroup(uuid string) error

func (*ZSClient) RevertVolumeFromSnapshot

func (cli *ZSClient) RevertVolumeFromSnapshot(uuid string) error

func (*ZSClient) SetImageBootMode

func (cli *ZSClient) SetImageBootMode(params param.SetImageBootModeRequest) error

SetImageBootMode Set Image Boot Mode

func (*ZSClient) SetImageQga

func (cli *ZSClient) SetImageQga(params param.SetImageQgaParam) (error, error)

SetImageQga Set Image Qga

func (*ZSClient) SetL3NetworkMtu

func (cli *ZSClient) SetL3NetworkMtu(l3NetworkUuid string, mtu int64) error

SetL3NetworkMtu Sets the MTU value for a Layer 3 network

func (*ZSClient) SetVmBootMode

func (cli *ZSClient) SetVmBootMode(uuid string, params param.SetVmBootModeParam) error

SetVmBootMode sets the boot mode for a VM.

func (*ZSClient) SetVmClockTrack

SetVmClockTrack configures clock synchronization for a virtual machine.

func (*ZSClient) SetVmInstanceDefaultCdRom

func (cli *ZSClient) SetVmInstanceDefaultCdRom(vmInstanceUUID, cdRomUUID string) (*view.VMCDRomView, error)

SetVmInstanceDefaultCdRom sets the default CD-ROM for a virtual machine.

func (*ZSClient) SetVmQga

func (cli *ZSClient) SetVmQga(params param.UpdateVmInstanceQgaParam) error

SetVmQga sets the Qga (Guest Agent) configuration for a VM.

func (*ZSClient) SetVmSshKey

func (cli *ZSClient) SetVmSshKey(params param.UpdateVmInstanceSshKeyParam) error

SetVmSshKey sets the SSH key for a virtual machine.

func (*ZSClient) SetVmStaticIp

func (cli *ZSClient) SetVmStaticIp(vmInstanceUuid string, params param.SetVmStaticIpParam) error

func (*ZSClient) SetVolumeQoS

func (cli *ZSClient) SetVolumeQoS(uuid string, params param.SetVolumeQoSParam) error

func (*ZSClient) ShrinkVolumeSnapshot

func (cli *ZSClient) ShrinkVolumeSnapshot(uuid string) (*view.VolumeSnapshotShrinkResultView, error)

func (*ZSClient) StartVmInstance

func (cli *ZSClient) StartVmInstance(uuid string, params *param.StartVmInstanceParam) (*view.VmInstanceInventoryView, error)

StartVmInstance Start a VM instance

func (*ZSClient) StopVmInstance

func (cli *ZSClient) StopVmInstance(uuid string, params param.StopVmInstanceParam) (*view.VmInstanceInventoryView, error)

StopVmInstance Stop a VM instance

func (*ZSClient) SubmitLongJob

func (cli *ZSClient) SubmitLongJob(params *param.SubmitLongJobParam) (*view.LongJobInventoryView, error)

SubmitLongJob Submit a long-running task

func (*ZSClient) SyncImageSize

func (cli *ZSClient) SyncImageSize(params param.SyncImageSizeParam) (view.ImageView, error)

SyncImageSize Refresh Image Size Information

func (*ZSClient) SyncVolumeSize

func (cli *ZSClient) SyncVolumeSize(uuid string) (*view.VolumeView, error)

func (*ZSClient) UngroupVolumeSnapshotGroup

func (cli *ZSClient) UngroupVolumeSnapshotGroup(uuid string) error

func (*ZSClient) UnmountVmInstanceRecoveryPoint

func (cli *ZSClient) UnmountVmInstanceRecoveryPoint(params param.UnmountVmInstanceRecoveryPointParam) error

UnmountVmInstanceRecoveryPoint unmounts a CDP recovery point.

func (*ZSClient) UnprotectVmInstanceRecoveryPoint

func (cli *ZSClient) UnprotectVmInstanceRecoveryPoint(uuid string, params param.UnprotectVmInstanceRecoveryPointParam) error

UnprotectVmInstanceRecoveryPoint Remove protected recovery point for a VM instance

func (*ZSClient) UpdateArchitectureParam

func (cli *ZSClient) UpdateArchitectureParam(params param.UpdateImageArchitectureParam) (view.ImageView, error)

UpdateArchitectureParam Modify Virtual Machine Image CPU Architecture

func (*ZSClient) UpdateCdpPolicy

func (cli *ZSClient) UpdateCdpPolicy(uuid string, params *param.UpdateCdpPolicyParam) (*view.CdpPolicyInventoryView, error)

UpdateCdpPolicy updates a specific CDP policy.

func (*ZSClient) UpdateCdpTask

func (cli *ZSClient) UpdateCdpTask(uuid string, params *param.UpdateCdpTaskParam) (*view.CdpTaskInventoryView, error)

UpdateCdpTask updates a specific CDP task.

func (*ZSClient) UpdateDiskOffering

func (cli *ZSClient) UpdateDiskOffering(uuid string, params param.UpdateImageParam) (view.ImageView, error)

UpdateImage Edit Image

func (*ZSClient) UpdateEip

func (cli *ZSClient) UpdateEip(params param.UpdateEipParam) (view.EipInventoryView, error)

UpdateEip Update Elastic IP

func (*ZSClient) UpdateGlobalConfig

func (cli *ZSClient) UpdateGlobalConfig(category, name string, params param.UpdateGlobalConfigParam) (view.GlobalConfigView, error)

UpdateGlobalConfig Update advanced settings for resources

func (*ZSClient) UpdateHost

func (cli *ZSClient) UpdateHost(uuid string, params param.UpdateHostParam) (*view.HostInventoryView, error)

UpdateHost Update physical machine

func (*ZSClient) UpdateImage

func (cli *ZSClient) UpdateImage(uuid string, params param.UpdateImageParam) (view.ImageView, error)

UpdateImage Edit Image

func (*ZSClient) UpdateImagePlatform

func (cli *ZSClient) UpdateImagePlatform(params param.UpdateImagePlatformParam) (view.ImageView, error)

UpdateImagePlatform Update Image Information

func (*ZSClient) UpdateImageStoreBackupStorage

func (cli *ZSClient) UpdateImageStoreBackupStorage(uuid string, params param.UpdateImageStoreBackupStorageParam) (*view.BackupStorageInventoryView, error)

UpdateImageStoreBackupStorage updates information for an image store backup storage

func (*ZSClient) UpdateImageVirtio

func (cli *ZSClient) UpdateImageVirtio(params param.UpdateImageVirtioParam) (view.ImageView, error)

UpdateImageVirtio Update Image Information

func (*ZSClient) UpdateL2Network

func (cli *ZSClient) UpdateL2Network(uuid string, params param.UpdateL2NetworkParam) (view.L2NetworkInventoryView, error)

UpdateL2Network updates a Layer 2 network

func (*ZSClient) UpdateL3Network

func (cli *ZSClient) UpdateL3Network(uuid string, params param.UpdateL3NetworkParam) (view.L3NetworkInventoryView, error)

UpdateL3Network Updates a Layer 3 network

func (*ZSClient) UpdateLicense

func (cli *ZSClient) UpdateLicense(managementNodeUuid string, params param.UpdateLicenseParam) (*view.LicenseInventoryView, error)

UpdateLicense Updates license information When the license file for all management nodes in the cluster is provided, it will update all management nodes

func (*ZSClient) UpdateLongJob

func (cli *ZSClient) UpdateLongJob(uuid string, params *param.UpdateLongJobParam) (*view.LongJobInventoryView, error)

UpdateLongJob Update a long-running task

func (*ZSClient) UpdateResourceConfig

func (cli *ZSClient) UpdateResourceConfig(category, name, resourceUuid string, params param.UpdateResourceConfigParam) (view.ResourceConfigView, error)

func (*ZSClient) UpdateSecurityGroupRule

func (cli *ZSClient) UpdateSecurityGroupRule(ruleUuid string, params param.UpdateSecurityGroupRuleParam) (*view.SecurityGroupRuleInventoryView, error)

UpdateSecurityGroupRule Update a security group rule

func (*ZSClient) UpdateSystemTag

func (cli *ZSClient) UpdateSystemTag(uuid string, params param.UpdateSystemTagParam) (view.SystemTagView, error)

UpdateSystemTag Update a system tag

func (*ZSClient) UpdateTag

func (cli *ZSClient) UpdateTag(uuid string, params param.UpdateResourceTagParam) (view.TagInventoryView, error)

UpdateTag updates a tag's properties by its UUID. Note: Tags with type 'simple' cannot have their values updated. Returns the updated tag inventory and any error encountered.

func (*ZSClient) UpdateUsbDevice

func (cli *ZSClient) UpdateUsbDevice(uuid string, params param.UpdateUsbDeviceParam) (view.UsbDeviceView, error)

UpdateUsbDevice Update a USB device

func (*ZSClient) UpdateVip

func (cli *ZSClient) UpdateVip(params param.UpdateVipParam) (view.VipInventoryView, error)

UpdateVip Update a Virtual IP

func (*ZSClient) UpdateVmCdRom

func (cli *ZSClient) UpdateVmCdRom(cdRomUUID string, params param.UpdateVmCdRomParam) (*view.VMCDRomView, error)

UpdateVmCdRom updates a CD-ROM for a virtual machine.

func (*ZSClient) UpdateVmInstance

func (cli *ZSClient) UpdateVmInstance(uuid string, params param.UpdateVmInstanceParam) (*view.VmInstanceInventoryView, error)

UpdateVmInstance updates VM information.

func (*ZSClient) UpdateVmInstanceScript

func (cli *ZSClient) UpdateVmInstanceScript(uuid string, params param.UpdateVmInstanceScriptParam) error

func (*ZSClient) UpdateVmNicMac

func (cli *ZSClient) UpdateVmNicMac(vmNicUuid string, params param.UpdateVmNicMacParam) (*view.VmNicInventoryView, error)

func (*ZSClient) UpdateVolume

func (cli *ZSClient) UpdateVolume(uuid string, params param.UpdateVolumeParam) (*view.VolumeView, error)

func (*ZSClient) UpdateVolumeSnapshot

func (cli *ZSClient) UpdateVolumeSnapshot(uuid string, params param.UpdateVolumeSnapshotParam) (*view.VolumeSnapshotView, error)

func (*ZSClient) UpdateVolumeSnapshotGroup

func (cli *ZSClient) UpdateVolumeSnapshotGroup(uuid string, params param.UpdateVolumeSnapshotGroupParam) (*view.VolumeSnapshotGroupView, error)

func (*ZSClient) ValidateSession

func (cli *ZSClient) ValidateSession() (map[string]bool, error)

func (*ZSClient) ValidateSessionId

func (cli *ZSClient) ValidateSessionId(sessionId string) (map[string]bool, error)

func (*ZSClient) WebLogin

func (cli *ZSClient) WebLogin() (*view.WebUISessionView, error)

func (*ZSClient) Zql

func (cli *ZSClient) Zql(querySt string, retVal interface{}, unMarshalKeys ...string) (http.Header, error)

type ZSConfig

type ZSConfig struct {
	// contains filtered or unexported fields
}

func DefaultZSConfig

func DefaultZSConfig(hostname string) *ZSConfig

func NewZSConfig

func NewZSConfig(hostname string, port int, contextPath string) *ZSConfig

func (*ZSConfig) AccessKey

func (config *ZSConfig) AccessKey(accessKeyId, accessKeySecret string) *ZSConfig

func (*ZSConfig) Debug

func (config *ZSConfig) Debug(debug bool) *ZSConfig

func (*ZSConfig) LoginAccount

func (config *ZSConfig) LoginAccount(accountName, password string) *ZSConfig

func (*ZSConfig) LoginAccountUser

func (config *ZSConfig) LoginAccountUser(accountName, accountUserName, password string) *ZSConfig

func (*ZSConfig) ProxyFunc

func (config *ZSConfig) ProxyFunc(proxyFunc httputils.TransportProxyFunc) *ZSConfig

func (*ZSConfig) ReadOnly

func (config *ZSConfig) ReadOnly(readOnly bool) *ZSConfig

func (*ZSConfig) RetryInterval

func (config *ZSConfig) RetryInterval(retryInterval int) *ZSConfig

func (*ZSConfig) RetryTimes

func (config *ZSConfig) RetryTimes(retryTimes int) *ZSConfig

func (*ZSConfig) Session

func (config *ZSConfig) Session(sessionId string) *ZSConfig

type ZSHttpClient

type ZSHttpClient struct {
	*ZSConfig
	// contains filtered or unexported fields
}

func NewZSHttpClient

func NewZSHttpClient(config *ZSConfig) *ZSHttpClient

func (*ZSHttpClient) Delete

func (cli *ZSHttpClient) Delete(resource, resourceId, deleteMode string) error

func (*ZSHttpClient) DeleteWithAsync

func (cli *ZSHttpClient) DeleteWithAsync(resource, resourceId, spec, paramsStr string, retVal interface{}, async bool) (string, error)

func (*ZSHttpClient) DeleteWithSpec

func (cli *ZSHttpClient) DeleteWithSpec(resource, resourceId, spec, paramsStr string, retVal interface{}) error

func (*ZSHttpClient) Get

func (cli *ZSHttpClient) Get(resource, resourceId string, params interface{}, retVal interface{}) error

func (*ZSHttpClient) GetWithRespKey

func (cli *ZSHttpClient) GetWithRespKey(resource, resourceId, responseKey string, params interface{}, retVal interface{}) error

func (*ZSHttpClient) GetWithSpec

func (cli *ZSHttpClient) GetWithSpec(resource, resourceId, spec, responseKey string, params interface{}, retVal interface{}) error

func (*ZSHttpClient) List

func (cli *ZSHttpClient) List(resource string, params *param.QueryParam, retVal interface{}) error

func (*ZSHttpClient) ListAll

func (cli *ZSHttpClient) ListAll(resource string, params *param.QueryParam, retVal interface{}) error

func (*ZSHttpClient) ListWithRespKey

func (cli *ZSHttpClient) ListWithRespKey(resource, responseKey string, params *param.QueryParam, retVal interface{}) error

func (*ZSHttpClient) LoadSession

func (cli *ZSHttpClient) LoadSession(sessionId string)

Valid when using account or user login authentication

func (*ZSHttpClient) Page

func (cli *ZSHttpClient) Page(resource string, params *param.QueryParam, retVal interface{}) (int, error)

func (*ZSHttpClient) PageWithKey

func (cli *ZSHttpClient) PageWithKey(resource, responseKey string, params *param.QueryParam, retVal interface{}) (int, error)

func (*ZSHttpClient) Post

func (cli *ZSHttpClient) Post(resource string, params interface{}, retVal interface{}) error

func (*ZSHttpClient) PostWithAsync

func (cli *ZSHttpClient) PostWithAsync(resource, responseKey string, params interface{}, retVal interface{}, async bool) (string, error)

func (*ZSHttpClient) PostWithRespKey

func (cli *ZSHttpClient) PostWithRespKey(resource, responseKey string, params interface{}, retVal interface{}) error

func (*ZSHttpClient) Put

func (cli *ZSHttpClient) Put(resource, resourceId string, params interface{}, retVal interface{}) error

func (*ZSHttpClient) PutWithAsync

func (cli *ZSHttpClient) PutWithAsync(resource, resourceId, spec, responseKey string, params interface{}, retVal interface{}, async bool) (string, error)

func (*ZSHttpClient) PutWithRespKey

func (cli *ZSHttpClient) PutWithRespKey(resource, resourceId, responseKey string, params interface{}, retVal interface{}) error

func (*ZSHttpClient) PutWithSpec

func (cli *ZSHttpClient) PutWithSpec(resource, resourceId, spec, responseKey string, params interface{}, retVal interface{}) error

func (*ZSHttpClient) Wait

func (cli *ZSHttpClient) Wait(location, responseKey string, retVal interface{}) error

Jump to

Keyboard shortcuts

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