Skip to main content

VsanXvcQuerySpec

Struct VsanXvcQuerySpec 

Source
pub struct VsanXvcQuerySpec {
    pub object_model: Option<String>,
    pub properties: Option<Vec<String>>,
    pub filter: Option<VsanXvcQueryFilter>,
    pub offset: Option<i32>,
    pub limit: Option<i32>,
    pub return_total_count: Option<bool>,
}
Expand description

A query which encapsulates a request for specific object model.

It supports filtering the object model’s data to return by conditions on target object model’s properties. Also, it allows for paging the final result set.

This structure may be used only with operations rendered under /vsan.

§How to access

  • VsanRemoteDatastoreSystem::vsan_query_hci_mesh_datastores(query_specs)

Fields§

§object_model: Option<String>

Supported object models:

  • providerVcenter: The vCenters which the queried vCenter has configured as Datastore Sources.
  • clientVcenter: The vCenters which have added the queried vCenter as Datastore Source.
  • datastore: The vSAN local datastores on all provider vCenters and the local vCenter which are allowed to be mounted.
  • clientCluster: The clusters which mount the datastores on the queried vCenter.
§properties: Option<Vec<String>>

Specifies the object model properties to be included in the result set for the query.

For providerVcenter, each properties are illustrated below:

  • name: The vCenter’s name (align with the Datastore Source configuration or specified remote vCenter information).

  • uuid: The vCenter’s uuid.

  • version: The vCenter’s API version.

  • linkType: The vCenter’s link type. See .

  • totalCapacity: The total capacity of the datastores which can be mounted on the vCenter.

  • usedCapacity: The used capacity of the datastores which can be mounted on the vCenter

  • status: The communication status of the vCenter. When the vCenter can be communicated, the status code is ‘OK’. When there is issue for communication, the status is in format of ‘code{info}’, as below:

    code: VsanSslVerifyCertFault, info: The expected certificate of the vCenter. This is the string of single x509 certificate encoded in PEM format. Caller needs to explicitly specify the certificate in passed parameter of VsanRemoteVcInfoStandalone and retry the related APIs.

    code: NotAuthenticated, info: Some detailed information about unauthentication.

    code: ERROR, info: The exception type of the error, with some detailed error information. Representing a generic error.

  • clientVcenter: The queried vCenter which configures the providerVcenter as a Datastore Source. This is for differentiating multiple queried vCenters which configures the same providerVcenter.

For clientVcenter, each properties are illustrated below:

  • name: The vCenter’s name.
  • uuid: The vCenter’s uuid.
  • providerVcenter: The queried vCenter which the clientVcenter configures as a Datastore Source. This is for differentiating multiple queried vCenters which has the same clientVcenter.

For datastore, each properties are illustrated below:

  • name: The datastore’s name.
  • moId: The datastore’s moId.
  • providerVcenter: The name (align with the Datastore Source configuration or specified remote vCenter information) of the vCenter which provides the datastore.
  • serverGuid: The uuid of the providerVcenter.
  • datacenter: The name of the datacenter which provides the datastore.
  • clusterName: The name of the cluster which provides the datastore.
  • clusterMoId: The moId of the cluster which provides the datastore.
  • totalCapacity: The total capacity of the datastore.
  • usedCapacity: The used capacity of the datastore.
  • vmCount: The count the VMs which are provisioned in the datastore.
  • aliasOf: The alias property of the datastore.
  • containerId: The containerId property of the datastore.
  • clusterType: The cluster type(OSA/ESA) which provides the datastore.
  • clusterVmCount: The count of cluster VMs which are provisioned in the datastore.

For clientCluster, each properties are illustrated below:

  • name: The name of the cluster.
  • moId: The moId of the cluster.
  • uuid: The uuid of the cluster.
  • vcenter: The name of the vCenter which provides the cluster.
  • serverGuid: The uuid of the vCenter which provides the cluster.
  • providerVcenter: The name (align with the Datastore Source configuration or specified remote vCenter information) of the vCenter which has datastore(s) mounted by the client.
  • datastores: The moIds list of the datastores on the providerVcenter which are mounted by the client cluster

For serverCluster, each properties are illustrated below:

  • name: The name of the cluster.
  • providerVcenter: The name (align with the Datastore Source configuration or specified remote vCenter information) of the vCenter which provides the cluster.
  • moId: The moId of the cluster.
  • serverGuid: The uuid of the vCenter which provides the cluster.
  • uuid: The uuid of the cluster.
  • types: The types indicators list of the server cluster which provides the datastore. It can be the combination of the following values:
  • OSA: The cluster is a vSAN OSA cluster.
  • ESA: The cluster is a vSAN ESA cluster.
  • Max: The cluster is a vSAN Max cluster. A vSAN Max cluster is also a special kind of vSAN ESA cluster.
  • Stretched: The cluster is a vSAN OSA cluster. Multiple values could be combined to reflect the accurate cluster type, Some valid combinations are below:
  • OSA,Stretched: The cluster is a vSAN OSA Stretched cluster.
  • ESA, Stretched: The cluster is a vSAN ESA Stretched cluster.
  • ESA, Max: The cluster is a vSAN Max cluster, while a vSAN Max cluster must also be a vSAN ESA cluster.
  • ESA, Max, Stretched: The cluster is a vSAN Max Stretched cluster.
  • faultDomains: The fault domain info configured for the cluster. It is a list of fault domain name and UUID pairs in format “name:UUID”
§filter: Option<VsanXvcQueryFilter>

Restricts (filters) the set of resources to be returned for the query.

§offset: Option<i32>

The offset into the result set.

Must be non-negative number. If unset, defaults to 0.

§limit: Option<i32>

The maximum number of result items to return.

If used, the value should be a non-negative integer.

§return_total_count: Option<bool>

Indicates whether the total number of objects that matched the query should be computed and returned.

This is meaningful only in cases where the number of objects that match the query could be more than the limit of the result items to be returned. If unset, defaults to false.

Trait Implementations§

Source§

impl Debug for VsanXvcQuerySpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserialize for VsanXvcQuerySpec

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more
Source§

impl Serialize for VsanXvcQuerySpec

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl VimObjectTrait for VsanXvcQuerySpec

Source§

impl DataObjectTrait for VsanXvcQuerySpec

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any_ref<'a>(&'a self) -> &'a (dyn Any + 'static)

Cast a reference to Any trait.

Source§

fn as_any_box(self: Box<T>) -> Box<dyn Any>

Cast to a boxed reference to Any trait.

Source§

fn type_id(&self) -> TypeId

Get the underlying type identifier.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<To, T> CastInto<To> for T
where To: CastFrom<T> + ?Sized, T: 'static + ?Sized,

Source§

fn into_ref<'a>(&'a self) -> Option<&'a To>

Casts a reference to a trait object. If the cast fails, std::option::Option::None is returned.
Source§

fn into_box(self: Box<T>) -> Result<Box<To>, Box<dyn Any>>

Casts a boxed trait object to another trait object. If the cast fails, the original boxed trait object is returned in std::result::Result::Err.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,