vsphere-automation-vcenter 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +26 -26
- data/docs/CertificateManagementVcenterTlsApi.md +3 -5
- data/docs/DeploymentApi.md +4 -8
- data/docs/DeploymentImportHistoryApi.md +4 -8
- data/docs/DeploymentInstallApi.md +4 -8
- data/docs/DeploymentInstallPscReplicatedApi.md +3 -5
- data/docs/DeploymentInstallPscStandaloneApi.md +3 -5
- data/docs/DeploymentInstallRemotePscApi.md +3 -5
- data/docs/DeploymentQuestionApi.md +3 -5
- data/docs/DeploymentUpgradeApi.md +4 -8
- data/docs/InventoryDatastoreApi.md +3 -5
- data/docs/InventoryNetworkApi.md +3 -5
- data/docs/IsoImageApi.md +6 -10
- data/docs/OvfLibraryItemApi.md +3 -5
- data/docs/StoragePoliciesApi.md +3 -5
- data/docs/TopologyPscsApi.md +3 -5
- data/docs/VcenterDeploymentInfo.md +1 -1
- data/docs/VcenterInventoryDatastoreFindResult.md +1 -1
- data/docs/VcenterInventoryNetworkFindResult.md +1 -1
- data/docs/VcenterOvfLibraryItemResourcePoolDeploymentSpec.md +2 -2
- data/docs/VcenterServicesServiceListDetailsResult.md +1 -1
- data/docs/VcenterStoragePoliciesComplianceSummary.md +1 -1
- data/docs/VcenterStoragePoliciesComplianceVMInfo.md +1 -1
- data/docs/VcenterStoragePoliciesComplianceVMListResult.md +1 -1
- data/docs/VcenterStoragePoliciesVMListResult.md +1 -1
- data/docs/VcenterVMInfo.md +8 -8
- data/docs/VcenterVmGuestLocalFilesystemResult.md +1 -1
- data/docs/VcenterVmStoragePolicyComplianceInfo.md +1 -1
- data/docs/VcenterVmStoragePolicyInfo.md +1 -1
- data/docs/VcenterVmStoragePolicyUpdateSpec.md +1 -1
- data/docs/VcenterVmTemplateLibraryItemsCreateSpec.md +1 -1
- data/docs/VcenterVmTemplateLibraryItemsDeploySpec.md +1 -1
- data/docs/VcenterVmTemplateLibraryItemsHardwareCustomizationSpec.md +2 -2
- data/docs/VcenterVmTemplateLibraryItemsInfo.md +2 -2
- data/docs/VchaClusterActiveApi.md +3 -5
- data/docs/VchaClusterApi.md +3 -5
- data/docs/VchaClusterModeApi.md +3 -5
- data/docs/VchaClusterPassiveApi.md +3 -5
- data/docs/VchaClusterWitnessApi.md +3 -5
- data/docs/VchaVcCredentialsApi.md +3 -5
- data/docs/VmGuestPowerApi.md +3 -5
- data/docs/VmStoragePolicyComplianceApi.md +3 -5
- data/docs/VmTemplateLibraryItemsApi.md +3 -5
- data/lib/vsphere-automation-vcenter/api/certificate_management_vcenter_tls_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_import_history_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_install_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_install_psc_replicated_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_install_psc_standalone_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_install_remote_psc_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_question_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_upgrade_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/inventory_datastore_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/inventory_network_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/iso_image_api.rb +8 -30
- data/lib/vsphere-automation-vcenter/api/ovf_library_item_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/storage_policies_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/topology_pscs_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_active_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_mode_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_passive_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_witness_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_vc_credentials_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vm_guest_power_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vm_storage_policy_compliance_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vm_template_library_items_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api_client.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_deployment_info.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_inventory_datastore_find_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_inventory_network_find_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_ovf_library_item_resource_pool_deployment_spec.rb +2 -2
- data/lib/vsphere-automation-vcenter/models/vcenter_services_service_list_details_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_storage_policies_compliance_summary.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_storage_policies_compliance_vm_info.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_storage_policies_compliance_vm_list_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_storage_policies_vm_list_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_guest_local_filesystem_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_info.rb +8 -8
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_storage_policy_compliance_info.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_storage_policy_info.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_storage_policy_update_spec.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_template_library_items_create_spec.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_template_library_items_deploy_spec.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_template_library_items_hardware_customization_spec.rb +2 -2
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_template_library_items_info.rb +2 -2
- data/lib/vsphere-automation-vcenter/version.rb +1 -1
- data/pkg/vsphere-automation-vcenter-0.2.2.gem +0 -0
- data/vsphere-automation-vcenter.gemspec +2 -2
- metadata +7 -6
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**description** | **String** | Description of the deployed virtual machine. | [optional]
|
8
8
|
**vm_home_storage** | [**VcenterVmTemplateLibraryItemsDeploySpecVmHomeStorage**](VcenterVmTemplateLibraryItemsDeploySpecVmHomeStorage.md) | | [optional]
|
9
9
|
**disk_storage** | [**VcenterVmTemplateLibraryItemsDeploySpecDiskStorage**](VcenterVmTemplateLibraryItemsDeploySpecDiskStorage.md) | | [optional]
|
10
|
-
**disk_storage_overrides** | **Array<
|
10
|
+
**disk_storage_overrides** | [**Array<VcenterVmTemplateLibraryItemsDeploySpecDiskStorageOverrides>**](VcenterVmTemplateLibraryItemsDeploySpecDiskStorageOverrides.md) | Storage specification for individual disks in the deployed virtual machine. This is specified as a mapping between disk identifiers in the source virtual machine template contained in the library item and their storage specifications. | [optional]
|
11
11
|
**placement** | [**VcenterVmTemplateLibraryItemsDeployPlacementSpec**](VcenterVmTemplateLibraryItemsDeployPlacementSpec.md) | | [optional]
|
12
12
|
**powered_on** | **Boolean** | Specifies whether the deployed virtual machine should be powered on after deployment. | [optional]
|
13
13
|
**guest_customization** | [**VcenterVmTemplateLibraryItemsGuestCustomizationSpec**](VcenterVmTemplateLibraryItemsGuestCustomizationSpec.md) | | [optional]
|
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**nics** | **Array<
|
6
|
+
**nics** | [**Array<VcenterVmTemplateLibraryItemsHardwareCustomizationSpecNics>**](VcenterVmTemplateLibraryItemsHardwareCustomizationSpecNics.md) | Map of Ethernet network adapters to update. | [optional]
|
7
7
|
**disks_to_remove** | **Array<String>** | Idenfiers of disks to remove from the deployed virtual machine. | [optional]
|
8
|
-
**disks_to_update** | **Array<
|
8
|
+
**disks_to_update** | [**Array<VcenterVmTemplateLibraryItemsHardwareCustomizationSpecDisksToUpdate>**](VcenterVmTemplateLibraryItemsHardwareCustomizationSpecDisksToUpdate.md) | Disk update specification for individual disks in the deployed virtual machine. | [optional]
|
9
9
|
**cpu_update** | [**VcenterVmTemplateLibraryItemsCpuUpdateSpec**](VcenterVmTemplateLibraryItemsCpuUpdateSpec.md) | | [optional]
|
10
10
|
**memory_update** | [**VcenterVmTemplateLibraryItemsMemoryUpdateSpec**](VcenterVmTemplateLibraryItemsMemoryUpdateSpec.md) | | [optional]
|
11
11
|
|
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
|
7
7
|
**cpu** | [**VcenterVmTemplateLibraryItemsCpuInfo**](VcenterVmTemplateLibraryItemsCpuInfo.md) | |
|
8
8
|
**memory** | [**VcenterVmTemplateLibraryItemsMemoryInfo**](VcenterVmTemplateLibraryItemsMemoryInfo.md) | |
|
9
9
|
**vm_home_storage** | [**VcenterVmTemplateLibraryItemsVmHomeStorageInfo**](VcenterVmTemplateLibraryItemsVmHomeStorageInfo.md) | |
|
10
|
-
**disks** | **Array<
|
11
|
-
**nics** | **Array<
|
10
|
+
**disks** | [**Array<VcenterVmTemplateLibraryItemsInfoDisks>**](VcenterVmTemplateLibraryItemsInfoDisks.md) | Storage information about the virtual machine template's virtual disks. |
|
11
|
+
**nics** | [**Array<VcenterVmTemplateLibraryItemsInfoNics>**](VcenterVmTemplateLibraryItemsInfoNics.md) | Information about the virtual machine template's virtual ethernet adapters. |
|
12
12
|
**vm_template** | **String** | Identifier of the virtual machine template contained in the library item. This field is used to identify the virtual machine template in legacy APIs. |
|
13
13
|
|
14
14
|
|
@@ -4,11 +4,11 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**get**](VchaClusterActiveApi.md#get) | **POST** /vcenter/vcha/cluster/active | Retrieves information about the active node of a VCHA cluster.
|
7
|
+
[**get**](VchaClusterActiveApi.md#get) | **POST** /vcenter/vcha/cluster/active?action=get | Retrieves information about the active node of a VCHA cluster.
|
8
8
|
|
9
9
|
|
10
10
|
# **get**
|
11
|
-
> VcenterVchaClusterActiveResult get(
|
11
|
+
> VcenterVchaClusterActiveResult get(opts)
|
12
12
|
|
13
13
|
Retrieves information about the active node of a VCHA cluster.
|
14
14
|
|
@@ -25,14 +25,13 @@ VSphereAutomation::Configuration.new.tap do |config|
|
|
25
25
|
end
|
26
26
|
|
27
27
|
api_instance = VSphereAutomation::VCenter::VchaClusterActiveApi.new
|
28
|
-
action = 'action_example' # String | action=get
|
29
28
|
opts = {
|
30
29
|
request_body: VCenter::VcenterVchaClusterActiveGet.new # VcenterVchaClusterActiveGet |
|
31
30
|
}
|
32
31
|
|
33
32
|
begin
|
34
33
|
#Retrieves information about the active node of a VCHA cluster.
|
35
|
-
result = api_instance.get(
|
34
|
+
result = api_instance.get(opts)
|
36
35
|
p result
|
37
36
|
rescue VSphereAutomation::ApiError => e
|
38
37
|
puts "Exception when calling VchaClusterActiveApi->get: #{e}"
|
@@ -43,7 +42,6 @@ end
|
|
43
42
|
|
44
43
|
Name | Type | Description | Notes
|
45
44
|
------------- | ------------- | ------------- | -------------
|
46
|
-
**action** | **String**| action=get |
|
47
45
|
**request_body** | [**VcenterVchaClusterActiveGet**](VcenterVchaClusterActiveGet.md)| | [optional]
|
48
46
|
|
49
47
|
### Return type
|
data/docs/VchaClusterApi.md
CHANGED
@@ -5,7 +5,7 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**deploytask**](VchaClusterApi.md#deploytask) | **POST** /vcenter/vcha/cluster?action=deploy&vmw-task=true | Prepares, clones, and configures a VCHA cluster.
|
8
|
-
[**failovertask**](VchaClusterApi.md#failovertask) | **POST** /vcenter/vcha/cluster | Initiates failover from the active vCenter node to the passive node. For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover. For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss. A failover is allowed only in the following cases: 1. Cluster's mode is enabled and all cluster members are present. 2. Cluster's mode is maintenance and all cluster members are present.
|
8
|
+
[**failovertask**](VchaClusterApi.md#failovertask) | **POST** /vcenter/vcha/cluster?action=failover&vmw-task=true | Initiates failover from the active vCenter node to the passive node. For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover. For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss. A failover is allowed only in the following cases: 1. Cluster's mode is enabled and all cluster members are present. 2. Cluster's mode is maintenance and all cluster members are present.
|
9
9
|
[**get**](VchaClusterApi.md#get) | **POST** /vcenter/vcha/cluster?action=get | Retrieves the status of a VCHA cluster.
|
10
10
|
[**undeploytask**](VchaClusterApi.md#undeploytask) | **POST** /vcenter/vcha/cluster?action=undeploy&vmw-task=true | Destroys the VCHA cluster and removes all VCHA specific information from the VCVA appliance. Optionally, the passive and witness node virtual machines will be deleted only if VCHA was deployed using automatic deployment. The active node in the cluster continues to run as a standalone VCVA appliance after the destroy operation has been performed. If the VCHA cluster is in a transition state and not configured, then the VCHA cluster specific information is removed.
|
11
11
|
|
@@ -61,7 +61,7 @@ Name | Type | Description | Notes
|
|
61
61
|
|
62
62
|
|
63
63
|
# **failovertask**
|
64
|
-
> VcenterVchaClusterFailoverTaskResult failovertask(
|
64
|
+
> VcenterVchaClusterFailoverTaskResult failovertask(request_body)
|
65
65
|
|
66
66
|
Initiates failover from the active vCenter node to the passive node. For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover. For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss. A failover is allowed only in the following cases: 1. Cluster's mode is enabled and all cluster members are present. 2. Cluster's mode is maintenance and all cluster members are present.
|
67
67
|
|
@@ -78,12 +78,11 @@ VSphereAutomation::Configuration.new.tap do |config|
|
|
78
78
|
end
|
79
79
|
|
80
80
|
api_instance = VSphereAutomation::VCenter::VchaClusterApi.new
|
81
|
-
action = 'action_example' # String | action=failover&vmw-task
|
82
81
|
request_body = VCenter::VcenterVchaClusterFailoverTask.new # VcenterVchaClusterFailoverTask |
|
83
82
|
|
84
83
|
begin
|
85
84
|
#Initiates failover from the active vCenter node to the passive node. For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover. For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss. A failover is allowed only in the following cases: 1. Cluster's mode is enabled and all cluster members are present. 2. Cluster's mode is maintenance and all cluster members are present.
|
86
|
-
result = api_instance.failovertask(
|
85
|
+
result = api_instance.failovertask(request_body)
|
87
86
|
p result
|
88
87
|
rescue VSphereAutomation::ApiError => e
|
89
88
|
puts "Exception when calling VchaClusterApi->failovertask: #{e}"
|
@@ -94,7 +93,6 @@ end
|
|
94
93
|
|
95
94
|
Name | Type | Description | Notes
|
96
95
|
------------- | ------------- | ------------- | -------------
|
97
|
-
**action** | **String**| action=failover&vmw-task |
|
98
96
|
**request_body** | [**VcenterVchaClusterFailoverTask**](VcenterVchaClusterFailoverTask.md)| |
|
99
97
|
|
100
98
|
### Return type
|
data/docs/VchaClusterModeApi.md
CHANGED
@@ -5,7 +5,7 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**get**](VchaClusterModeApi.md#get) | **GET** /vcenter/vcha/cluster/mode | Retrieves the current mode of a VCHA cluster.
|
8
|
-
[**settask**](VchaClusterModeApi.md#settask) | **PUT** /vcenter/vcha/cluster/mode | Manipulates the mode of a VCHA Cluster. Following mode transitions are allowed: enabled -> disabled - Allowed only in healthy and degraded states. enabled -> maintenance - Allowed only in healthy state. disabled -> enabled - Allowed only in healthy state. maintenance -> enabled - Allowed only in healthy state with all nodes are running the same version. maintenance -> disabled - Allowed only in healthy state with all nodes are running the same version. All other transitions are not allowed. VCHA Cluster configuration remains intact in any of the cluster modes.
|
8
|
+
[**settask**](VchaClusterModeApi.md#settask) | **PUT** /vcenter/vcha/cluster/mode?vmw-task=true | Manipulates the mode of a VCHA Cluster. Following mode transitions are allowed: enabled -> disabled - Allowed only in healthy and degraded states. enabled -> maintenance - Allowed only in healthy state. disabled -> enabled - Allowed only in healthy state. maintenance -> enabled - Allowed only in healthy state with all nodes are running the same version. maintenance -> disabled - Allowed only in healthy state with all nodes are running the same version. All other transitions are not allowed. VCHA Cluster configuration remains intact in any of the cluster modes.
|
9
9
|
|
10
10
|
|
11
11
|
# **get**
|
@@ -55,7 +55,7 @@ This endpoint does not need any parameter.
|
|
55
55
|
|
56
56
|
|
57
57
|
# **settask**
|
58
|
-
> VcenterVchaClusterModeSetTaskResult settask(
|
58
|
+
> VcenterVchaClusterModeSetTaskResult settask(request_body)
|
59
59
|
|
60
60
|
Manipulates the mode of a VCHA Cluster. Following mode transitions are allowed: enabled -> disabled - Allowed only in healthy and degraded states. enabled -> maintenance - Allowed only in healthy state. disabled -> enabled - Allowed only in healthy state. maintenance -> enabled - Allowed only in healthy state with all nodes are running the same version. maintenance -> disabled - Allowed only in healthy state with all nodes are running the same version. All other transitions are not allowed. VCHA Cluster configuration remains intact in any of the cluster modes.
|
61
61
|
|
@@ -72,12 +72,11 @@ VSphereAutomation::Configuration.new.tap do |config|
|
|
72
72
|
end
|
73
73
|
|
74
74
|
api_instance = VSphereAutomation::VCenter::VchaClusterModeApi.new
|
75
|
-
vmw_task = 'vmw_task_example' # String | vmw-task=true
|
76
75
|
request_body = VCenter::VcenterVchaClusterModeSetTask.new # VcenterVchaClusterModeSetTask |
|
77
76
|
|
78
77
|
begin
|
79
78
|
#Manipulates the mode of a VCHA Cluster. Following mode transitions are allowed: enabled -> disabled - Allowed only in healthy and degraded states. enabled -> maintenance - Allowed only in healthy state. disabled -> enabled - Allowed only in healthy state. maintenance -> enabled - Allowed only in healthy state with all nodes are running the same version. maintenance -> disabled - Allowed only in healthy state with all nodes are running the same version. All other transitions are not allowed. VCHA Cluster configuration remains intact in any of the cluster modes.
|
80
|
-
result = api_instance.settask(
|
79
|
+
result = api_instance.settask(request_body)
|
81
80
|
p result
|
82
81
|
rescue VSphereAutomation::ApiError => e
|
83
82
|
puts "Exception when calling VchaClusterModeApi->settask: #{e}"
|
@@ -88,7 +87,6 @@ end
|
|
88
87
|
|
89
88
|
Name | Type | Description | Notes
|
90
89
|
------------- | ------------- | ------------- | -------------
|
91
|
-
**vmw_task** | **String**| vmw-task=true |
|
92
90
|
**request_body** | [**VcenterVchaClusterModeSetTask**](VcenterVchaClusterModeSetTask.md)| |
|
93
91
|
|
94
92
|
### Return type
|
@@ -5,7 +5,7 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**check**](VchaClusterPassiveApi.md#check) | **POST** /vcenter/vcha/cluster/passive?action=check | Validates the specified passive node's placement configuration.
|
8
|
-
[**redeploytask**](VchaClusterPassiveApi.md#redeploytask) | **POST** /vcenter/vcha/cluster/passive | Creates the passive node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
8
|
+
[**redeploytask**](VchaClusterPassiveApi.md#redeploytask) | **POST** /vcenter/vcha/cluster/passive?action=redeploy&vmw-task=true | Creates the passive node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
9
9
|
|
10
10
|
|
11
11
|
# **check**
|
@@ -59,7 +59,7 @@ Name | Type | Description | Notes
|
|
59
59
|
|
60
60
|
|
61
61
|
# **redeploytask**
|
62
|
-
> VcenterVchaClusterPassiveRedeployTaskResult redeploytask(
|
62
|
+
> VcenterVchaClusterPassiveRedeployTaskResult redeploytask(request_body)
|
63
63
|
|
64
64
|
Creates the passive node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
65
65
|
|
@@ -76,12 +76,11 @@ VSphereAutomation::Configuration.new.tap do |config|
|
|
76
76
|
end
|
77
77
|
|
78
78
|
api_instance = VSphereAutomation::VCenter::VchaClusterPassiveApi.new
|
79
|
-
action = 'action_example' # String | action=redeploy&vmw-task
|
80
79
|
request_body = VCenter::VcenterVchaClusterPassiveRedeployTask.new # VcenterVchaClusterPassiveRedeployTask |
|
81
80
|
|
82
81
|
begin
|
83
82
|
#Creates the passive node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
84
|
-
result = api_instance.redeploytask(
|
83
|
+
result = api_instance.redeploytask(request_body)
|
85
84
|
p result
|
86
85
|
rescue VSphereAutomation::ApiError => e
|
87
86
|
puts "Exception when calling VchaClusterPassiveApi->redeploytask: #{e}"
|
@@ -92,7 +91,6 @@ end
|
|
92
91
|
|
93
92
|
Name | Type | Description | Notes
|
94
93
|
------------- | ------------- | ------------- | -------------
|
95
|
-
**action** | **String**| action=redeploy&vmw-task |
|
96
94
|
**request_body** | [**VcenterVchaClusterPassiveRedeployTask**](VcenterVchaClusterPassiveRedeployTask.md)| |
|
97
95
|
|
98
96
|
### Return type
|
@@ -5,7 +5,7 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**check**](VchaClusterWitnessApi.md#check) | **POST** /vcenter/vcha/cluster/witness?action=check | Validates the specified witness node's placement configuration.
|
8
|
-
[**redeploytask**](VchaClusterWitnessApi.md#redeploytask) | **POST** /vcenter/vcha/cluster/witness | Creates the witness node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
8
|
+
[**redeploytask**](VchaClusterWitnessApi.md#redeploytask) | **POST** /vcenter/vcha/cluster/witness?action=redeploy&vmw-task=true | Creates the witness node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
9
9
|
|
10
10
|
|
11
11
|
# **check**
|
@@ -59,7 +59,7 @@ Name | Type | Description | Notes
|
|
59
59
|
|
60
60
|
|
61
61
|
# **redeploytask**
|
62
|
-
> VcenterVchaClusterWitnessRedeployTaskResult redeploytask(
|
62
|
+
> VcenterVchaClusterWitnessRedeployTaskResult redeploytask(request_body)
|
63
63
|
|
64
64
|
Creates the witness node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
65
65
|
|
@@ -76,12 +76,11 @@ VSphereAutomation::Configuration.new.tap do |config|
|
|
76
76
|
end
|
77
77
|
|
78
78
|
api_instance = VSphereAutomation::VCenter::VchaClusterWitnessApi.new
|
79
|
-
action = 'action_example' # String | action=redeploy&vmw-task
|
80
79
|
request_body = VCenter::VcenterVchaClusterWitnessRedeployTask.new # VcenterVchaClusterWitnessRedeployTask |
|
81
80
|
|
82
81
|
begin
|
83
82
|
#Creates the witness node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
84
|
-
result = api_instance.redeploytask(
|
83
|
+
result = api_instance.redeploytask(request_body)
|
85
84
|
p result
|
86
85
|
rescue VSphereAutomation::ApiError => e
|
87
86
|
puts "Exception when calling VchaClusterWitnessApi->redeploytask: #{e}"
|
@@ -92,7 +91,6 @@ end
|
|
92
91
|
|
93
92
|
Name | Type | Description | Notes
|
94
93
|
------------- | ------------- | ------------- | -------------
|
95
|
-
**action** | **String**| action=redeploy&vmw-task |
|
96
94
|
**request_body** | [**VcenterVchaClusterWitnessRedeployTask**](VcenterVchaClusterWitnessRedeployTask.md)| |
|
97
95
|
|
98
96
|
### Return type
|
@@ -4,11 +4,11 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**validate**](VchaVcCredentialsApi.md#validate) | **POST** /vcenter/vcha/vc-credentials | Validates the credentials of the management vCenter server of the active node of a VCHA cluster.
|
7
|
+
[**validate**](VchaVcCredentialsApi.md#validate) | **POST** /vcenter/vcha/vc-credentials?action=validate | Validates the credentials of the management vCenter server of the active node of a VCHA cluster.
|
8
8
|
|
9
9
|
|
10
10
|
# **validate**
|
11
|
-
> validate(
|
11
|
+
> validate(request_body)
|
12
12
|
|
13
13
|
Validates the credentials of the management vCenter server of the active node of a VCHA cluster.
|
14
14
|
|
@@ -25,12 +25,11 @@ VSphereAutomation::Configuration.new.tap do |config|
|
|
25
25
|
end
|
26
26
|
|
27
27
|
api_instance = VSphereAutomation::VCenter::VchaVcCredentialsApi.new
|
28
|
-
action = 'action_example' # String | action=validate
|
29
28
|
request_body = VCenter::VcenterVchaVcCredentialsValidate.new # VcenterVchaVcCredentialsValidate |
|
30
29
|
|
31
30
|
begin
|
32
31
|
#Validates the credentials of the management vCenter server of the active node of a VCHA cluster.
|
33
|
-
api_instance.validate(
|
32
|
+
api_instance.validate(request_body)
|
34
33
|
rescue VSphereAutomation::ApiError => e
|
35
34
|
puts "Exception when calling VchaVcCredentialsApi->validate: #{e}"
|
36
35
|
end
|
@@ -40,7 +39,6 @@ end
|
|
40
39
|
|
41
40
|
Name | Type | Description | Notes
|
42
41
|
------------- | ------------- | ------------- | -------------
|
43
|
-
**action** | **String**| action=validate |
|
44
42
|
**request_body** | [**VcenterVchaVcCredentialsValidate**](VcenterVchaVcCredentialsValidate.md)| |
|
45
43
|
|
46
44
|
### Return type
|
data/docs/VmGuestPowerApi.md
CHANGED
@@ -5,7 +5,7 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**get**](VmGuestPowerApi.md#get) | **GET** /vcenter/vm/{vm}/guest/power | Returns information about the guest operating system power state.
|
8
|
-
[**reboot**](VmGuestPowerApi.md#reboot) | **POST** /vcenter/vm/{vm}/guest/power | Issues a request to the guest operating system asking it to perform a reboot. This request returns immediately and does not wait for the guest operating system to complete the operation.
|
8
|
+
[**reboot**](VmGuestPowerApi.md#reboot) | **POST** /vcenter/vm/{vm}/guest/power?action=reboot | Issues a request to the guest operating system asking it to perform a reboot. This request returns immediately and does not wait for the guest operating system to complete the operation.
|
9
9
|
[**shutdown**](VmGuestPowerApi.md#shutdown) | **POST** /vcenter/vm/{vm}/guest/power?action=shutdown | Issues a request to the guest operating system asking it to perform a clean shutdown of all services. This request returns immediately and does not wait for the guest operating system to complete the operation.
|
10
10
|
[**standby**](VmGuestPowerApi.md#standby) | **POST** /vcenter/vm/{vm}/guest/power?action=standby | Issues a request to the guest operating system asking it to perform a suspend operation.
|
11
11
|
|
@@ -61,7 +61,7 @@ Name | Type | Description | Notes
|
|
61
61
|
|
62
62
|
|
63
63
|
# **reboot**
|
64
|
-
> reboot(vm
|
64
|
+
> reboot(vm)
|
65
65
|
|
66
66
|
Issues a request to the guest operating system asking it to perform a reboot. This request returns immediately and does not wait for the guest operating system to complete the operation.
|
67
67
|
|
@@ -79,11 +79,10 @@ end
|
|
79
79
|
|
80
80
|
api_instance = VSphereAutomation::VCenter::VmGuestPowerApi.new
|
81
81
|
vm = 'vm_example' # String | Identifier of the virtual machine. The parameter must be an identifier for the resource type: VirtualMachine.
|
82
|
-
action = 'action_example' # String | action=reboot
|
83
82
|
|
84
83
|
begin
|
85
84
|
#Issues a request to the guest operating system asking it to perform a reboot. This request returns immediately and does not wait for the guest operating system to complete the operation.
|
86
|
-
api_instance.reboot(vm
|
85
|
+
api_instance.reboot(vm)
|
87
86
|
rescue VSphereAutomation::ApiError => e
|
88
87
|
puts "Exception when calling VmGuestPowerApi->reboot: #{e}"
|
89
88
|
end
|
@@ -94,7 +93,6 @@ end
|
|
94
93
|
Name | Type | Description | Notes
|
95
94
|
------------- | ------------- | ------------- | -------------
|
96
95
|
**vm** | **String**| Identifier of the virtual machine. The parameter must be an identifier for the resource type: VirtualMachine. |
|
97
|
-
**action** | **String**| action=reboot |
|
98
96
|
|
99
97
|
### Return type
|
100
98
|
|
@@ -4,12 +4,12 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**check**](VmStoragePolicyComplianceApi.md#check) | **POST** /vcenter/vm/{vm}/storage/policy/compliance | Returns the storage policy Compliance Compliance.Info of a virtual machine after explicitly re-computing compliance check.
|
7
|
+
[**check**](VmStoragePolicyComplianceApi.md#check) | **POST** /vcenter/vm/{vm}/storage/policy/compliance?action=check | Returns the storage policy Compliance Compliance.Info of a virtual machine after explicitly re-computing compliance check.
|
8
8
|
[**get**](VmStoragePolicyComplianceApi.md#get) | **GET** /vcenter/vm/{vm}/storage/policy/compliance | Returns the cached storage policy compliance information of a virtual machine.
|
9
9
|
|
10
10
|
|
11
11
|
# **check**
|
12
|
-
> VcenterVmStoragePolicyComplianceCheckResult check(vm,
|
12
|
+
> VcenterVmStoragePolicyComplianceCheckResult check(vm, opts)
|
13
13
|
|
14
14
|
Returns the storage policy Compliance Compliance.Info of a virtual machine after explicitly re-computing compliance check.
|
15
15
|
|
@@ -27,14 +27,13 @@ end
|
|
27
27
|
|
28
28
|
api_instance = VSphereAutomation::VCenter::VmStoragePolicyComplianceApi.new
|
29
29
|
vm = 'vm_example' # String | Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine.
|
30
|
-
action = 'action_example' # String | action=check
|
31
30
|
opts = {
|
32
31
|
request_body: VCenter::VcenterVmStoragePolicyComplianceCheck.new # VcenterVmStoragePolicyComplianceCheck |
|
33
32
|
}
|
34
33
|
|
35
34
|
begin
|
36
35
|
#Returns the storage policy Compliance Compliance.Info of a virtual machine after explicitly re-computing compliance check.
|
37
|
-
result = api_instance.check(vm,
|
36
|
+
result = api_instance.check(vm, opts)
|
38
37
|
p result
|
39
38
|
rescue VSphereAutomation::ApiError => e
|
40
39
|
puts "Exception when calling VmStoragePolicyComplianceApi->check: #{e}"
|
@@ -46,7 +45,6 @@ end
|
|
46
45
|
Name | Type | Description | Notes
|
47
46
|
------------- | ------------- | ------------- | -------------
|
48
47
|
**vm** | **String**| Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
|
49
|
-
**action** | **String**| action=check |
|
50
48
|
**request_body** | [**VcenterVmStoragePolicyComplianceCheck**](VcenterVmStoragePolicyComplianceCheck.md)| | [optional]
|
51
49
|
|
52
50
|
### Return type
|
@@ -5,7 +5,7 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**create**](VmTemplateLibraryItemsApi.md#create) | **POST** /vcenter/vm-template/library-items | Creates a library item in content library from a virtual machine. This {@term operation} creates a library item in content library whose content is a virtual machine template created from the source virtual machine, using the supplied create specification. The virtual machine template is stored in a newly created library item.
|
8
|
-
[**deploy**](VmTemplateLibraryItemsApi.md#deploy) | **POST** /vcenter/vm-template/library-items/{template_library_item} | Deploys a virtual machine as a copy of the source virtual machine template contained in the library item specified by {@param.name templateLibraryItem}. It uses the deployment specification in {@param.name spec}. If {@link DeploySpec#poweredOn} and/or {@link DeploySpec#guestCustomization} are specified, the server triggers the power on and/or guest customization operations, which are executed asynchronously.
|
8
|
+
[**deploy**](VmTemplateLibraryItemsApi.md#deploy) | **POST** /vcenter/vm-template/library-items/{template_library_item}?action=deploy | Deploys a virtual machine as a copy of the source virtual machine template contained in the library item specified by {@param.name templateLibraryItem}. It uses the deployment specification in {@param.name spec}. If {@link DeploySpec#poweredOn} and/or {@link DeploySpec#guestCustomization} are specified, the server triggers the power on and/or guest customization operations, which are executed asynchronously.
|
9
9
|
[**get**](VmTemplateLibraryItemsApi.md#get) | **GET** /vcenter/vm-template/library-items/{template_library_item} | Returns information about a virtual machine template contained in the library item specified by {@param.name templateLibraryItem}
|
10
10
|
|
11
11
|
|
@@ -60,7 +60,7 @@ Name | Type | Description | Notes
|
|
60
60
|
|
61
61
|
|
62
62
|
# **deploy**
|
63
|
-
> VcenterVmTemplateLibraryItemsDeployResult deploy(template_library_item,
|
63
|
+
> VcenterVmTemplateLibraryItemsDeployResult deploy(template_library_item, request_body)
|
64
64
|
|
65
65
|
Deploys a virtual machine as a copy of the source virtual machine template contained in the library item specified by {@param.name templateLibraryItem}. It uses the deployment specification in {@param.name spec}. If {@link DeploySpec#poweredOn} and/or {@link DeploySpec#guestCustomization} are specified, the server triggers the power on and/or guest customization operations, which are executed asynchronously.
|
66
66
|
|
@@ -78,12 +78,11 @@ end
|
|
78
78
|
|
79
79
|
api_instance = VSphereAutomation::VCenter::VmTemplateLibraryItemsApi.new
|
80
80
|
template_library_item = 'template_library_item_example' # String | identifier of the content library item containing the source virtual machine template to be deployed.
|
81
|
-
action = 'action_example' # String | action=deploy
|
82
81
|
request_body = VCenter::VcenterVmTemplateLibraryItemsDeploy.new # VcenterVmTemplateLibraryItemsDeploy |
|
83
82
|
|
84
83
|
begin
|
85
84
|
#Deploys a virtual machine as a copy of the source virtual machine template contained in the library item specified by {@param.name templateLibraryItem}. It uses the deployment specification in {@param.name spec}. If {@link DeploySpec#poweredOn} and/or {@link DeploySpec#guestCustomization} are specified, the server triggers the power on and/or guest customization operations, which are executed asynchronously.
|
86
|
-
result = api_instance.deploy(template_library_item,
|
85
|
+
result = api_instance.deploy(template_library_item, request_body)
|
87
86
|
p result
|
88
87
|
rescue VSphereAutomation::ApiError => e
|
89
88
|
puts "Exception when calling VmTemplateLibraryItemsApi->deploy: #{e}"
|
@@ -95,7 +94,6 @@ end
|
|
95
94
|
Name | Type | Description | Notes
|
96
95
|
------------- | ------------- | ------------- | -------------
|
97
96
|
**template_library_item** | **String**| identifier of the content library item containing the source virtual machine template to be deployed. |
|
98
|
-
**action** | **String**| action=deploy |
|
99
97
|
**request_body** | [**VcenterVmTemplateLibraryItemsDeploy**](VcenterVmTemplateLibraryItemsDeploy.md)| |
|
100
98
|
|
101
99
|
### Return type
|
@@ -66,39 +66,28 @@ module VSphereAutomation
|
|
66
66
|
return data, status_code, headers
|
67
67
|
end
|
68
68
|
# Renews the TLS certificate for the given duration period.
|
69
|
-
# @param action action=renew
|
70
69
|
# @param [Hash] opts the optional parameters
|
71
70
|
# @option opts [VcenterCertificateManagementVcenterTlsRenew] :request_body
|
72
71
|
# @return [|VapiStdErrorsErrorError|nil]
|
73
|
-
def renew(
|
74
|
-
renew_with_http_info(
|
72
|
+
def renew(opts = {})
|
73
|
+
renew_with_http_info(opts)
|
75
74
|
nil
|
76
75
|
end
|
77
76
|
|
78
77
|
# Renews the TLS certificate for the given duration period.
|
79
78
|
# @api private
|
80
|
-
# @param action action=renew
|
81
79
|
# @param [Hash] opts the optional parameters
|
82
80
|
# @option opts [VcenterCertificateManagementVcenterTlsRenew] :request_body
|
83
81
|
# @return [Array<(|VapiStdErrorsErrorError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
84
|
-
def renew_with_http_info(
|
82
|
+
def renew_with_http_info(opts = {})
|
85
83
|
if @api_client.config.debugging
|
86
84
|
@api_client.config.logger.debug 'Calling API: CertificateManagementVcenterTlsApi.renew ...'
|
87
85
|
end
|
88
|
-
# verify the required parameter 'action' is set
|
89
|
-
if @api_client.config.client_side_validation && action.nil?
|
90
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling CertificateManagementVcenterTlsApi.renew"
|
91
|
-
end
|
92
|
-
# verify enum value
|
93
|
-
if @api_client.config.client_side_validation && !['renew'].include?(action)
|
94
|
-
fail ArgumentError, "invalid value for 'action', must be one of renew"
|
95
|
-
end
|
96
86
|
# resource path
|
97
|
-
local_var_path = '/vcenter/certificate-management/vcenter/tls'
|
87
|
+
local_var_path = '/vcenter/certificate-management/vcenter/tls?action=renew'
|
98
88
|
|
99
89
|
# query parameters
|
100
90
|
query_params = {}
|
101
|
-
query_params[:'action'] = action
|
102
91
|
|
103
92
|
# header parameters
|
104
93
|
header_params = {}
|
@@ -66,37 +66,26 @@ module VSphereAutomation
|
|
66
66
|
return data, status_code, headers
|
67
67
|
end
|
68
68
|
# Rollback a failed appliance so it can be configured once again.
|
69
|
-
# @param action action=rollback
|
70
69
|
# @param [Hash] opts the optional parameters
|
71
70
|
# @return [|VapiStdErrorsUnsupportedError|VapiStdErrorsUnauthenticatedError|nil]
|
72
|
-
def rollback(
|
73
|
-
rollback_with_http_info(
|
71
|
+
def rollback(opts = {})
|
72
|
+
rollback_with_http_info(opts)
|
74
73
|
nil
|
75
74
|
end
|
76
75
|
|
77
76
|
# Rollback a failed appliance so it can be configured once again.
|
78
77
|
# @api private
|
79
|
-
# @param action action=rollback
|
80
78
|
# @param [Hash] opts the optional parameters
|
81
79
|
# @return [Array<(|VapiStdErrorsUnsupportedError|VapiStdErrorsUnauthenticatedError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
82
|
-
def rollback_with_http_info(
|
80
|
+
def rollback_with_http_info(opts = {})
|
83
81
|
if @api_client.config.debugging
|
84
82
|
@api_client.config.logger.debug 'Calling API: DeploymentApi.rollback ...'
|
85
83
|
end
|
86
|
-
# verify the required parameter 'action' is set
|
87
|
-
if @api_client.config.client_side_validation && action.nil?
|
88
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling DeploymentApi.rollback"
|
89
|
-
end
|
90
|
-
# verify enum value
|
91
|
-
if @api_client.config.client_side_validation && !['rollback'].include?(action)
|
92
|
-
fail ArgumentError, "invalid value for 'action', must be one of rollback"
|
93
|
-
end
|
94
84
|
# resource path
|
95
|
-
local_var_path = '/vcenter/deployment'
|
85
|
+
local_var_path = '/vcenter/deployment?action=rollback'
|
96
86
|
|
97
87
|
# query parameters
|
98
88
|
query_params = {}
|
99
|
-
query_params[:'action'] = action
|
100
89
|
|
101
90
|
# header parameters
|
102
91
|
header_params = {}
|