com.vmware.vcenter.namespace_management package¶
Submodules¶
com.vmware.vcenter.namespace_management.cns_client module¶
The com.vmware.vcenter.namespace_management.cns_client module provides
classes for configuration of Persistent Services capabilities on VC clusters.
-
class
com.vmware.vcenter.namespace_management.cns_client.MaintenanceActionType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
MaintenanceActionTypeclass contains actions to be taken when an entity enters maintenance mode.Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theMaintenanceActionTypeinstance.
-
EnsureAccessibility= MaintenanceActionType(string='EnsureAccessibility')¶ The entity is going down temporarily for maintenance. Still need to ensure application availability and storage accessibility at least in a degraded level.
-
NoAction= MaintenanceActionType(string='NoAction')¶ Admin override to not delay or stop the entity from entering maintenance mode.
-
PermanentRemoval= MaintenanceActionType(string='PermanentRemoval')¶ The entity is getting permanently removed. Move applications, rebuild storage on other entities before allowing to proceed.
-
class
com.vmware.vcenter.namespace_management.cns_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
com.vmware.vcenter.namespace_management.software_client module¶
The com.vmware.vcenter.namespace_management.software_client module provides
classes for managing namespaces software components.
-
class
com.vmware.vcenter.namespace_management.software_client.Clusters(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Clustersclass provides methods to upgrade the vSphere clusters.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
Info(current_version=None, available_versions=None, last_upgraded_date=None, messages=None, state=None, upgrade_status=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Clusters.Infoclass contains detailed information about the cluster upgrade status and related information.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
current_version (
str) – Current version of the cluster.available_versions (
listofstr) – Set of available versions can be upgraded to.last_upgraded_date (
datetime.datetimeorNone) – Date of last successful upgrade. If None, the cluster has not yet been upgraded.messages (
listofClusters.Message) – Current set of messages associated with the cluster version.state (
Clusters.State) – Current state of the upgrade.upgrade_status (
Clusters.UpgradeStatusorNone) – Information about upgrade in progress. If None, the cluster upgrade is not in progress.
-
class
Message(severity=None, details=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Clusters.Messageclass contains the information about the object configuration.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
severity (
Clusters.Message.Severity) – Type of the message.details (
com.vmware.vapi.std_client.LocalizableMessage) – Details about the message.
-
class
Severity(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Clusters.Message.Severityclass represents the severity of the message.Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theSeverityinstance.
-
ERROR= Severity(string='ERROR')¶ Error message. This is accompanied by vCenter event and/or alarm.
-
INFO= Severity(string='INFO')¶ Informational message. This may be accompanied by vCenter event.
-
WARNING= Severity(string='WARNING')¶ Warning message. This may be accompanied by vCenter event.
-
class
Result(res=None, exception=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Clusters.Resultclass contains the result of batch upgrade method.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
res (
Clusters.Result.Res) – The result of batch upgrade method.exception (
Exception) – Exception when cluster pre-check failed during upgrade invocation. This attribute is optional and it is only relevant when the value ofresisClusters.Result.Res.REJECTED.
-
class
Res(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Clusters.Result.Resclass represents the upgrade invocation result for each cluster.Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theResinstance.
-
REJECTED= Res(string='REJECTED')¶ Upgrade is rejected. This implies pre-check failed when invoking upgrade of the cluster.
-
STARTED= Res(string='STARTED')¶ Upgrade is started.
-
class
State(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Clusters.Stateclass describes the state of the upgrade.Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theStateinstance.
-
ERROR= State(string='ERROR')¶ Upgrade failed and need user intervention.
-
PENDING= State(string='PENDING')¶ Upgrade is in progress.
-
READY= State(string='READY')¶ Cluster is ready when there is no upgrade or upgrade is completed.
-
class
Summary(cluster=None, cluster_name=None, current_version=None, available_versions=None, last_upgraded_date=None, desired_version=None, state=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Clusters.Summaryclass contains basic information about the cluster upgrade related information.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
cluster (
str) – Identifier for the cluster. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:ClusterComputeResource. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:ClusterComputeResource.cluster_name (
str) – Name of the cluster. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:ClusterComputeResource.name. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:ClusterComputeResource.name.current_version (
str) – Current version of the cluster.available_versions (
listofstr) – Set of versions available for upgrade.last_upgraded_date (
datetime.datetimeorNone) – Date of last successful upgrade. If None, the cluster has not yet been upgraded.desired_version (
strorNone) – Desired version the cluster will be upgraded to. If None, the cluster upgrade is not in progress.state (
Clusters.State) – Current state of the upgrade.
-
class
UpgradeProgress(total=None, completed=None, message=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Clusters.UpgradeProgressclass contains detailed information about the cluster upgrade progess.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
total (
long) – Total amount of the work for the operation. The work here represents the number of master nodes in the cluster need to be upgraded.completed (
long) – The amount of work completed for the operation. The value can only be incremented. The number or master nodes which upgrade completed.message (
com.vmware.vapi.std_client.LocalizableMessage) – Message about the work progress.
-
class
UpgradeSpec(desired_version=None, ignore_precheck_warnings=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Clusters.UpgradeSpecclass contains the specification required to upgrade a cluster.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
desired_version (
str) – Version number the cluster is going to be upgraded to.ignore_precheck_warnings (
boolorNone) – If true, the upgrade workflow will ignore any pre-check warnings and proceed with the upgrade. If None, the upgrade workflow will not ignore pre-check warnings and fail the upgrade. It is equivalent to setting the value to false. The workflow adopts a conservative approach of failing the upgrade if None to solely let the user decide whether to force the upgrade despite the warnings.
-
class
UpgradeStatus(desired_version=None, messages=None, progress=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Clusters.UpgradeStatusclass contains detailed information about the cluster when upgraded is in progress.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
desired_version (
strorNone) – Desired version the cluster will be upgraded to. If None, the cluster upgrade is not in progress.messages (
listofClusters.Message) – Current set of messages associated with the upgrade state.progress (
Clusters.UpgradeProgressorNone) – Information about upgrade progess. If None, the cluster upgrade is not in progress.
-
get(cluster)¶ Returns upgrade related information of a specific cluster.
- Parameters
cluster (
str) – Identifier for the cluster which will be upgraded. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- Returns
Information about the upgrade of the specified WCP enabled cluster.
- Raise
com.vmware.vapi.std.errors_client.NotFoundif cluster could not be located.- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have System.Read privilege.- Raise
com.vmware.vapi.std.errors_client.Unsupportedif the cluster is not WCP enabled.
-
list()¶ Returns upgrade related information about all WCP enabled clusters.
- Return type
- Returns
List of upgrade summary of all WCP enabled clusters.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have System.Read privilege.
-
upgrade(cluster, spec)¶ Upgrade the cluster to a specific version. This operation upgrades the components on control plane VMs and worker plane hosts based on the selected version. Before upgrading, this operation performs pre-checks and sets the evaluation response in Info.UpgradeStatus.messages with various Message.Severity levels. Depending on the severity, the upgrade may or may not proceed beyond prechecks. Here is a list of severities and corresponding behavior: - ERROR: Upgrade does not proceed beyond precheck operation - WARNING: Upgrade proceeds beyond precheck operation only if UpgradeSpec.ignorePrecheckWarnings is set to true - INFO: Upgrade proceeds beyond precheck operation uninterrupted
- Parameters
cluster (
str) – Identifier for the cluster which will be upgraded. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Clusters.UpgradeSpec) – Specification for upgrading the cluster.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.Unsupportedif pre-check failed of the cluster.- Raise
com.vmware.vapi.std.errors_client.NotFoundif cluster could not be located.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have Namespaces.Upgrade privilege.
-
upgrade_multiple(specs)¶ Upgrade a set of clusters to its corresponding specific version.
- Parameters
specs (
dictofstrandClusters.UpgradeSpec) – Specifications for upgrading selected clusters. The key in the parameterdictmust be an identifier for the resource type:ClusterComputeResource.- Return type
dictofstrandClusters.Result- Returns
Pre-check result when invoking upgrade for each cluster. The key in the return value
dictwill be an identifier for the resource type:ClusterComputeResource.- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have Namespaces.Upgrade privilege on all specified clusters.
-
class
com.vmware.vcenter.namespace_management.software_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
com.vmware.vcenter.namespace_management.stats_client module¶
The com.vmware.vcenter.namespace_management.stats_client module provides
classes for gathering statistics related to various Namespaces related
components.
-
class
com.vmware.vcenter.namespace_management.stats_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
-
class
com.vmware.vcenter.namespace_management.stats_client.TimeSeries(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
TimeSeriesclass provides methods to gather statistical values for clusters, namespaces and pods.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
PodIdentifier(namespace=None, pod_name=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructPod identifier. These are the fields required to uniquely identify a pod.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
namespace (
str) – The namespace that the pod is running in. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespaces.Instance. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespaces.Instance.pod_name (
str) – The name of the pod itself.
-
class
Spec(obj_type=None, pod=None, namespace=None, cluster=None, start=None, end=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThis structure is sent in a request for TimeSeries data and is used to specify what object stats should be returned for.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
obj_type (
TimeSeries.Spec.ObjType) – Type of statistics object that the request is operating on.pod (
TimeSeries.PodIdentifier) – Pod Identifier for queries on an individual pod. This attribute is optional and it is only relevant when the value ofobjTypeisTimeSeries.Spec.ObjType.POD.namespace (
str) – Namespace name for queries for a namespace. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespaces.Instance. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespaces.Instance. This attribute is optional and it is only relevant when the value ofobjTypeisTimeSeries.Spec.ObjType.NAMESPACE.cluster (
str) – Cluster identifier for queries for a cluster. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:ClusterComputeResource. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:ClusterComputeResource. This attribute is optional and it is only relevant when the value ofobjTypeisTimeSeries.Spec.ObjType.CLUSTER.start (
long) – UNIX timestamp value indicating when the requested series of statistical samples should begin. https://en.wikipedia.org/wiki/Unix_timeend (
long) – UNIX timestamp value indicating when the requested series of statistical samples should end. https://en.wikipedia.org/wiki/Unix_time
-
class
ObjType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumType of statistics object that this request is operating on.
Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theObjTypeinstance.
-
CLUSTER= ObjType(string='CLUSTER')¶ The CLUSTER object type is used when specifying a vSphere cluster.
-
NAMESPACE= ObjType(string='NAMESPACE')¶ The NAMESPACE object type is used to specify a namespace.
-
POD= ObjType(string='POD')¶ The POD object type is used to specify an individual pod within a namespace.
-
class
TimeSeries(counter=None, time_stamps=None, values=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructA set of timestamps and statistical values representing a time series. The lengths of
TimeSeries.TimeSeries.time_stampsandTimeSeries.TimeSeries.valueswill always match each other.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
counter (
str) – Counter identifier.time_stamps (
listoflong) – Sequence of UNIX timestamp values at which statistical values were sampled. https://en.wikipedia.org/wiki/Unix_timevalues (
listoflong) – Sequence of sampled values corresponding to the timestamps in tss.
-
get(spec)¶ Gather statistical values for a cluster, namespace, or pod.
- Parameters
spec (
TimeSeries.Spec) – Specification of the statistical values that should be returned.- Return type
listofTimeSeries.TimeSeries- Returns
A list of TimeSeries values for each counter specified in the request.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentif the start time inTimeSeries.Spec.startis invalid, or the end time inTimeSeries.Spec.endis invalid.- Raise
com.vmware.vapi.std.errors_client.NotFoundif the specified cluster inTimeSeries.Spec.clusteror the namespace inTimeSeries.Spec.namespaceorTimeSeries.Spec.poddoes not exist.- Raise
com.vmware.vapi.std.errors_client.Unsupportedif the specified cluster inTimeSeries.Spec.clusteris not enabled for Namespaces.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have System.Read privilege.
com.vmware.vcenter.namespace_management.supervisor_services_client module¶
The com.vmware.vcenter.namespace_management.supervisor_services_client
module provides classes for managing supervisor services that are extensions to
the Supervisor.
-
class
com.vmware.vcenter.namespace_management.supervisor_services_client.ClusterSupervisorServices(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
ClusterSupervisorServicesclass provides methods to manage a Supervisor Service on the vSphere Supervisors. This class was added in vSphere API 7.0.3.0.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
ConfigStatus(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
ClusterSupervisorServices.ConfigStatusclass describes the status of reaching the desired state configuration for the Supervisor Service. This enumeration was added in vSphere API 7.0.3.0.Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theConfigStatusinstance.
-
CONFIGURED= ConfigStatus(string='CONFIGURED')¶ The Supervisor Service has been configured correctly (i.e. the provided YAML content has been applied successfully to the cluster). This class attribute was added in vSphere API 7.0.3.0.
-
CONFIGURING= ConfigStatus(string='CONFIGURING')¶ The Supervisor Service is being installed. This class attribute was added in vSphere API 7.0.3.0.
-
ERROR= ConfigStatus(string='ERROR')¶ Failed to install the Supervisor Service, user intervention needed. This class attribute was added in vSphere API 7.0.3.0.
-
REMOVING= ConfigStatus(string='REMOVING')¶ The Supervisor Service is being deleted. This class attribute was added in vSphere API 7.0.3.0.
-
class
CreateSpec(supervisor_service=None, version=None, service_config=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ClusterSupervisorServices.CreateSpecclass provides a specification required to create a Supervisor Service on a vSphere Supervisor. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
supervisor_service (
str) – Identifier of the Supervisor Service. This Supervisor Service must be in theACTIVATEDstate. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.version (
str) – Identifier of the Supervisor Service version which contains the service definition. This Supervisor Service version must be in theACTIVATEDstate. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version.service_config ((
dictofstrandstr) orNone) – A generic key-value map for additional configuration parameters required during service creation. As an example, a third party operator might reference a private registry using parameters such as “registryName” for the registry name, “registryUsername” and “registryPassword” for the registry credentials. This attribute was added in vSphere API 7.0.3.0. If None, no additional configuration parameters will be applied when installing a Supervisor Service in the vSphere Supervisor.
-
class
Info(desired_version=None, service_namespace=None, config_status=None, messages=None, current_version=None, display_name=None, description=None, prefix=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ClusterSupervisorServices.Infoclass contains the detailed information about a Supervisor Service on the vSphere Supervisor. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
desired_version (
str) – The desired version of this Supervisor Service. This attribute was added in vSphere API 7.0.3.0.service_namespace (
strorNone) – Identifier of the namespace to allocate the Supervisor Service’s operators. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespaces.Instance. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespaces.Instance. If None, there is an error when creating the service namespace or the namespace has not been created yet.config_status (
ClusterSupervisorServices.ConfigStatus) – Current setting forClusterSupervisorServices.ConfigStatus. This attribute was added in vSphere API 7.0.3.0.messages (
listofClusterSupervisorServices.Message) – Current set of messages associated with the Supervisor Service on the vSphere Supervisor. This attribute was added in vSphere API 7.0.3.0.current_version (
strorNone) – The current version for the Supervisor Service. This attribute was added in vSphere API 7.0.3.0. If None, there is no version installed for the Supervisor Service.display_name (
str) – A human readable name of the Supervisor Service. This attribute was added in vSphere API 7.0.3.0.description (
strorNone) – A human readable description of the Supervisor Service. This attribute was added in vSphere API 7.0.3.0. If None, the description for the service version is empty.prefix (
strorNone) – The prefix that will be added to the names of the Supervisor Service’s kubernetes resources. This attribute was added in vSphere API 7.0.3.0. If None, the prefix is not assigned yet.
-
class
Message(severity=None, details=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ClusterSupervisorServices.Messageclass contains the information about the Supervisor Service configuration on a vSphere Supervisor. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
severity (
ClusterSupervisorServices.Message.MessageSeverity) – Type of the message. This attribute was added in vSphere API 7.0.3.0.details (
com.vmware.vapi.std_client.LocalizableMessageorNone) – Details about the message. This attribute was added in vSphere API 7.0.3.0. If None, message details are not required for taking actions.
-
class
MessageSeverity(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
ClusterSupervisorServices.Message.MessageSeverityclass represents the severity of the message. This enumeration was added in vSphere API 7.0.3.0.Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theMessageSeverityinstance.
-
ERROR= MessageSeverity(string='ERROR')¶ Error message. This is accompanied by vCenter event and/or alarm. This class attribute was added in vSphere API 7.0.3.0.
-
INFO= MessageSeverity(string='INFO')¶ Informational message. This may be accompanied by vCenter event. This class attribute was added in vSphere API 7.0.3.0.
-
WARNING= MessageSeverity(string='WARNING')¶ Warning message. This may be accompanied by vCenter event. This class attribute was added in vSphere API 7.0.3.0.
-
class
SetSpec(version=None, service_config=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ClusterSupervisorServices.SetSpecclass provides a specification required to set a new configuration on a Supervisor Service in a vSphere Supervisor. This class is applied in entirety, replacing the current specification fully. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – Identifier of the Supervisor Service version which contains the service definition. This Supervisor Service version must be in theACTIVATEDstate. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version.service_config ((
dictofstrandstr) orNone) – A generic key-value map for additional configuration parameters required during service upgrade. As an example, a third party operator might reference a private registry using parameters such as “registryName” for the registry name, “registryUsername” and “registryPassword” for the registry credentials. This attribute was added in vSphere API 7.0.3.0. If None, no additional configuration parameters will be applied when upgrading a Supervisor Service in the vSphere Supervisor.
-
class
Summary(supervisor_service=None, desired_version=None, config_status=None, current_version=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
ClusterSupervisorServices.Summaryclass contains the basic information about a Supervisor Service on the vSphere Supervisor. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
supervisor_service (
str) – The identifier of the Supervisor Service. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.desired_version (
str) – The desired version of this Supervisor Service. This attribute was added in vSphere API 7.0.3.0.config_status (
ClusterSupervisorServices.ConfigStatus) – Current setting forClusterSupervisorServices.ConfigStatus. This attribute was added in vSphere API 7.0.3.0.current_version (
strorNone) – The current version for the Supervisor Service. This attribute was added in vSphere API 7.0.3.0. If None, there is no version installed for the Supervisor Service.
-
create(cluster, spec)¶ Create a Supervisor Service on the specified vSphere Supervisor. This method will apply the Supervisor Service version’s service definition on the cluster. This method is possible only when the Supervisor Service and Supervisor Service version are in the
ACTIVATEDstate. A Supervisor can be running on one or multiple vSphere Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If a Supervisor running on the specified vSphere Cluster is running on additional vSphere Clusters, this operation will apply to Supervisor components running on the other vSphere Clusters in addition to the specified vSphere Cluster. To call this API on a Supervisor with multiple vSphere Clusters, use com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the vSphere Clusters associated with the given Supervisor. Any cluster from the list returned can be used as the input of this API. This method was added in vSphere API 7.0.3.0.- Parameters
cluster (
str) – Identifier for the Supervisor on which to create the service. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
ClusterSupervisorServices.CreateSpec) – Specification for the Supervisor Service on the cluster.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentifspeccontains any errors.- Raise
com.vmware.vapi.std.errors_client.AlreadyExistsif a Supervisor Service ID defined inspecexists on the Supervisor- Raise
com.vmware.vapi.std.errors_client.NotFoundif the specified cluster with IDclusteror Supervisor Service with the Supervisor Service ID defined inspecor version with the ID {param.name version} could not be located.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor doesn’t support Supervisor Services, or if the Supervisor Service cannot be created in the current state, e.g. the supervisor service version is in theDEACTIVATEDstate.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user cannot be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have the SupervisorServices.Manage privilege on the specified cluster.
-
delete(cluster, supervisor_service)¶ Delete a Supervisor Service on the specified vSphere Supervisor. This method will remove the Supervisor Service with the specified identifier from the cluster, by removing the corresponding namespace and deleting the operator(s) associated with the Supervisor Service. Note that this operation doesn’t deal with the application instances that are created by the associated operator(s), so existing application instances could be orphaned if users don’t clean or migrate them. A Supervisor can be running on one or multiple vSphere Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If a Supervisor running on the specified vSphere Cluster is running on additional vSphere Clusters, this operation will apply to Supervisor components running on the other vSphere Clusters in addition to the specified vSphere Cluster. To call this API on a Supervisor with multiple vSphere Clusters, use com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the vSphere Clusters associated with the given Supervisor. Any cluster from the list returned can be used as the input of this API. This method was added in vSphere API 7.0.3.0.
- Parameters
cluster (
str) – Identifier for the Supervisor from which to delete the service. The parameter must be an identifier for the resource type:ClusterComputeResource.supervisor_service (
str) – Identifier for the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor with the IDclusteror the Supervisor Service does not exist on the Supervisor.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor doesn’t support Supervisor Services.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user cannot be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have the SupervisorServices.Manage privilege on the specified cluster.
-
get(cluster, supervisor_service)¶ Return information about the specific Supervisor Service on the specified vSphere Supervisor. A Supervisor can be running on one or multiple vSphere Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If a Supervisor running on the specified vSphere Cluster is running on additional vSphere Clusters, this operation will apply to Supervisor components running on the other vSphere Clusters in addition to the specified vSphere Cluster. To call this API on a Supervisor with multiple vSphere Clusters, use com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the vSphere Clusters associated with the given Supervisor. Any cluster from the list returned can be used as the input of this API. This method was added in vSphere API 7.0.3.0.
- Parameters
cluster (
str) – Identifier for the cluster on which to get the service. The parameter must be an identifier for the resource type:ClusterComputeResource.supervisor_service (
str) – Identifier for the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.
- Return type
- Returns
The information for the specified Supervisor Service on the specified cluster.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor with the IDclusteror the Supervisor Service does not exist on the Supervisor.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor doesn’t support Supervisor Services.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user cannot be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have the SupervisorServices.Manage privilege on the specified cluster.
-
list(cluster)¶ Return the summaries about all Supervisor Services on the specified vSphere Supervisor. A Supervisor can be running on one or multiple vSphere Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If a Supervisor running on the specified vSphere Cluster is running on additional vSphere Clusters, this operation will apply to Supervisor components running on the other vSphere Clusters in addition to the specified vSphere Cluster. To call this API on a Supervisor with multiple vSphere Clusters, use com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the vSphere Clusters associated with the given Supervisor. Any cluster from the list returned can be used as the input of this API. This method was added in vSphere API 7.0.3.0.
- Parameters
cluster (
str) – Identifier for the cluster on which to list the services. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- Returns
The list of summaries of all Supervisor Services on the cluster.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor with the IDclustercould not be located.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor doesn’t support Supervisor Services.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user cannot be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have the SupervisorServices.Manage privilege on the specified cluster.
-
set(cluster, supervisor_service, spec)¶ Set a new configuration to the specified Supervisor Service on the specified vSphere Supervisor. This method will apply the new Supervisor Service version’s service definition to the existing Supervisor Service on the cluster. This method requires that the specified Supervisor Service is already installed in the specified Supervisor. Note that this operation doesn’t interfere with the application instances that are created by the associated operator(s). So users should make sure the new version is still compatible with the existing application instances. A Supervisor can be running on one or multiple vSphere Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If a Supervisor running on the specified vSphere Cluster is running on additional vSphere Clusters, this operation will apply to Supervisor components running on the other vSphere Clusters in addition to the specified vSphere Cluster. To call this API on a Supervisor with multiple vSphere Clusters, use com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the vSphere Clusters associated with the given Supervisor. Any cluster from the list returned can be used as the input of this API. This method was added in vSphere API 7.0.3.0.
- Parameters
cluster (
str) – Identifier for the Supervisor from which to delete the service. The parameter must be an identifier for the resource type:ClusterComputeResource.supervisor_service (
str) – Identifier for the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.spec (
ClusterSupervisorServices.SetSpec) – Specification for the Supervisor Service on the cluster.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentifspeccontains any errors.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor with the IDclusteror Supervisor Service with the IDsupervisor_serviceor version with the ID {param.name version} could not be located, or the Supervisor Service does not exist on the Supervisor.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor doesn’t support Supervisor Services or the specified version is not in theACTIVATEDstate.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user cannot be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have the SupervisorServices.Manage privilege on the specified cluster.
-
class
com.vmware.vcenter.namespace_management.supervisor_services_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
-
class
com.vmware.vcenter.namespace_management.supervisor_services_client.Versions(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Versionsclass provides methods to manage a version object of a Supervisor Service. A Supervisor Service version can be enabled on the vSphere Supervisor. This class was added in vSphere API 7.0.3.0.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
ContentType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Versions.ContentTypeclass defines the type of content that describes the format of Supervisor Service version definition. This enumeration was added in vSphere API 7.0.3.0.Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theContentTypeinstance.
-
CUSTOM_YAML= ContentType(string='CUSTOM_YAML')¶ The Supervisor Service version definition is provided as inline YAML document that follows a plain Kubernetes YAML format. This class attribute was added in vSphere API 7.0.3.0.
-
VSPHERE_APPS_YAML= ContentType(string='VSPHERE_APPS_YAML')¶ The Supervisor Service version definition is provided as inline YAML document that follows the vSphere application service format. This class attribute was added in vSphere API 7.0.3.0.
-
class
CreateSpec(custom_spec=None, vsphere_spec=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Versions.CreateSpecclass provides a specification required to create a Supervisor Service version. Exactly one ofVersions.CreateSpec.custom_specorVersions.CreateSpec.vsphere_specmust beset. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
custom_spec (
Versions.CustomCreateSpecorNone) –The specification required to create a Supervisor Service version from inline content that is based on a plain Kubernetes YAML format.
. This attribute was added in vSphere API 7.0.3.0. If
set, the service version will be created from inline content based on a plain Kubernetes YAML format.vsphere_spec (
Versions.VsphereCreateSpecorNone) –The specification required to create a Supervisor Service version from inline content that is based on the vSphere application service format.
. This attribute was added in vSphere API 7.0.3.0. If
set, the service version will be created from inline content based on the vSphere application service format.
-
class
CustomCreateSpec(version=None, display_name=None, description=None, content=None, trusted_provider=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Versions.CustomCreateSpecclass provides a specification required to create a Supervisor Service version from a plain Kubernetes YAML format. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – The identifier of the Supervisor Service version. This must be a semantic version. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version.display_name (
str) – A human readable name of the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0.description (
strorNone) – A human readable description of the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0. If None, the description for the service version will be empty.content (
str) – Inline content that contains all service definition of the version, which shall be base64 encoded. The service definition here follows a plain Kubernetes YAML format. This attribute was added in vSphere API 7.0.3.0.trusted_provider (
boolorNone) – Whether or not the Supervisor Service version is from a trusted provider, this field must be set to false if the service version is not from a trusted provider. If it is set to be true, but thecontentis not signed or the signature is invalid, anInvalidArgumentwill be thrown. This attribute was added in vSphere API 7.0.3.0. If None, the default value is true. In this case, thecontentmust be signed and will be verified.
-
class
Info(display_name=None, description=None, eula=None, content_type=None, content=None, trust_verified=None, state=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Versions.Infoclass contains detailed information about a Supervisor Service version. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
display_name (
str) – The human readable name of the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0.description (
strorNone) – A human-readable description of the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0. If None, no description is available for the Supervisor Service version.eula (
strorNone) – The End User License Agreement (EULA) associated with the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0. If None, no EULA is available for the Supervisor Service version.content_type (
Versions.ContentType) – The content type ofcontent. This attribute was added in vSphere API 7.0.3.0.content (
strorNone) – Inline content that contains base64 encoded service definition for the version. This attribute was added in vSphere API 7.0.3.0. If None, no content is available for the Supervisor Service version.trust_verified (
bool) – If true, the Supervisor Service version is from trusted provider and the trust is verified. This attribute was added in vSphere API 7.0.3.0.state (
Versions.State) – The currentVersions.Stateof the version. This attribute was added in vSphere API 7.0.3.0.
-
class
State(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Versions.Stateclass defines the state of a Supervisor Service version. This enumeration was added in vSphere API 7.0.3.0.Note
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 enumerated type description page.
- Parameters
string (
str) – String value for theStateinstance.
-
ACTIVATED= State(string='ACTIVATED')¶ The is the default state of a Supervisor Service version upon creation. In this state, all operations on the version should work as normal. This class attribute was added in vSphere API 7.0.3.0.
-
DEACTIVATED= State(string='DEACTIVATED')¶ The is the deactivated state of a Supervisor Service version. In this state, certain operations on the version are disallowed, for example, the version cannot be created on the vSphere Supervisor clusters. This class attribute was added in vSphere API 7.0.3.0.
-
class
Summary(version=None, display_name=None, state=None, description=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Versions.Summaryclass contains the basic information about a Supervisor Service version. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
version (
str) – The identifier of the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version.display_name (
str) – A human readable name of the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0.state (
Versions.State) – The currentVersions.Stateof the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0.description (
strorNone) – A human readable description of the Supervisor Service version. This attribute was added in vSphere API 7.0.3.0. If None, no description is available for the service version.
-
class
VsphereCreateSpec(content=None, trusted_provider=None, accept_eula=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Versions.VsphereCreateSpecclass provides a specification required to create a Supervisor Service version from vSphere application service format, which shall contain the Supervisor Service identifier, version identifier, display name and description information. This class was added in vSphere API 7.0.3.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
content (
str) – Inline content that contains all service definition of the version in vSphere application service format, which shall be base64 encoded. This attribute was added in vSphere API 7.0.3.0.trusted_provider (
boolorNone) – Whether or not the Supervisor Service version is from a trusted provider, this field must be set to false if the service version is not from a trusted provider. If it is set to be true, but thecontentis not signed or the signature is invalid, anInvalidArgumentwill be thrown. This attribute was added in vSphere API 7.0.3.0. If None, the default value is true. In this case, thecontentmust be signed and will be verified.accept_eula (
boolorNone) – Whether or not the End User License Agreement (EULA) that is specified in thecontentis accepted. If a EULA is specified, this attribute must be set to be true so that the Supervisor Service version can be created. This attribute was added in vSphere API 7.0.3.0. If None, the default value is false.
-
activate(supervisor_service, version)¶ Activate a Supervisor Service version. This method will change the
Versions.Stateof the version toACTIVATEDstate. This method was added in vSphere API 7.0.3.0.- Parameters
supervisor_service (
str) – Identifier for the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.version (
str) – Identifier of the version. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor Service version cannot be activated in the current state, for example, the Supervisor Service is inDEACTIVATEDstate.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor Service with the IDsupervisor_serviceor version with the ID {param.name version} could not be located.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user cannot be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have the SupervisorServices.Manage privilege.
-
create(supervisor_service, spec)¶ Create a Supervisor Service version based on the provided service definition information for the version. This method was added in vSphere API 7.0.3.0.
- Parameters
supervisor_service (
str) – Identifier of the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.spec (
Versions.CreateSpec) – Specification for the Supervisor Service version to be created.
- Raise
com.vmware.vapi.std.errors_client.AlreadyExistsif a Supervisor Service version with the same identifier already exists.- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentif an invalid field inspecis specified or if it contains any errors. For example, when the field trusted is set to be true, but no signature is provided or it is invalid or when a EULA is specified but not accepted.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor Service version cannot be created in the current state, for example, the Supervisor Service is inDEACTIVATEDstate.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor Service with the IDsupervisor_servicecould not be located.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user doesn’t have the SupervisorServices.Manage privilege.
-
deactivate(supervisor_service, version)¶ Deactivate a Supervisor Service version. This method will change the
Versions.Stateof the version toDEACTIVATEDstate, which will make sure the version cannot be created on any Supervisor cluster. Note that this method should be called before deleting the version. This method was added in vSphere API 7.0.3.0.- Parameters
supervisor_service (
str) – Identifier for the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.version (
str) – Identifier of the version. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor Service version cannot be deactivated in the current state, for example, the Supervisor Service is inACTIVATEDstate and this version is the last version of the Supervisor Service inACTIVATEDstate.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor Service with the IDsupervisor_serviceor version with the IDversioncould not be located.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user cannot be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user does not have the SupervisorServices.Manage privilege.
-
delete(supervisor_service, version)¶ Delete a Supervisor Service version. This method only deletes the Supervisor Service version from vCenter if the version is in
DEACTIVATEDstate and all instances of the version are removed from all Supervisors. Note that thedeactivatemethod should be called to deactivate the version before the version can be deleted.Note that deleting the last version of the
supervisor_servicedoes not delete thesupervisor_serviceinstance automatically.. This method was added in vSphere API 7.0.3.0.- Parameters
supervisor_service (
str) – Identifier of the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.version (
str) – Identifier of the version. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request, e.g. if it is unable to reach a vSphere Supervisor that has the version enabled.- Raise
com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateif the Supervisor Service version cannot be deleted in the current state, e.g. the version is not inDEACTIVATEDstate.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor Service with the IDsupervisor_serviceor version with the ID {param.name version} could not be located.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user doesn’t have the SupervisorServices.Manage privilege.
-
get(supervisor_service, version)¶ Return the information for the specified Supervisor Service version. This method was added in vSphere API 7.0.3.0.
- Parameters
supervisor_service (
str) – Identifier of the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.version (
str) – Identifier of the version. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.supervisor_services.Version.
- Return type
- Returns
Information for the specified Supervisor Service version.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.NotFoundif Supervisor Service with the IDsupervisor_serviceor version with the ID {param.name version} could not be located.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user doesn’t have the System.Read privilege.
-
list(supervisor_service)¶ Return the information about all versions of the Supervisor Service. This method was added in vSphere API 7.0.3.0.
- Parameters
supervisor_service (
str) – Identifier of the Supervisor Service. The parameter must be an identifier for the resource type:com.vmware.vcenter.namespace_management.SupervisorService.- Return type
- Returns
The list of summary of all service versions of the Supervisor Service.
- Raise
com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
com.vmware.vapi.std.errors_client.NotFoundif service with the IDsupervisor_servicecould not be located.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif the user doesn’t have the System.Read privilege.