<spanid="com-vmware-vcenter-vm-storage-package"></span><h1>com.vmware.vcenter.vm.storage package<aclass="headerlink"href="#module-com.vmware.vcenter.vm.storage"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="submodules">
<h2>Submodules<aclass="headerlink"href="#submodules"title="Permalink to this headline">¶</a></h2>
<spanid="com-vmware-vcenter-vm-storage-policy-client-module"></span><h2>com.vmware.vcenter.vm.storage.policy_client module<aclass="headerlink"href="#module-com.vmware.vcenter.vm.storage.policy_client"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="descclassname">com.vmware.vcenter.vm.storage.policy_client.</code><codeclass="descname">Compliance</code><spanclass="sig-paren">(</span><em>config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><strong>config</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">vmware.vapi.bindings.stub.StubConfiguration</span></code>) – Configuration to be used for creating the stub.</td>
<emclass="property">class </em><codeclass="descname">CheckSpec</code><spanclass="sig-paren">(</span><em>vm_home=None</em>, <em>disks=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.CheckSpec"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
<li><strong>vm_home</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">bool</span></code>) – Invoke compliance check on the virtual machine home directory if
set to true. This attribute was added in vSphere API 6.7</li>
<li><strong>disks</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">set</span></code> of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Identifiers of the virtual machine’s virtual disks for which
compliance should be checked. This attribute was added in vSphere
API 6.7
When clients pass a value of this class as a parameter, the
attribute must contain identifiers for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.vm.hardware.Disk</span></code>. When methods return a
value of this class as a return value, the attribute will contain
<emclass="property">class </em><codeclass="descname">Info</code><spanclass="sig-paren">(</span><em>overall_compliance=None</em>, <em>vm_home=None</em>, <em>disks=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
<li><strong>overall_compliance</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.Status</span></code></a>) – The overall compliance status of the virtual machine and all it’s
entities. This attribute was added in vSphere API 6.7</li>
<li><strong>vm_home</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.VmComplianceInfo</span></code></a> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – The storage policy compliance information
<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.VmComplianceInfo</span></code></a> for the virtual machine’s home
directory. This attribute was added in vSphere API 6.7
If None the virtual machine home directory has no storage policy
association.</li>
<li><strong>disks</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> and <aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.VmComplianceInfo</span></code></a>) – The compliance information <aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.VmComplianceInfo</span></code></a> for
the virtual machine’s virtual disks that are currently associated
with a storage policy. This attribute was added in vSphere API 6.7
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.vm.hardware.Disk</span></code>. When methods return
a value of this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<emclass="property">class </em><codeclass="descname">Status</code><spanclass="sig-paren">(</span><em>string</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Compliance.Status</span></code> class defines the storage compliance status of a
virtual machine and its applicable entities. This enumeration was added in
vSphere API 6.7</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
<codeclass="descname">COMPLIANT</code><emclass="property"> = Status(string='COMPLIANT')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.COMPLIANT"title="Permalink to this definition">¶</a></dt>
<dd><p>Entity is in compliance. This class attribute was added in vSphere API 6.7</p>
<codeclass="descname">NON_COMPLIANT</code><emclass="property"> = Status(string='NON_COMPLIANT')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.NON_COMPLIANT"title="Permalink to this definition">¶</a></dt>
<dd><p>Entity is out of compliance. This class attribute was added in vSphere API
<codeclass="descname">NOT_APPLICABLE</code><emclass="property"> = Status(string='NOT_APPLICABLE')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.NOT_APPLICABLE"title="Permalink to this definition">¶</a></dt>
<dd><p>Compliance computation is not applicable for this entity because it does
not have any storage requirements that apply to the datastore on which it
is placed. This class attribute was added in vSphere API 6.7</p>
<codeclass="descname">OUT_OF_DATE</code><emclass="property"> = Status(string='OUT_OF_DATE')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.OUT_OF_DATE"title="Permalink to this definition">¶</a></dt>
<dd><p>The Compliance status becomes out-of-date when the profile associated with
the entity is edited but not applied. The compliance status remains
out-of-date until the edited policy is applied to the entity. This class
<codeclass="descname">UNKNOWN_COMPLIANCE</code><emclass="property"> = Status(string='UNKNOWN_COMPLIANCE')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.UNKNOWN_COMPLIANCE"title="Permalink to this definition">¶</a></dt>
<dd><p>Compliance status of the entity is not known. This class attribute was
<emclass="property">class </em><codeclass="descname">VmComplianceInfo</code><spanclass="sig-paren">(</span><em>status=None</em>, <em>check_time=None</em>, <em>policy=None</em>, <em>failure_cause=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
<li><strong>status</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.Status</span></code></a>) – Status of the compliance operation. This attribute was added in
vSphere API 6.7</li>
<li><strong>check_time</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">datetime.datetime</span></code>) – Date and time of the most recent compliance check. This attribute
was added in vSphere API 6.7</li>
<li><strong>policy</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Identifier of the storage policy associated with the virtual
machine. This attribute was added in vSphere API 6.7
When clients pass a value of this class as a parameter, the
attribute must be an identifier for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.StoragePolicy</span></code>. When methods return a value
of this class as a return value, the attribute will be an
If None SPBM is unable to retrieve or determine the associated
policy, <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Compliance.VmComplianceInfo.failure_cause</span></code> is set in
such casses.</li>
<li><strong>failure_cause</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="com.vmware.vapi.html#com.vmware.vapi.std_client.LocalizableMessage"title="com.vmware.vapi.std_client.LocalizableMessage"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">com.vmware.vapi.std_client.LocalizableMessage</span></code></a>) – The exception that caused the compliance check to fail. There can
be more than one cause, since a policy can contain capabilities
from multiple providers. If empty, it implies no failures while
retrieving compliance. This attribute was added in vSphere API 6.7</li>
<codeclass="descname">check</code><spanclass="sig-paren">(</span><em>vm</em>, <em>check_spec=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.check"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the storage policy Compliance <aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.Info</span></code></a> of a
virtual machine after explicitly re-computing compliance check. This
<li><strong>check_spec</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.CheckSpec"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.CheckSpec"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.CheckSpec</span></code></a> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Parameter specifies the entities on which storage policy compliance
check is to be invoked. The storage compliance Info
<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.Info</span></code></a> is returned.
If None, the behavior is equivalent to a
<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.CheckSpec"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.CheckSpec"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.CheckSpec</span></code></a> with CheckSpec#vmHome set to true and
CheckSpec#disks populated with all disks attached to the virtual
<codeclass="descname">get</code><spanclass="sig-paren">(</span><em>vm</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the cached storage policy compliance information of a virtual
machine. This method was added in vSphere API 6.7</p>
<emclass="property">class </em><codeclass="descclassname">com.vmware.vcenter.vm.storage.policy_client.</code><codeclass="descname">StubFactory</code><spanclass="sig-paren">(</span><em>stub_config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.StubFactory"title="Permalink to this definition">¶</a></dt>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.