Documentation
¶
Index ¶
- Constants
- type BaseCnsAlreadyRegisteredFault
- type BaseCnsBackingObjectDetails
- type BaseCnsBaseCreateSpec
- type BaseCnsEntityMetadata
- type BaseCnsFault
- type BaseCnsQueryFilter
- type BaseCnsVolumeInfo
- type BaseCnsVolumeOperationResult
- type BaseCnsVolumeRelocateSpec
- type BaseCnsVolumeSource
- type CnsAlreadyRegisteredFault
- type CnsAsyncQueryResult
- type CnsAttachVolume
- type CnsAttachVolumeRequestType
- type CnsAttachVolumeResponse
- type CnsBackingObjectDetails
- type CnsBaseCreateSpec
- type CnsBlockBackingDetails
- type CnsBlockCreateSpec
- type CnsBlockVolumeInfo
- type CnsBlockVolumeRelocateSpec
- type CnsClusterFlavor
- type CnsClusterType
- type CnsConfigureVolumeACLs
- type CnsConfigureVolumeACLsRequestType
- type CnsConfigureVolumeACLsResponse
- type CnsContainerCluster
- type CnsCreateSnapshots
- type CnsCreateSnapshotsRequestType
- type CnsCreateSnapshotsResponse
- type CnsCreateVolume
- type CnsCreateVolumeRequestType
- type CnsCreateVolumeResponse
- type CnsCursor
- type CnsDeleteSnapshots
- type CnsDeleteSnapshotsRequestType
- type CnsDeleteSnapshotsResponse
- type CnsDeleteVolume
- type CnsDeleteVolumeRequestType
- type CnsDeleteVolumeResponse
- type CnsDetachVolume
- type CnsDetachVolumeRequestType
- type CnsDetachVolumeResponse
- type CnsEntityMetadata
- type CnsExtendVolume
- type CnsExtendVolumeRequestType
- type CnsExtendVolumeResponse
- type CnsFault
- type CnsFileBackingDetails
- type CnsFileCreateSpec
- type CnsKubernetesEntityMetadata
- type CnsKubernetesEntityReference
- type CnsKubernetesEntityType
- type CnsKubernetesQueryFilter
- type CnsNFSAccessControlSpec
- type CnsNotRegisteredFault
- type CnsPlacementResult
- type CnsQueryAllVolume
- type CnsQueryAllVolumeRequestType
- type CnsQueryAllVolumeResponse
- type CnsQueryAsync
- type CnsQueryAsyncRequestType
- type CnsQueryAsyncResponse
- type CnsQueryFilter
- type CnsQueryResult
- type CnsQuerySelection
- type CnsQuerySelectionNameType
- type CnsQuerySnapshots
- type CnsQuerySnapshotsRequestType
- type CnsQuerySnapshotsResponse
- type CnsQueryVolume
- type CnsQueryVolumeInfo
- type CnsQueryVolumeInfoRequestType
- type CnsQueryVolumeInfoResponse
- type CnsQueryVolumeInfoResult
- type CnsQueryVolumeRequestType
- type CnsQueryVolumeResponse
- type CnsReconfigVolumePolicy
- type CnsReconfigVolumePolicyRequestType
- type CnsReconfigVolumePolicyResponse
- type CnsRelocateVolume
- type CnsRelocateVolumeRequestType
- type CnsRelocateVolumeResponse
- type CnsSnapshot
- type CnsSnapshotCreateResult
- type CnsSnapshotCreateSpec
- type CnsSnapshotCreatedFault
- type CnsSnapshotDeleteResult
- type CnsSnapshotDeleteSpec
- type CnsSnapshotId
- type CnsSnapshotNotFoundFault
- type CnsSnapshotOperationResult
- type CnsSnapshotQueryFilter
- type CnsSnapshotQueryResult
- type CnsSnapshotQueryResultEntry
- type CnsSnapshotQuerySpec
- type CnsSnapshotVolumeSource
- type CnsSyncDatastore
- type CnsSyncDatastoreRequestType
- type CnsSyncDatastoreResponse
- type CnsSyncVolume
- type CnsSyncVolumeMode
- type CnsSyncVolumeRequestType
- type CnsSyncVolumeResponse
- type CnsSyncVolumeSpec
- type CnsUnregisterTargetVolumeType
- type CnsUnregisterVolume
- type CnsUnregisterVolumeRequestType
- type CnsUnregisterVolumeResponse
- type CnsUnregisterVolumeSpec
- type CnsUpdateVolumeCrypto
- type CnsUpdateVolumeCryptoRequestType
- type CnsUpdateVolumeCryptoResponse
- type CnsUpdateVolumeMetadata
- type CnsUpdateVolumeMetadataRequestType
- type CnsUpdateVolumeMetadataResponse
- type CnsVSANFileCreateSpec
- type CnsVolume
- type CnsVolumeACLConfigureSpec
- type CnsVolumeAlreadyExistsFault
- type CnsVolumeAttachDetachSpec
- type CnsVolumeAttachResult
- type CnsVolumeBackingType
- type CnsVolumeCreateResult
- type CnsVolumeCreateSpec
- type CnsVolumeCryptoUpdateSpec
- type CnsVolumeExtendSpec
- type CnsVolumeId
- type CnsVolumeInfo
- type CnsVolumeMetadata
- type CnsVolumeMetadataUpdateSpec
- type CnsVolumeNotFoundFault
- type CnsVolumeOperationBatchResult
- type CnsVolumeOperationResult
- type CnsVolumePolicyReconfigSpec
- type CnsVolumeRelocateSpec
- type CnsVolumeSource
- type CnsVolumeType
- type CnsVsanFileShareBackingDetails
- type QuerySelectionNameType
Constants ¶
const ( CnsVolumeTypeBlock = CnsVolumeType("BLOCK") CnsVolumeTypeFile = CnsVolumeType("FILE") )
const ( CnsClusterFlavorVanilla = CnsClusterFlavor("VANILLA") CnsClusterFlavorWorkload = CnsClusterFlavor("WORKLOAD") CnsClusterFlavorGuest = CnsClusterFlavor("GUEST_CLUSTER") CnsClusterFlavorUnknown = CnsClusterFlavor("ClusterFlavor_Unknown") )
const ( QuerySelectionNameTypeVolumeType = QuerySelectionNameType("VOLUME_TYPE") QuerySelectionNameTypeVolumeName = QuerySelectionNameType("VOLUME_NAME") QuerySelectionNameTypeBackingObjectDetails = QuerySelectionNameType("BACKING_OBJECT_DETAILS") QuerySelectionNameTypeComplianceStatus = QuerySelectionNameType("COMPLIANCE_STATUS") QuerySelectionNameTypeDataStoreAccessibility = QuerySelectionNameType("DATASTORE_ACCESSIBILITY_STATUS") QuerySelectionNameTypeHealthStatus = QuerySelectionNameType("HEALTH_STATUS") QuerySelectionNameTypeDataStoreUrl = QuerySelectionNameType("DATASTORE_URL") QuerySelectionNameTypePolicyId = QuerySelectionNameType("POLICY_ID") )
const ( CnsKubernetesEntityTypePVC = CnsKubernetesEntityType("PERSISTENT_VOLUME_CLAIM") CnsKubernetesEntityTypePV = CnsKubernetesEntityType("PERSISTENT_VOLUME") CnsKubernetesEntityTypePOD = CnsKubernetesEntityType("POD") )
const ( CnsQuerySelectionName_VOLUME_NAME = CnsQuerySelectionNameType("VOLUME_NAME") CnsQuerySelectionName_VOLUME_TYPE = CnsQuerySelectionNameType("VOLUME_TYPE") CnsQuerySelectionName_BACKING_OBJECT_DETAILS = CnsQuerySelectionNameType("BACKING_OBJECT_DETAILS") CnsQuerySelectionName_COMPLIANCE_STATUS = CnsQuerySelectionNameType("COMPLIANCE_STATUS") CnsQuerySelectionName_DATASTORE_ACCESSIBILITY_STATUS = CnsQuerySelectionNameType("DATASTORE_ACCESSIBILITY_STATUS") CnsQuerySelectionName_HEALTH_STATUS = CnsQuerySelectionNameType("HEALTH_STATUS") CnsQuerySelectionName_DATASTORE_URL = CnsQuerySelectionNameType("DATASTORE_URL") CnsQuerySelectionName_POLICY_ID = CnsQuerySelectionNameType("POLICY_ID") )
const ( CnsUnregisterTargetVolumeTypeFCD = CnsUnregisterTargetVolumeType("FCD") CnsUnregisterTargetVolumeTypeLEGACY_DISK = CnsUnregisterTargetVolumeType("LEGACY_DISK") )
const ( CnsVolumeBackingTypeFlatVer1BackingInfo = CnsVolumeBackingType("FlatVer1BackingInfo") CnsVolumeBackingTypeFlatVer2BackingInfo = CnsVolumeBackingType("FlatVer2BackingInfo") CnsVolumeBackingTypeSparseVer1BackingInfo = CnsVolumeBackingType("SparseVer1BackingInfo") CnsVolumeBackingTypeSparseVer2BackingInfo = CnsVolumeBackingType("SparseVer2BackingInfo") CnsVolumeBackingTypeRawDiskMappingVer1BackingInfo = CnsVolumeBackingType("RawDiskMappingVer1BackingInfo") CnsVolumeBackingTypeSeSparseBackingInfo = CnsVolumeBackingType("SeSparseBackingInfo") CnsVolumeBackingTypeLocalPMemBackingInfo = CnsVolumeBackingType("LocalPMemBackingInfo") )
const (
CnsClusterTypeKubernetes = CnsClusterType("KUBERNETES")
)
const (
CnsSyncVolumeModeSPACE_USAGE = CnsSyncVolumeMode("SPACE_USAGE")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCnsAlreadyRegisteredFault ¶ added in v0.23.0
type BaseCnsAlreadyRegisteredFault interface {
GetCnsAlreadyRegisteredFault() *CnsAlreadyRegisteredFault
}
type BaseCnsBackingObjectDetails ¶
type BaseCnsBackingObjectDetails interface {
GetCnsBackingObjectDetails() *CnsBackingObjectDetails
}
type BaseCnsBaseCreateSpec ¶ added in v0.23.0
type BaseCnsBaseCreateSpec interface {
GetCnsBaseCreateSpec() *CnsBaseCreateSpec
}
type BaseCnsEntityMetadata ¶
type BaseCnsEntityMetadata interface {
GetCnsEntityMetadata() *CnsEntityMetadata
}
type BaseCnsFault ¶
type BaseCnsFault interface {
GetCnsFault() *CnsFault
}
type BaseCnsQueryFilter ¶ added in v0.52.0
type BaseCnsQueryFilter interface {
GetCnsQueryFilter() *CnsQueryFilter
}
type BaseCnsVolumeInfo ¶ added in v0.23.0
type BaseCnsVolumeInfo interface {
GetCnsVolumeInfo() *CnsVolumeInfo
}
type BaseCnsVolumeOperationResult ¶
type BaseCnsVolumeOperationResult interface {
GetCnsVolumeOperationResult() *CnsVolumeOperationResult
}
type BaseCnsVolumeRelocateSpec ¶ added in v0.24.0
type BaseCnsVolumeRelocateSpec interface {
GetCnsVolumeRelocateSpec() CnsVolumeRelocateSpec
}
type BaseCnsVolumeSource ¶ added in v0.26.0
type BaseCnsVolumeSource interface {
GetCnsVolumeSource() *CnsVolumeSource
}
type CnsAlreadyRegisteredFault ¶ added in v0.23.0
type CnsAlreadyRegisteredFault struct {
CnsFault `xml:"fault,typeattr"`
VolumeId CnsVolumeId `xml:"volumeId,omitempty" json:"volumeId"`
}
func (*CnsAlreadyRegisteredFault) GetCnsAlreadyRegisteredFault ¶ added in v0.23.0
func (b *CnsAlreadyRegisteredFault) GetCnsAlreadyRegisteredFault() *CnsAlreadyRegisteredFault
type CnsAsyncQueryResult ¶ added in v0.26.0
type CnsAsyncQueryResult struct {
CnsVolumeOperationResult
QueryResult CnsQueryResult `xml:"queryResult,omitempty" json:"queryResult"`
}
type CnsAttachVolume ¶
type CnsAttachVolume CnsAttachVolumeRequestType
type CnsAttachVolumeRequestType ¶
type CnsAttachVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
AttachSpecs []CnsVolumeAttachDetachSpec `xml:"attachSpecs,omitempty" json:"attachSpecs"`
}
type CnsAttachVolumeResponse ¶
type CnsAttachVolumeResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsBackingObjectDetails ¶
type CnsBackingObjectDetails struct {
types.DynamicData
CapacityInMb int64 `xml:"capacityInMb,omitempty" json:"capacityInMb"`
}
func (*CnsBackingObjectDetails) GetCnsBackingObjectDetails ¶
func (b *CnsBackingObjectDetails) GetCnsBackingObjectDetails() *CnsBackingObjectDetails
type CnsBaseCreateSpec ¶ added in v0.23.0
type CnsBaseCreateSpec struct {
types.DynamicData
}
func (*CnsBaseCreateSpec) GetCnsBaseCreateSpec ¶ added in v0.23.0
func (b *CnsBaseCreateSpec) GetCnsBaseCreateSpec() *CnsBaseCreateSpec
type CnsBlockBackingDetails ¶
type CnsBlockBackingDetails struct {
CnsBackingObjectDetails
BackingDiskId string `xml:"backingDiskId,omitempty" json:"backingDiskId"`
BackingDiskUrlPath string `xml:"backingDiskUrlPath,omitempty" json:"backingDiskUrlPath"`
BackingDiskObjectId string `xml:"backingDiskObjectId,omitempty" json:"backingDiskObjectId"`
AggregatedSnapshotCapacityInMb int64 `xml:"aggregatedSnapshotCapacityInMb,omitempty" json:"aggregatedSnapshotCapacityInMb"`
BackingDiskPath string `xml:"backingDiskPath,omitempty" json:"backingDiskPath"`
}
type CnsBlockCreateSpec ¶ added in v0.46.0
type CnsBlockCreateSpec struct {
CnsBaseCreateSpec
// Crypto specifies the encryption settings for the volume to be created.
// Works with block volumes only.
CryptoSpec types.BaseCryptoSpec `xml:"cryptoSpec,omitempty,typeattr" json:"cryptoSpec"`
}
CnsBlockCreateSpec is the specification for creating block volumes.
type CnsBlockVolumeInfo ¶ added in v0.23.0
type CnsBlockVolumeInfo struct {
CnsVolumeInfo
VStorageObject types.VStorageObject `xml:"vStorageObject" json:"vStorageObject"`
}
type CnsBlockVolumeRelocateSpec ¶ added in v0.24.0
type CnsBlockVolumeRelocateSpec struct {
CnsVolumeRelocateSpec
}
func NewCnsBlockVolumeRelocateSpec ¶ added in v0.24.0
func NewCnsBlockVolumeRelocateSpec(volumeId string, datastore types.ManagedObjectReference, profile ...types.BaseVirtualMachineProfileSpec) CnsBlockVolumeRelocateSpec
type CnsClusterFlavor ¶ added in v0.23.0
type CnsClusterFlavor string
type CnsClusterType ¶
type CnsClusterType string
type CnsConfigureVolumeACLs ¶ added in v0.24.0
type CnsConfigureVolumeACLs CnsConfigureVolumeACLsRequestType
type CnsConfigureVolumeACLsRequestType ¶ added in v0.24.0
type CnsConfigureVolumeACLsRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
ACLConfigSpecs []CnsVolumeACLConfigureSpec `xml:"ACLConfigSpecs" json:"aclConfigSpecs"`
}
type CnsConfigureVolumeACLsResponse ¶ added in v0.24.0
type CnsConfigureVolumeACLsResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsContainerCluster ¶
type CnsContainerCluster struct {
types.DynamicData
ClusterType string `xml:"clusterType" json:"clusterType"`
ClusterId string `xml:"clusterId" json:"clusterId"`
VSphereUser string `xml:"vSphereUser" json:"vSphereUser"`
ClusterFlavor string `xml:"clusterFlavor,omitempty" json:"clusterFlavor"`
ClusterDistribution string `xml:"clusterDistribution,omitempty" json:"clusterDistribution"`
Delete bool `xml:"delete,omitempty" json:"delete"`
}
type CnsCreateSnapshots ¶ added in v0.26.0
type CnsCreateSnapshots CnsCreateSnapshotsRequestType
type CnsCreateSnapshotsRequestType ¶ added in v0.26.0
type CnsCreateSnapshotsRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
SnapshotSpecs []CnsSnapshotCreateSpec `xml:"snapshotSpecs,omitempty" json:"snapshotSpecs"`
}
type CnsCreateSnapshotsResponse ¶ added in v0.26.0
type CnsCreateSnapshotsResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsCreateVolume ¶
type CnsCreateVolume CnsCreateVolumeRequestType
type CnsCreateVolumeRequestType ¶
type CnsCreateVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
CreateSpecs []CnsVolumeCreateSpec `xml:"createSpecs,omitempty" json:"createSpecs"`
}
type CnsCreateVolumeResponse ¶
type CnsCreateVolumeResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsCursor ¶
type CnsCursor struct {
types.DynamicData
Offset int64 `xml:"offset" json:"offset"`
Limit int64 `xml:"limit" json:"limit"`
TotalRecords int64 `xml:"totalRecords,omitempty" json:"totalRecords"`
}
type CnsDeleteSnapshots ¶ added in v0.26.0
type CnsDeleteSnapshots CnsDeleteSnapshotsRequestType
type CnsDeleteSnapshotsRequestType ¶ added in v0.26.0
type CnsDeleteSnapshotsRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
SnapshotDeleteSpecs []CnsSnapshotDeleteSpec `xml:"snapshotDeleteSpecs,omitempty" json:"snapshotDeleteSpecs"`
}
type CnsDeleteSnapshotsResponse ¶ added in v0.26.0
type CnsDeleteSnapshotsResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsDeleteVolume ¶
type CnsDeleteVolume CnsDeleteVolumeRequestType
type CnsDeleteVolumeRequestType ¶
type CnsDeleteVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
VolumeIds []CnsVolumeId `xml:"volumeIds" json:"volumeIds"`
DeleteDisk bool `xml:"deleteDisk" json:"deleteDisk"`
}
type CnsDeleteVolumeResponse ¶
type CnsDeleteVolumeResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsDetachVolume ¶
type CnsDetachVolume CnsDetachVolumeRequestType
type CnsDetachVolumeRequestType ¶
type CnsDetachVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
DetachSpecs []CnsVolumeAttachDetachSpec `xml:"detachSpecs,omitempty" json:"detachSpecs"`
}
type CnsDetachVolumeResponse ¶
type CnsDetachVolumeResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsEntityMetadata ¶
type CnsEntityMetadata struct {
types.DynamicData
EntityName string `xml:"entityName" json:"entityName"`
Labels []types.KeyValue `xml:"labels,omitempty" json:"labels"`
Delete bool `xml:"delete,omitempty" json:"delete"`
ClusterID string `xml:"clusterId,omitempty" json:"clusterID"`
}
func (*CnsEntityMetadata) GetCnsEntityMetadata ¶
func (b *CnsEntityMetadata) GetCnsEntityMetadata() *CnsEntityMetadata
type CnsExtendVolume ¶ added in v0.23.0
type CnsExtendVolume CnsExtendVolumeRequestType
type CnsExtendVolumeRequestType ¶ added in v0.23.0
type CnsExtendVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
ExtendSpecs []CnsVolumeExtendSpec `xml:"extendSpecs,omitempty" json:"extendSpecs"`
}
type CnsExtendVolumeResponse ¶ added in v0.23.0
type CnsExtendVolumeResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsFault ¶
type CnsFault struct {
types.MethodFault
Reason string `xml:"reason,omitempty" json:"reason"`
}
func (*CnsFault) GetCnsFault ¶
type CnsFileBackingDetails ¶ added in v0.23.0
type CnsFileBackingDetails struct {
CnsBackingObjectDetails
BackingFileId string `xml:"backingFileId,omitempty" json:"backingFileId"`
}
type CnsFileCreateSpec ¶ added in v0.23.0
type CnsFileCreateSpec struct {
CnsBaseCreateSpec
}
type CnsKubernetesEntityMetadata ¶
type CnsKubernetesEntityMetadata struct {
CnsEntityMetadata
EntityType string `xml:"entityType" json:"entityType"`
Namespace string `xml:"namespace,omitempty" json:"namespace"`
ReferredEntity []CnsKubernetesEntityReference `xml:"referredEntity,omitempty" json:"referredEntity"`
}
type CnsKubernetesEntityReference ¶ added in v0.23.0
type CnsKubernetesEntityType ¶
type CnsKubernetesEntityType string
type CnsKubernetesQueryFilter ¶ added in v0.52.0
type CnsKubernetesQueryFilter struct {
CnsQueryFilter
Namespaces []string `xml:"namespaces,omitempty" json:"namespaces,omitempty"`
PodNames []string `xml:"podNames,omitempty" json:"podNames,omitempty"`
PvcNames []string `xml:"pvcNames,omitempty" json:"pvcNames,omitempty"`
PvNames []string `xml:"pvNames,omitempty" json:"pvNames,omitempty"`
}
CnsKubernetesQueryFilter enables querying CNS volumes using Kubernetes metadata such as namespaces, pod names, PVC names, and PV names.
- Values in the PodNames, PvcNames, and PvNames lists are treated as OR conditions.
- Values in the Namespaces list are also treated as OR conditions.
- When PodNames, PvcNames, or PvNames are specified along with Namespaces, the filter applies an AND condition — i.e., the pod, PVC must belong to the specified namespace.
- When only Namespaces are provided (without any pod, PVC names), all volumes associated with those namespaces will be returned.
This allows flexible volume queries such as: - Listing all volumes in one or more namespaces. - Querying volumes associated with specific PVCs or pods within a given namespace. - Finding volumes by specific PV names within specified namespaces.
func (*CnsKubernetesQueryFilter) GetCnsQueryFilter ¶ added in v0.52.0
func (f *CnsKubernetesQueryFilter) GetCnsQueryFilter() *CnsQueryFilter
type CnsNFSAccessControlSpec ¶ added in v0.24.1
type CnsNFSAccessControlSpec struct {
types.DynamicData
Permission []vsanfstypes.VsanFileShareNetPermission `xml:"netPermission,omitempty,typeattr" json:"permission"`
Delete bool `xml:"delete,omitempty" json:"delete"`
}
type CnsNotRegisteredFault ¶ added in v0.53.0
type CnsNotRegisteredFault struct {
CnsFault
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
}
type CnsPlacementResult ¶ added in v0.24.0
type CnsPlacementResult struct {
Datastore types.ManagedObjectReference `xml:"datastore,omitempty" json:"datastore"`
PlacementFaults []*types.LocalizedMethodFault `xml:"placementFaults,omitempty" json:"placementFaults"`
Clusters []types.ManagedObjectReference `xml:"clusters,omitempty" json:"clusters"`
}
type CnsQueryAllVolume ¶
type CnsQueryAllVolume CnsQueryAllVolumeRequestType
type CnsQueryAllVolumeRequestType ¶
type CnsQueryAllVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
Filter CnsQueryFilter `xml:"filter" json:"filter"`
Selection CnsQuerySelection `xml:"selection" json:"selection"`
}
type CnsQueryAllVolumeResponse ¶
type CnsQueryAllVolumeResponse struct {
Returnval CnsQueryResult `xml:"returnval" json:"returnval"`
}
type CnsQueryAsync ¶ added in v0.26.0
type CnsQueryAsync CnsQueryAsyncRequestType
type CnsQueryAsyncRequestType ¶ added in v0.26.0
type CnsQueryAsyncRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
Filter CnsQueryFilter `xml:"filter" json:"filter"`
Selection *CnsQuerySelection `xml:"selection,omitempty" json:"selection"`
}
type CnsQueryAsyncResponse ¶ added in v0.26.0
type CnsQueryAsyncResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsQueryFilter ¶
type CnsQueryFilter struct {
types.DynamicData
VolumeIds []CnsVolumeId `xml:"volumeIds,omitempty" json:"volumeIds"`
Names []string `xml:"names,omitempty" json:"names"`
ContainerClusterIds []string `xml:"containerClusterIds,omitempty" json:"containerClusterIds"`
StoragePolicyId string `xml:"storagePolicyId,omitempty" json:"storagePolicyId"`
Datastores []types.ManagedObjectReference `xml:"datastores,omitempty" json:"datastores"`
Labels []types.KeyValue `xml:"labels,omitempty" json:"labels"`
ComplianceStatus string `xml:"complianceStatus,omitempty" json:"complianceStatus"`
DatastoreAccessibilityStatus string `xml:"datastoreAccessibilityStatus,omitempty" json:"datastoreAccessibilityStatus"`
Cursor *CnsCursor `xml:"cursor,omitempty" json:"cursor"`
HealthStatus string `xml:"healthStatus,omitempty" json:"healthStatus"`
}
func (*CnsQueryFilter) GetCnsQueryFilter ¶ added in v0.52.0
func (f *CnsQueryFilter) GetCnsQueryFilter() *CnsQueryFilter
type CnsQueryResult ¶
type CnsQueryResult struct {
types.DynamicData
Volumes []CnsVolume `xml:"volumes,omitempty" json:"volumes"`
Cursor CnsCursor `xml:"cursor" json:"cursor"`
}
type CnsQuerySelection ¶
type CnsQuerySelection struct {
types.DynamicData
Names []string `xml:"names,omitempty" json:"names"`
}
type CnsQuerySelectionNameType ¶
type CnsQuerySelectionNameType string
type CnsQuerySnapshots ¶ added in v0.26.1
type CnsQuerySnapshots CnsQuerySnapshotsRequestType
type CnsQuerySnapshotsRequestType ¶ added in v0.26.1
type CnsQuerySnapshotsRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
SnapshotQueryFilter CnsSnapshotQueryFilter `xml:"snapshotQueryFilter" json:"snapshotQueryFilter"`
}
type CnsQuerySnapshotsResponse ¶ added in v0.26.1
type CnsQuerySnapshotsResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsQueryVolume ¶
type CnsQueryVolume CnsQueryVolumeRequestType
type CnsQueryVolumeInfo ¶ added in v0.23.0
type CnsQueryVolumeInfo CnsQueryVolumeInfoRequestType
type CnsQueryVolumeInfoRequestType ¶ added in v0.23.0
type CnsQueryVolumeInfoRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
VolumeIds []CnsVolumeId `xml:"volumes" json:"volumeIds"`
}
type CnsQueryVolumeInfoResponse ¶ added in v0.23.0
type CnsQueryVolumeInfoResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsQueryVolumeInfoResult ¶ added in v0.23.0
type CnsQueryVolumeInfoResult struct {
CnsVolumeOperationResult
VolumeInfo BaseCnsVolumeInfo `xml:"volumeInfo,typeattr,omitempty" json:"volumeInfo"`
}
type CnsQueryVolumeRequestType ¶
type CnsQueryVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
Filter BaseCnsQueryFilter `xml:"filter,typeattr" json:"filter"`
}
type CnsQueryVolumeResponse ¶
type CnsQueryVolumeResponse struct {
Returnval CnsQueryResult `xml:"returnval" json:"returnval"`
}
type CnsReconfigVolumePolicy ¶ added in v0.30.0
type CnsReconfigVolumePolicy CnsReconfigVolumePolicyRequestType
type CnsReconfigVolumePolicyRequestType ¶ added in v0.30.0
type CnsReconfigVolumePolicyRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
VolumePolicyReconfigSpecs []CnsVolumePolicyReconfigSpec `xml:"volumePolicyReconfigSpecs,omitempty" json:"volumePolicyReconfigSpecs"`
}
type CnsReconfigVolumePolicyResponse ¶ added in v0.30.0
type CnsReconfigVolumePolicyResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsRelocateVolume ¶ added in v0.24.0
type CnsRelocateVolume CnsRelocateVolumeRequestType
type CnsRelocateVolumeRequestType ¶ added in v0.24.0
type CnsRelocateVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
RelocateSpecs []BaseCnsVolumeRelocateSpec `xml:"relocateSpecs,typeattr" json:"relocateSpecs"`
}
type CnsRelocateVolumeResponse ¶ added in v0.24.0
type CnsRelocateVolumeResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsSnapshot ¶ added in v0.26.0
type CnsSnapshot struct {
types.DynamicData
SnapshotId CnsSnapshotId `xml:"snapshotId" json:"snapshotId"`
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Description string `xml:"description,omitempty" json:"description"`
CreateTime time.Time `xml:"createTime" json:"createTime"`
}
type CnsSnapshotCreateResult ¶ added in v0.26.0
type CnsSnapshotCreateResult struct {
CnsSnapshotOperationResult
Snapshot CnsSnapshot `xml:"snapshot,omitempty" json:"snapshot"`
AggregatedSnapshotCapacityInMb int64 `xml:"aggregatedSnapshotCapacityInMb,omitempty" json:"aggregatedSnapshotCapacityInMb"`
}
type CnsSnapshotCreateSpec ¶ added in v0.26.0
type CnsSnapshotCreateSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Description string `xml:"description" json:"description"`
SnapshotId *CnsSnapshotId `xml:"snapshotId,omitempty" json:"snapshotId"`
}
type CnsSnapshotCreatedFault ¶ added in v0.34.1
type CnsSnapshotCreatedFault struct {
CnsFault
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
SnapshotId CnsSnapshotId `xml:"SnapshotId" json:"snapshotId"`
Datastore types.ManagedObjectReference `xml:"datastore" json:"datastore"`
}
type CnsSnapshotDeleteResult ¶ added in v0.26.0
type CnsSnapshotDeleteResult struct {
CnsSnapshotOperationResult
SnapshotId CnsSnapshotId `xml:"snapshotId,omitempty" json:"snapshotId"`
AggregatedSnapshotCapacityInMb int64 `xml:"aggregatedSnapshotCapacityInMb,omitempty" json:"aggregatedSnapshotCapacityInMb"`
}
type CnsSnapshotDeleteSpec ¶ added in v0.26.0
type CnsSnapshotDeleteSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
SnapshotId CnsSnapshotId `xml:"snapshotId" json:"snapshotId"`
}
type CnsSnapshotId ¶ added in v0.26.0
type CnsSnapshotId struct {
types.DynamicData
Id string `xml:"id" json:"id"`
}
type CnsSnapshotNotFoundFault ¶ added in v0.26.1
type CnsSnapshotNotFoundFault struct {
CnsFault
VolumeId CnsVolumeId `xml:"volumeId,omitempty" json:"volumeId"`
SnapshotId CnsSnapshotId `xml:"SnapshotId" json:"snapshotId"`
}
type CnsSnapshotOperationResult ¶ added in v0.26.0
type CnsSnapshotOperationResult struct {
CnsVolumeOperationResult
}
type CnsSnapshotQueryFilter ¶ added in v0.26.1
type CnsSnapshotQueryFilter struct {
types.DynamicData
SnapshotQuerySpecs []CnsSnapshotQuerySpec `xml:"snapshotQuerySpecs,omitempty" json:"snapshotQuerySpecs"`
Cursor *CnsCursor `xml:"cursor,omitempty" json:"cursor"`
}
type CnsSnapshotQueryResult ¶ added in v0.26.1
type CnsSnapshotQueryResult struct {
types.DynamicData
Entries []CnsSnapshotQueryResultEntry `xml:"entries,omitempty" json:"entries"`
Cursor CnsCursor `xml:"cursor" json:"cursor"`
}
type CnsSnapshotQueryResultEntry ¶ added in v0.26.1
type CnsSnapshotQueryResultEntry struct {
types.DynamicData
Snapshot CnsSnapshot `xml:"snapshot,omitempty" json:"snapshot"`
Error *types.LocalizedMethodFault `xml:"error,omitempty" json:"error"`
}
type CnsSnapshotQuerySpec ¶ added in v0.26.1
type CnsSnapshotQuerySpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
SnapshotId *CnsSnapshotId `xml:"snapshotId,omitempty" json:"snapshotId"`
}
type CnsSnapshotVolumeSource ¶ added in v0.26.0
type CnsSnapshotVolumeSource struct {
CnsVolumeSource
VolumeId CnsVolumeId `xml:"volumeId,omitempty" json:"volumeId"`
SnapshotId CnsSnapshotId `xml:"snapshotId,omitempty" json:"snapshotId"`
LinkedClone bool `xml:"linkedClone,omitempty" json:"linkedClone"`
}
type CnsSyncDatastore ¶ added in v0.31.0
type CnsSyncDatastore CnsSyncDatastoreRequestType
type CnsSyncDatastoreRequestType ¶ added in v0.31.0
type CnsSyncDatastoreRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
DatastoreUrl string `xml:"datastoreUrl,omitempty" json:"datastoreUrl"`
FullSync *bool `xml:"fullSync" json:"fullSync"`
}
type CnsSyncDatastoreResponse ¶ added in v0.31.0
type CnsSyncDatastoreResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsSyncVolume ¶ added in v0.52.0
type CnsSyncVolume CnsSyncVolumeRequestType
type CnsSyncVolumeMode ¶ added in v0.52.0
type CnsSyncVolumeMode string
type CnsSyncVolumeRequestType ¶ added in v0.52.0
type CnsSyncVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
SyncSpecs []CnsSyncVolumeSpec `xml:"syncSpecs,omitempty" json:"syncSpecs,omitempty"`
}
type CnsSyncVolumeResponse ¶ added in v0.52.0
type CnsSyncVolumeResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsSyncVolumeSpec ¶ added in v0.52.0
type CnsSyncVolumeSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Datastore *types.ManagedObjectReference `xml:"datastore,omitempty" json:"datastore,omitempty"`
SyncMode []string `xml:"syncMode,omitempty" json:"syncMode,omitempty"`
}
type CnsUnregisterTargetVolumeType ¶ added in v0.52.0
type CnsUnregisterTargetVolumeType string
type CnsUnregisterVolume ¶ added in v0.52.0
type CnsUnregisterVolume CnsUnregisterVolumeRequestType
type CnsUnregisterVolumeRequestType ¶ added in v0.52.0
type CnsUnregisterVolumeRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
UnregisterSpec []CnsUnregisterVolumeSpec `xml:"unregisterSpec,omitempty" json:"UnregisterSpec,omitempty"`
}
type CnsUnregisterVolumeResponse ¶ added in v0.52.0
type CnsUnregisterVolumeResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsUnregisterVolumeSpec ¶ added in v0.52.0
type CnsUnregisterVolumeSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
TargetVolumeType string `xml:"targetVolumeType" json:"targetVolumeType"`
}
type CnsUpdateVolumeCrypto ¶ added in v0.46.1
type CnsUpdateVolumeCrypto CnsUpdateVolumeCryptoRequestType
type CnsUpdateVolumeCryptoRequestType ¶ added in v0.46.1
type CnsUpdateVolumeCryptoRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
UpdateSpecs []CnsVolumeCryptoUpdateSpec `xml:"updateSpecs,omitempty" json:"updateSpecs"`
}
type CnsUpdateVolumeCryptoResponse ¶ added in v0.46.1
type CnsUpdateVolumeCryptoResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsUpdateVolumeMetadata ¶
type CnsUpdateVolumeMetadata CnsUpdateVolumeMetadataRequestType
type CnsUpdateVolumeMetadataRequestType ¶
type CnsUpdateVolumeMetadataRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"-"`
UpdateSpecs []CnsVolumeMetadataUpdateSpec `xml:"updateSpecs,omitempty" json:"updateSpecs"`
}
type CnsUpdateVolumeMetadataResponse ¶
type CnsUpdateVolumeMetadataResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type CnsVSANFileCreateSpec ¶ added in v0.23.0
type CnsVSANFileCreateSpec struct {
CnsFileCreateSpec
SoftQuotaInMb int64 `xml:"softQuotaInMb,omitempty" json:"softQuotaInMb"`
Permission []vsanfstypes.VsanFileShareNetPermission `xml:"permission,omitempty,typeattr" json:"permission"`
}
type CnsVolume ¶
type CnsVolume struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
DatastoreUrl string `xml:"datastoreUrl,omitempty" json:"datastoreUrl"`
Name string `xml:"name,omitempty" json:"name"`
VolumeType string `xml:"volumeType,omitempty" json:"volumeType"`
StoragePolicyId string `xml:"storagePolicyId,omitempty" json:"storagePolicyId"`
Metadata CnsVolumeMetadata `xml:"metadata,omitempty" json:"metadata"`
BackingObjectDetails BaseCnsBackingObjectDetails `xml:"backingObjectDetails,omitempty" json:"backingObjectDetails"`
ComplianceStatus string `xml:"complianceStatus,omitempty" json:"complianceStatus"`
DatastoreAccessibilityStatus string `xml:"datastoreAccessibilityStatus,omitempty" json:"datastoreAccessibilityStatus"`
HealthStatus string `xml:"healthStatus,omitempty" json:"healthStatus"`
}
type CnsVolumeACLConfigureSpec ¶ added in v0.24.0
type CnsVolumeACLConfigureSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
AccessControlSpecList []CnsNFSAccessControlSpec `xml:"accessControlSpecList,typeattr" json:"accessControlSpecList"`
}
type CnsVolumeAlreadyExistsFault ¶ added in v0.52.0
type CnsVolumeAlreadyExistsFault struct {
CnsFault
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Datastore types.ManagedObjectReference `xml:"datastore,omitempty" json:"datastore"`
}
type CnsVolumeAttachDetachSpec ¶
type CnsVolumeAttachDetachSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Vm types.ManagedObjectReference `xml:"vm" json:"vm"`
DiskMode string `xml:"diskMode,omitempty" json:"diskMode"`
Sharing string `xml:"sharing,omitempty" json:"sharing"`
ControllerKey *int32 `xml:"controllerKey,omitempty" json:"controllerKey"`
UnitNumber *int32 `xml:"unitNumber,omitempty" json:"unitNumber"`
BackingTypeName CnsVolumeBackingType `xml:"backingTypeName,omitempty" json:"backingTypeName"`
VolumeEncrypted *bool `xml:"volumeEncrypted,omitempty" json:"volumeEncrypted"`
}
type CnsVolumeAttachResult ¶
type CnsVolumeAttachResult struct {
CnsVolumeOperationResult
DiskUUID string `xml:"diskUUID,omitempty" json:"diskUUID"`
}
type CnsVolumeBackingType ¶ added in v0.53.0
type CnsVolumeBackingType string
CnsVolumeBackingType enumerates types of backing for batch attach operations. These values correspond to VirtualDevice.FileBackingInfo subclasses.
type CnsVolumeCreateResult ¶
type CnsVolumeCreateResult struct {
CnsVolumeOperationResult
Name string `xml:"name,omitempty" json:"name"`
PlacementResults []CnsPlacementResult `xml:"placementResults,omitempty" json:"placementResults"`
}
type CnsVolumeCreateSpec ¶
type CnsVolumeCreateSpec struct {
types.DynamicData
Name string `xml:"name" json:"name"`
VolumeType string `xml:"volumeType" json:"volumeType"`
VolumeId *CnsVolumeId `xml:"volumeId,omitempty" json:"volumeId"`
Datastores []types.ManagedObjectReference `xml:"datastores,omitempty" json:"datastores"`
Metadata CnsVolumeMetadata `xml:"metadata,omitempty" json:"metadata"`
BackingObjectDetails BaseCnsBackingObjectDetails `xml:"backingObjectDetails,typeattr" json:"backingObjectDetails"`
Profile []types.BaseVirtualMachineProfileSpec `xml:"profile,omitempty,typeattr" json:"profile"`
ActiveClusters []types.ManagedObjectReference `xml:"activeClusters,omitempty,typeattr" json:"activeClusters"`
CreateSpec BaseCnsBaseCreateSpec `xml:"createSpec,omitempty,typeattr" json:"createSpec"`
VolumeSource BaseCnsVolumeSource `xml:"volumeSource,omitempty,typeattr" json:"volumeSource"`
}
type CnsVolumeCryptoUpdateSpec ¶ added in v0.46.1
type CnsVolumeCryptoUpdateSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Profile []types.BaseVirtualMachineProfileSpec `xml:"profile,omitempty,typeattr" json:"profile"`
DisksCrypto *types.DiskCryptoSpec `xml:"disksCrypto,omitempty" json:"disksCrypto"`
}
CnsVolumeCryptoUpdateSpec is the specification for volume crypto update operation.
type CnsVolumeExtendSpec ¶ added in v0.23.0
type CnsVolumeExtendSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
CapacityInMb int64 `xml:"capacityInMb" json:"capacityInMb"`
}
type CnsVolumeId ¶
type CnsVolumeId struct {
types.DynamicData
Id string `xml:"id" json:"id"`
}
type CnsVolumeInfo ¶ added in v0.23.0
type CnsVolumeInfo struct {
types.DynamicData
}
func (*CnsVolumeInfo) GetCnsVolumeInfo ¶ added in v0.23.0
func (b *CnsVolumeInfo) GetCnsVolumeInfo() *CnsVolumeInfo
type CnsVolumeMetadata ¶
type CnsVolumeMetadata struct {
types.DynamicData
ContainerCluster CnsContainerCluster `xml:"containerCluster" json:"containerCluster"`
EntityMetadata []BaseCnsEntityMetadata `xml:"entityMetadata,typeattr,omitempty" json:"entityMetadata"`
ContainerClusterArray []CnsContainerCluster `xml:"containerClusterArray,omitempty" json:"containerClusterArray"`
}
type CnsVolumeMetadataUpdateSpec ¶
type CnsVolumeMetadataUpdateSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Metadata CnsVolumeMetadata `xml:"metadata,omitempty" json:"metadata"`
}
type CnsVolumeNotFoundFault ¶ added in v0.26.0
type CnsVolumeNotFoundFault struct {
CnsFault
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
}
type CnsVolumeOperationBatchResult ¶
type CnsVolumeOperationBatchResult struct {
types.DynamicData
VolumeResults []BaseCnsVolumeOperationResult `xml:"volumeResults,omitempty,typeattr" json:"volumeResults"`
}
type CnsVolumeOperationResult ¶
type CnsVolumeOperationResult struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId,omitempty" json:"volumeId"`
Fault *types.LocalizedMethodFault `xml:"fault,omitempty" json:"fault"`
}
func (*CnsVolumeOperationResult) GetCnsVolumeOperationResult ¶
func (b *CnsVolumeOperationResult) GetCnsVolumeOperationResult() *CnsVolumeOperationResult
type CnsVolumePolicyReconfigSpec ¶ added in v0.30.0
type CnsVolumePolicyReconfigSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Profile []types.BaseVirtualMachineProfileSpec `xml:"profile,omitempty,typeattr" json:"profile"`
}
type CnsVolumeRelocateSpec ¶ added in v0.24.0
type CnsVolumeRelocateSpec struct {
types.DynamicData
VolumeId CnsVolumeId `xml:"volumeId" json:"volumeId"`
Datastore types.ManagedObjectReference `xml:"datastore" json:"datastore"`
Profile []types.BaseVirtualMachineProfileSpec `xml:"profile,omitempty,typeattr" json:"profile"`
ServiceLocator *types.ServiceLocator `xml:"serviceLocator,omitempty" json:"serviceLocator"`
}
func (CnsVolumeRelocateSpec) GetCnsVolumeRelocateSpec ¶ added in v0.24.0
func (s CnsVolumeRelocateSpec) GetCnsVolumeRelocateSpec() CnsVolumeRelocateSpec
type CnsVolumeSource ¶ added in v0.26.0
type CnsVolumeSource struct {
types.DynamicData
}
func (*CnsVolumeSource) GetCnsVolumeSource ¶ added in v0.26.0
func (b *CnsVolumeSource) GetCnsVolumeSource() *CnsVolumeSource
type CnsVolumeType ¶
type CnsVolumeType string
type CnsVsanFileShareBackingDetails ¶ added in v0.23.0
type CnsVsanFileShareBackingDetails struct {
}
type QuerySelectionNameType ¶
type QuerySelectionNameType string