ibm_cloud_power 1.0.2 → 1.1.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 +68 -0
- data/LICENSE.txt +202 -0
- data/README.md +56 -10
- data/docs/CloudConnection.md +41 -0
- data/docs/CloudConnectionCreate.md +23 -0
- data/docs/CloudConnectionEndpointClassic.md +19 -0
- data/docs/CloudConnectionEndpointGRE.md +19 -0
- data/docs/CloudConnectionEndpointVPC.md +19 -0
- data/docs/CloudConnectionGRETunnel.md +21 -0
- data/docs/CloudConnectionSpeed.md +16 -0
- data/docs/CloudConnectionUpdate.md +27 -0
- data/docs/CloudConnectionVPC.md +19 -0
- data/docs/CloudConnectionVirtualPrivateClouds.md +17 -0
- data/docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md +23 -0
- data/docs/CloudConnections.md +17 -0
- data/docs/CreateDataVolume.md +6 -6
- data/docs/CreateImage.md +3 -3
- data/docs/Image.md +2 -0
- data/docs/ImageReference.md +2 -0
- data/docs/MaximumStorageAllocation.md +21 -0
- data/docs/MultiVolumesCreate.md +6 -4
- data/docs/Network.md +1 -1
- data/docs/NetworkPort.md +2 -0
- data/docs/NetworkReference.md +1 -1
- data/docs/PCloudCloudConnectionsApi.md +394 -0
- data/docs/PCloudEventsApi.md +2 -2
- data/docs/PCloudImagesApi.md +104 -6
- data/docs/PCloudPVMInstancesApi.md +60 -5
- data/docs/PCloudPlacementGroupsApi.md +298 -0
- data/docs/PCloudStorageCapacityApi.md +196 -0
- data/docs/PCloudVolumesApi.md +344 -0
- data/docs/PVMInstance.md +3 -1
- data/docs/PVMInstanceCreate.md +5 -3
- data/docs/PlacementGroup.md +23 -0
- data/docs/PlacementGroupCreate.md +19 -0
- data/docs/PlacementGroupServer.md +17 -0
- data/docs/PlacementGroups.md +17 -0
- data/docs/SAPCreate.md +1 -1
- data/docs/StoragePoolCapacity.md +23 -0
- data/docs/StoragePoolsCapacity.md +19 -0
- data/docs/StorageTypeCapacity.md +21 -0
- data/docs/StorageTypesCapacity.md +19 -0
- data/docs/Volume.md +2 -0
- data/docs/VolumeReference.md +2 -0
- data/docs/VolumesCloneAsyncRequest.md +1 -1
- data/docs/VolumesCloneCancel.md +1 -1
- data/docs/VolumesCloneDetail.md +1 -1
- data/docs/VolumesCloneExecute.md +1 -1
- data/lib/ibm_cloud_power.rb +24 -0
- data/lib/ibm_cloud_power/api/p_cloud_cloud_connections_api.rb +560 -0
- data/lib/ibm_cloud_power/api/p_cloud_events_api.rb +2 -2
- data/lib/ibm_cloud_power/api/p_cloud_images_api.rb +133 -4
- data/lib/ibm_cloud_power/api/p_cloud_placement_groups_api.rb +430 -0
- data/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb +82 -5
- data/lib/ibm_cloud_power/api/p_cloud_storage_capacity_api.rb +274 -0
- data/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb +477 -0
- data/lib/ibm_cloud_power/models/cloud_connection.rb +379 -0
- data/lib/ibm_cloud_power/models/cloud_connection_create.rb +249 -0
- data/lib/ibm_cloud_power/models/cloud_connection_endpoint_classic.rb +218 -0
- data/lib/ibm_cloud_power/models/cloud_connection_endpoint_gre.rb +221 -0
- data/lib/ibm_cloud_power/models/cloud_connection_endpoint_vpc.rb +221 -0
- data/lib/ibm_cloud_power/models/cloud_connection_gre_tunnel.rb +239 -0
- data/lib/ibm_cloud_power/models/cloud_connection_speed.rb +42 -0
- data/lib/ibm_cloud_power/models/cloud_connection_update.rb +257 -0
- data/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds.rb +216 -0
- data/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds.rb +259 -0
- data/lib/ibm_cloud_power/models/cloud_connection_vpc.rb +224 -0
- data/lib/ibm_cloud_power/models/cloud_connections.rb +216 -0
- data/lib/ibm_cloud_power/models/create_data_volume.rb +17 -17
- data/lib/ibm_cloud_power/models/create_image.rb +3 -3
- data/lib/ibm_cloud_power/models/image.rb +16 -1
- data/lib/ibm_cloud_power/models/image_reference.rb +16 -1
- data/lib/ibm_cloud_power/models/maximum_storage_allocation.rb +245 -0
- data/lib/ibm_cloud_power/models/multi_volumes_create.rb +17 -7
- data/lib/ibm_cloud_power/models/network.rb +1 -1
- data/lib/ibm_cloud_power/models/network_port.rb +11 -1
- data/lib/ibm_cloud_power/models/network_reference.rb +1 -1
- data/lib/ibm_cloud_power/models/placement_group.rb +295 -0
- data/lib/ibm_cloud_power/models/placement_group_create.rb +263 -0
- data/lib/ibm_cloud_power/models/placement_group_server.rb +214 -0
- data/lib/ibm_cloud_power/models/placement_groups.rb +216 -0
- data/lib/ibm_cloud_power/models/pvm_instance.rb +17 -5
- data/lib/ibm_cloud_power/models/pvm_instance_create.rb +16 -6
- data/lib/ibm_cloud_power/models/pvm_instance_reference.rb +2 -2
- data/lib/ibm_cloud_power/models/sap_create.rb +1 -1
- data/lib/ibm_cloud_power/models/storage_pool_capacity.rb +245 -0
- data/lib/ibm_cloud_power/models/storage_pools_capacity.rb +220 -0
- data/lib/ibm_cloud_power/models/storage_type_capacity.rb +231 -0
- data/lib/ibm_cloud_power/models/storage_types_capacity.rb +220 -0
- data/lib/ibm_cloud_power/models/volume.rb +11 -1
- data/lib/ibm_cloud_power/models/volume_reference.rb +11 -1
- data/lib/ibm_cloud_power/models/volumes_clone_async_request.rb +1 -1
- data/lib/ibm_cloud_power/models/volumes_clone_cancel.rb +1 -1
- data/lib/ibm_cloud_power/models/volumes_clone_detail.rb +1 -1
- data/lib/ibm_cloud_power/models/volumes_clone_execute.rb +1 -1
- data/lib/ibm_cloud_power/version.rb +1 -1
- data/spec/api/p_cloud_cloud_connections_api_spec.rb +132 -0
- data/spec/api/p_cloud_placement_groups_api_spec.rb +108 -0
- data/spec/api/p_cloud_storage_capacity_api_spec.rb +81 -0
- data/spec/models/cloud_connection_create_spec.rb +59 -0
- data/spec/models/cloud_connection_endpoint_classic_spec.rb +47 -0
- data/spec/models/cloud_connection_endpoint_gre_spec.rb +47 -0
- data/spec/models/cloud_connection_endpoint_vpc_spec.rb +47 -0
- data/spec/models/cloud_connection_gre_tunnel_spec.rb +53 -0
- data/spec/models/cloud_connection_spec.rb +113 -0
- data/spec/models/cloud_connection_speed_spec.rb +35 -0
- data/spec/models/cloud_connection_update_spec.rb +71 -0
- data/spec/models/cloud_connection_virtual_private_clouds_spec.rb +41 -0
- data/spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb +59 -0
- data/spec/models/cloud_connection_vpc_spec.rb +47 -0
- data/spec/models/cloud_connections_spec.rb +41 -0
- data/spec/models/maximum_storage_allocation_spec.rb +53 -0
- data/spec/models/placement_group_create_spec.rb +51 -0
- data/spec/models/placement_group_server_spec.rb +41 -0
- data/spec/models/placement_group_spec.rb +63 -0
- data/spec/models/placement_groups_spec.rb +41 -0
- data/spec/models/storage_pool_capacity_spec.rb +59 -0
- data/spec/models/storage_pools_capacity_spec.rb +47 -0
- data/spec/models/storage_type_capacity_spec.rb +53 -0
- data/spec/models/storage_types_capacity_spec.rb +47 -0
- metadata +130 -32
@@ -0,0 +1,196 @@
|
|
1
|
+
# IbmCloudPower::PCloudStorageCapacityApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**pcloud_storagecapacity_pools_get**](PCloudStorageCapacityApi.md#pcloud_storagecapacity_pools_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools/{storage_pool_name} | Storage capacity for a storage pool in a region
|
8
|
+
[**pcloud_storagecapacity_pools_getall**](PCloudStorageCapacityApi.md#pcloud_storagecapacity_pools_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools | Storage capacity for all available storage pools in a region
|
9
|
+
[**pcloud_storagecapacity_types_get**](PCloudStorageCapacityApi.md#pcloud_storagecapacity_types_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types/{storage_type_name} | Storage capacity for a storage type in a region
|
10
|
+
[**pcloud_storagecapacity_types_getall**](PCloudStorageCapacityApi.md#pcloud_storagecapacity_types_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types | Storage capacity for all available storage types in a region
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## pcloud_storagecapacity_pools_get
|
15
|
+
|
16
|
+
> StoragePoolCapacity pcloud_storagecapacity_pools_get(cloud_instance_id, storage_pool_name)
|
17
|
+
|
18
|
+
Storage capacity for a storage pool in a region
|
19
|
+
|
20
|
+
### Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'ibm_cloud_power'
|
25
|
+
|
26
|
+
api_instance = IbmCloudPower::PCloudStorageCapacityApi.new
|
27
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
28
|
+
storage_pool_name = 'storage_pool_name_example' # String | Storage pool name
|
29
|
+
|
30
|
+
begin
|
31
|
+
#Storage capacity for a storage pool in a region
|
32
|
+
result = api_instance.pcloud_storagecapacity_pools_get(cloud_instance_id, storage_pool_name)
|
33
|
+
p result
|
34
|
+
rescue IbmCloudPower::ApiError => e
|
35
|
+
puts "Exception when calling PCloudStorageCapacityApi->pcloud_storagecapacity_pools_get: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Parameters
|
40
|
+
|
41
|
+
|
42
|
+
Name | Type | Description | Notes
|
43
|
+
------------- | ------------- | ------------- | -------------
|
44
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
45
|
+
**storage_pool_name** | **String**| Storage pool name |
|
46
|
+
|
47
|
+
### Return type
|
48
|
+
|
49
|
+
[**StoragePoolCapacity**](StoragePoolCapacity.md)
|
50
|
+
|
51
|
+
### Authorization
|
52
|
+
|
53
|
+
No authorization required
|
54
|
+
|
55
|
+
### HTTP request headers
|
56
|
+
|
57
|
+
- **Content-Type**: Not defined
|
58
|
+
- **Accept**: application/json
|
59
|
+
|
60
|
+
|
61
|
+
## pcloud_storagecapacity_pools_getall
|
62
|
+
|
63
|
+
> StoragePoolsCapacity pcloud_storagecapacity_pools_getall(cloud_instance_id)
|
64
|
+
|
65
|
+
Storage capacity for all available storage pools in a region
|
66
|
+
|
67
|
+
### Example
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
# load the gem
|
71
|
+
require 'ibm_cloud_power'
|
72
|
+
|
73
|
+
api_instance = IbmCloudPower::PCloudStorageCapacityApi.new
|
74
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
75
|
+
|
76
|
+
begin
|
77
|
+
#Storage capacity for all available storage pools in a region
|
78
|
+
result = api_instance.pcloud_storagecapacity_pools_getall(cloud_instance_id)
|
79
|
+
p result
|
80
|
+
rescue IbmCloudPower::ApiError => e
|
81
|
+
puts "Exception when calling PCloudStorageCapacityApi->pcloud_storagecapacity_pools_getall: #{e}"
|
82
|
+
end
|
83
|
+
```
|
84
|
+
|
85
|
+
### Parameters
|
86
|
+
|
87
|
+
|
88
|
+
Name | Type | Description | Notes
|
89
|
+
------------- | ------------- | ------------- | -------------
|
90
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
91
|
+
|
92
|
+
### Return type
|
93
|
+
|
94
|
+
[**StoragePoolsCapacity**](StoragePoolsCapacity.md)
|
95
|
+
|
96
|
+
### Authorization
|
97
|
+
|
98
|
+
No authorization required
|
99
|
+
|
100
|
+
### HTTP request headers
|
101
|
+
|
102
|
+
- **Content-Type**: Not defined
|
103
|
+
- **Accept**: application/json
|
104
|
+
|
105
|
+
|
106
|
+
## pcloud_storagecapacity_types_get
|
107
|
+
|
108
|
+
> StorageTypeCapacity pcloud_storagecapacity_types_get(cloud_instance_id, storage_type_name)
|
109
|
+
|
110
|
+
Storage capacity for a storage type in a region
|
111
|
+
|
112
|
+
### Example
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
# load the gem
|
116
|
+
require 'ibm_cloud_power'
|
117
|
+
|
118
|
+
api_instance = IbmCloudPower::PCloudStorageCapacityApi.new
|
119
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
120
|
+
storage_type_name = 'storage_type_name_example' # String | Storage type name
|
121
|
+
|
122
|
+
begin
|
123
|
+
#Storage capacity for a storage type in a region
|
124
|
+
result = api_instance.pcloud_storagecapacity_types_get(cloud_instance_id, storage_type_name)
|
125
|
+
p result
|
126
|
+
rescue IbmCloudPower::ApiError => e
|
127
|
+
puts "Exception when calling PCloudStorageCapacityApi->pcloud_storagecapacity_types_get: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
|
134
|
+
Name | Type | Description | Notes
|
135
|
+
------------- | ------------- | ------------- | -------------
|
136
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
137
|
+
**storage_type_name** | **String**| Storage type name |
|
138
|
+
|
139
|
+
### Return type
|
140
|
+
|
141
|
+
[**StorageTypeCapacity**](StorageTypeCapacity.md)
|
142
|
+
|
143
|
+
### Authorization
|
144
|
+
|
145
|
+
No authorization required
|
146
|
+
|
147
|
+
### HTTP request headers
|
148
|
+
|
149
|
+
- **Content-Type**: Not defined
|
150
|
+
- **Accept**: application/json
|
151
|
+
|
152
|
+
|
153
|
+
## pcloud_storagecapacity_types_getall
|
154
|
+
|
155
|
+
> StorageTypesCapacity pcloud_storagecapacity_types_getall(cloud_instance_id)
|
156
|
+
|
157
|
+
Storage capacity for all available storage types in a region
|
158
|
+
|
159
|
+
### Example
|
160
|
+
|
161
|
+
```ruby
|
162
|
+
# load the gem
|
163
|
+
require 'ibm_cloud_power'
|
164
|
+
|
165
|
+
api_instance = IbmCloudPower::PCloudStorageCapacityApi.new
|
166
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
167
|
+
|
168
|
+
begin
|
169
|
+
#Storage capacity for all available storage types in a region
|
170
|
+
result = api_instance.pcloud_storagecapacity_types_getall(cloud_instance_id)
|
171
|
+
p result
|
172
|
+
rescue IbmCloudPower::ApiError => e
|
173
|
+
puts "Exception when calling PCloudStorageCapacityApi->pcloud_storagecapacity_types_getall: #{e}"
|
174
|
+
end
|
175
|
+
```
|
176
|
+
|
177
|
+
### Parameters
|
178
|
+
|
179
|
+
|
180
|
+
Name | Type | Description | Notes
|
181
|
+
------------- | ------------- | ------------- | -------------
|
182
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
183
|
+
|
184
|
+
### Return type
|
185
|
+
|
186
|
+
[**StorageTypesCapacity**](StorageTypesCapacity.md)
|
187
|
+
|
188
|
+
### Authorization
|
189
|
+
|
190
|
+
No authorization required
|
191
|
+
|
192
|
+
### HTTP request headers
|
193
|
+
|
194
|
+
- **Content-Type**: Not defined
|
195
|
+
- **Accept**: application/json
|
196
|
+
|
data/docs/PCloudVolumesApi.md
CHANGED
@@ -18,6 +18,13 @@ Method | HTTP request | Description
|
|
18
18
|
[**pcloud_v2_volumes_clone_post**](PCloudVolumesApi.md#pcloud_v2_volumes_clone_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone | Create a volume clone for specified volumes (version 2)
|
19
19
|
[**pcloud_v2_volumes_clonetasks_get**](PCloudVolumesApi.md#pcloud_v2_volumes_clonetasks_get) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone-tasks/{clone_task_id} | Get the status of a volume clone request for the specified clone task ID
|
20
20
|
[**pcloud_v2_volumes_post**](PCloudVolumesApi.md#pcloud_v2_volumes_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes | Create multiple data volumes from a single definition
|
21
|
+
[**pcloud_v2_volumesclone_cancel_post**](PCloudVolumesApi.md#pcloud_v2_volumesclone_cancel_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/cancel | Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes.
|
22
|
+
[**pcloud_v2_volumesclone_delete**](PCloudVolumesApi.md#pcloud_v2_volumesclone_delete) | **DELETE** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id} | Delete a volumes-clone request
|
23
|
+
[**pcloud_v2_volumesclone_execute_post**](PCloudVolumesApi.md#pcloud_v2_volumesclone_execute_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/execute | Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots.
|
24
|
+
[**pcloud_v2_volumesclone_get**](PCloudVolumesApi.md#pcloud_v2_volumesclone_get) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id} | Get the details for a volumes-clone request
|
25
|
+
[**pcloud_v2_volumesclone_getall**](PCloudVolumesApi.md#pcloud_v2_volumesclone_getall) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone | Get the list of volumes-clone request for a cloud instance
|
26
|
+
[**pcloud_v2_volumesclone_post**](PCloudVolumesApi.md#pcloud_v2_volumesclone_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone | Create a new volumes clone request and initiate the Prepare action
|
27
|
+
[**pcloud_v2_volumesclone_start_post**](PCloudVolumesApi.md#pcloud_v2_volumesclone_start_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/start | Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy.
|
21
28
|
[**pcloud_volumes_clone_post**](PCloudVolumesApi.md#pcloud_volumes_clone_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/clone | Create a volume clone for specified volumes (version 1 - depricated)
|
22
29
|
|
23
30
|
|
@@ -698,6 +705,343 @@ No authorization required
|
|
698
705
|
- **Accept**: application/json
|
699
706
|
|
700
707
|
|
708
|
+
## pcloud_v2_volumesclone_cancel_post
|
709
|
+
|
710
|
+
> VolumesClone pcloud_v2_volumesclone_cancel_post(cloud_instance_id, volumes_clone_id, opts)
|
711
|
+
|
712
|
+
Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes.
|
713
|
+
|
714
|
+
### Example
|
715
|
+
|
716
|
+
```ruby
|
717
|
+
# load the gem
|
718
|
+
require 'ibm_cloud_power'
|
719
|
+
|
720
|
+
api_instance = IbmCloudPower::PCloudVolumesApi.new
|
721
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
722
|
+
volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name
|
723
|
+
opts = {
|
724
|
+
body: IbmCloudPower::VolumesCloneCancel.new # VolumesCloneCancel | Parameters for cancelling a volumes-clone request
|
725
|
+
}
|
726
|
+
|
727
|
+
begin
|
728
|
+
#Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes.
|
729
|
+
result = api_instance.pcloud_v2_volumesclone_cancel_post(cloud_instance_id, volumes_clone_id, opts)
|
730
|
+
p result
|
731
|
+
rescue IbmCloudPower::ApiError => e
|
732
|
+
puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_cancel_post: #{e}"
|
733
|
+
end
|
734
|
+
```
|
735
|
+
|
736
|
+
### Parameters
|
737
|
+
|
738
|
+
|
739
|
+
Name | Type | Description | Notes
|
740
|
+
------------- | ------------- | ------------- | -------------
|
741
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
742
|
+
**volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name |
|
743
|
+
**body** | [**VolumesCloneCancel**](VolumesCloneCancel.md)| Parameters for cancelling a volumes-clone request | [optional]
|
744
|
+
|
745
|
+
### Return type
|
746
|
+
|
747
|
+
[**VolumesClone**](VolumesClone.md)
|
748
|
+
|
749
|
+
### Authorization
|
750
|
+
|
751
|
+
No authorization required
|
752
|
+
|
753
|
+
### HTTP request headers
|
754
|
+
|
755
|
+
- **Content-Type**: application/json
|
756
|
+
- **Accept**: application/json
|
757
|
+
|
758
|
+
|
759
|
+
## pcloud_v2_volumesclone_delete
|
760
|
+
|
761
|
+
> Object pcloud_v2_volumesclone_delete(cloud_instance_id, volumes_clone_id)
|
762
|
+
|
763
|
+
Delete a volumes-clone request
|
764
|
+
|
765
|
+
### Example
|
766
|
+
|
767
|
+
```ruby
|
768
|
+
# load the gem
|
769
|
+
require 'ibm_cloud_power'
|
770
|
+
|
771
|
+
api_instance = IbmCloudPower::PCloudVolumesApi.new
|
772
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
773
|
+
volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name
|
774
|
+
|
775
|
+
begin
|
776
|
+
#Delete a volumes-clone request
|
777
|
+
result = api_instance.pcloud_v2_volumesclone_delete(cloud_instance_id, volumes_clone_id)
|
778
|
+
p result
|
779
|
+
rescue IbmCloudPower::ApiError => e
|
780
|
+
puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_delete: #{e}"
|
781
|
+
end
|
782
|
+
```
|
783
|
+
|
784
|
+
### Parameters
|
785
|
+
|
786
|
+
|
787
|
+
Name | Type | Description | Notes
|
788
|
+
------------- | ------------- | ------------- | -------------
|
789
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
790
|
+
**volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name |
|
791
|
+
|
792
|
+
### Return type
|
793
|
+
|
794
|
+
**Object**
|
795
|
+
|
796
|
+
### Authorization
|
797
|
+
|
798
|
+
No authorization required
|
799
|
+
|
800
|
+
### HTTP request headers
|
801
|
+
|
802
|
+
- **Content-Type**: Not defined
|
803
|
+
- **Accept**: */*
|
804
|
+
|
805
|
+
|
806
|
+
## pcloud_v2_volumesclone_execute_post
|
807
|
+
|
808
|
+
> VolumesClone pcloud_v2_volumesclone_execute_post(cloud_instance_id, volumes_clone_id, body)
|
809
|
+
|
810
|
+
Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots.
|
811
|
+
|
812
|
+
### Example
|
813
|
+
|
814
|
+
```ruby
|
815
|
+
# load the gem
|
816
|
+
require 'ibm_cloud_power'
|
817
|
+
|
818
|
+
api_instance = IbmCloudPower::PCloudVolumesApi.new
|
819
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
820
|
+
volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name
|
821
|
+
body = IbmCloudPower::VolumesCloneExecute.new # VolumesCloneExecute | Parameters for the cloning of volumes
|
822
|
+
|
823
|
+
begin
|
824
|
+
#Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots.
|
825
|
+
result = api_instance.pcloud_v2_volumesclone_execute_post(cloud_instance_id, volumes_clone_id, body)
|
826
|
+
p result
|
827
|
+
rescue IbmCloudPower::ApiError => e
|
828
|
+
puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_execute_post: #{e}"
|
829
|
+
end
|
830
|
+
```
|
831
|
+
|
832
|
+
### Parameters
|
833
|
+
|
834
|
+
|
835
|
+
Name | Type | Description | Notes
|
836
|
+
------------- | ------------- | ------------- | -------------
|
837
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
838
|
+
**volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name |
|
839
|
+
**body** | [**VolumesCloneExecute**](VolumesCloneExecute.md)| Parameters for the cloning of volumes |
|
840
|
+
|
841
|
+
### Return type
|
842
|
+
|
843
|
+
[**VolumesClone**](VolumesClone.md)
|
844
|
+
|
845
|
+
### Authorization
|
846
|
+
|
847
|
+
No authorization required
|
848
|
+
|
849
|
+
### HTTP request headers
|
850
|
+
|
851
|
+
- **Content-Type**: application/json
|
852
|
+
- **Accept**: application/json
|
853
|
+
|
854
|
+
|
855
|
+
## pcloud_v2_volumesclone_get
|
856
|
+
|
857
|
+
> VolumesCloneDetail pcloud_v2_volumesclone_get(cloud_instance_id, volumes_clone_id)
|
858
|
+
|
859
|
+
Get the details for a volumes-clone request
|
860
|
+
|
861
|
+
### Example
|
862
|
+
|
863
|
+
```ruby
|
864
|
+
# load the gem
|
865
|
+
require 'ibm_cloud_power'
|
866
|
+
|
867
|
+
api_instance = IbmCloudPower::PCloudVolumesApi.new
|
868
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
869
|
+
volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name
|
870
|
+
|
871
|
+
begin
|
872
|
+
#Get the details for a volumes-clone request
|
873
|
+
result = api_instance.pcloud_v2_volumesclone_get(cloud_instance_id, volumes_clone_id)
|
874
|
+
p result
|
875
|
+
rescue IbmCloudPower::ApiError => e
|
876
|
+
puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_get: #{e}"
|
877
|
+
end
|
878
|
+
```
|
879
|
+
|
880
|
+
### Parameters
|
881
|
+
|
882
|
+
|
883
|
+
Name | Type | Description | Notes
|
884
|
+
------------- | ------------- | ------------- | -------------
|
885
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
886
|
+
**volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name |
|
887
|
+
|
888
|
+
### Return type
|
889
|
+
|
890
|
+
[**VolumesCloneDetail**](VolumesCloneDetail.md)
|
891
|
+
|
892
|
+
### Authorization
|
893
|
+
|
894
|
+
No authorization required
|
895
|
+
|
896
|
+
### HTTP request headers
|
897
|
+
|
898
|
+
- **Content-Type**: Not defined
|
899
|
+
- **Accept**: application/json
|
900
|
+
|
901
|
+
|
902
|
+
## pcloud_v2_volumesclone_getall
|
903
|
+
|
904
|
+
> VolumesClones pcloud_v2_volumesclone_getall(cloud_instance_id, opts)
|
905
|
+
|
906
|
+
Get the list of volumes-clone request for a cloud instance
|
907
|
+
|
908
|
+
### Example
|
909
|
+
|
910
|
+
```ruby
|
911
|
+
# load the gem
|
912
|
+
require 'ibm_cloud_power'
|
913
|
+
|
914
|
+
api_instance = IbmCloudPower::PCloudVolumesApi.new
|
915
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
916
|
+
opts = {
|
917
|
+
filter: 'filter_example' # String | volumes-clone filter to limit list items: prepare - includes status values (preparing, prepared) start - includes status values (starting, available) execute - includes status values (executing, available-rollback) cancel - includes status values (cancelling) completed - includes status values (completed) failed - includes status values (failed) cancelled - includes status values (cancelled) finalized - included status values (completed, failed, cancelled)
|
918
|
+
}
|
919
|
+
|
920
|
+
begin
|
921
|
+
#Get the list of volumes-clone request for a cloud instance
|
922
|
+
result = api_instance.pcloud_v2_volumesclone_getall(cloud_instance_id, opts)
|
923
|
+
p result
|
924
|
+
rescue IbmCloudPower::ApiError => e
|
925
|
+
puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_getall: #{e}"
|
926
|
+
end
|
927
|
+
```
|
928
|
+
|
929
|
+
### Parameters
|
930
|
+
|
931
|
+
|
932
|
+
Name | Type | Description | Notes
|
933
|
+
------------- | ------------- | ------------- | -------------
|
934
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
935
|
+
**filter** | **String**| volumes-clone filter to limit list items: prepare - includes status values (preparing, prepared) start - includes status values (starting, available) execute - includes status values (executing, available-rollback) cancel - includes status values (cancelling) completed - includes status values (completed) failed - includes status values (failed) cancelled - includes status values (cancelled) finalized - included status values (completed, failed, cancelled) | [optional]
|
936
|
+
|
937
|
+
### Return type
|
938
|
+
|
939
|
+
[**VolumesClones**](VolumesClones.md)
|
940
|
+
|
941
|
+
### Authorization
|
942
|
+
|
943
|
+
No authorization required
|
944
|
+
|
945
|
+
### HTTP request headers
|
946
|
+
|
947
|
+
- **Content-Type**: Not defined
|
948
|
+
- **Accept**: application/json
|
949
|
+
|
950
|
+
|
951
|
+
## pcloud_v2_volumesclone_post
|
952
|
+
|
953
|
+
> VolumesClone pcloud_v2_volumesclone_post(cloud_instance_id, body)
|
954
|
+
|
955
|
+
Create a new volumes clone request and initiate the Prepare action
|
956
|
+
|
957
|
+
### Example
|
958
|
+
|
959
|
+
```ruby
|
960
|
+
# load the gem
|
961
|
+
require 'ibm_cloud_power'
|
962
|
+
|
963
|
+
api_instance = IbmCloudPower::PCloudVolumesApi.new
|
964
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
965
|
+
body = IbmCloudPower::VolumesCloneCreate.new # VolumesCloneCreate | Parameters for preparing a set of volumes to be cloned (This API requires a minimum of two volumes, a minimum of one volume to be in the 'in-use' state, and a unique volume clone name. The Prepare action does the preparatory work for creating the snapshot volumes.)
|
966
|
+
|
967
|
+
begin
|
968
|
+
#Create a new volumes clone request and initiate the Prepare action
|
969
|
+
result = api_instance.pcloud_v2_volumesclone_post(cloud_instance_id, body)
|
970
|
+
p result
|
971
|
+
rescue IbmCloudPower::ApiError => e
|
972
|
+
puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_post: #{e}"
|
973
|
+
end
|
974
|
+
```
|
975
|
+
|
976
|
+
### Parameters
|
977
|
+
|
978
|
+
|
979
|
+
Name | Type | Description | Notes
|
980
|
+
------------- | ------------- | ------------- | -------------
|
981
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
982
|
+
**body** | [**VolumesCloneCreate**](VolumesCloneCreate.md)| Parameters for preparing a set of volumes to be cloned (This API requires a minimum of two volumes, a minimum of one volume to be in the 'in-use' state, and a unique volume clone name. The Prepare action does the preparatory work for creating the snapshot volumes.) |
|
983
|
+
|
984
|
+
### Return type
|
985
|
+
|
986
|
+
[**VolumesClone**](VolumesClone.md)
|
987
|
+
|
988
|
+
### Authorization
|
989
|
+
|
990
|
+
No authorization required
|
991
|
+
|
992
|
+
### HTTP request headers
|
993
|
+
|
994
|
+
- **Content-Type**: application/json
|
995
|
+
- **Accept**: application/json
|
996
|
+
|
997
|
+
|
998
|
+
## pcloud_v2_volumesclone_start_post
|
999
|
+
|
1000
|
+
> VolumesClone pcloud_v2_volumesclone_start_post(cloud_instance_id, volumes_clone_id)
|
1001
|
+
|
1002
|
+
Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy.
|
1003
|
+
|
1004
|
+
### Example
|
1005
|
+
|
1006
|
+
```ruby
|
1007
|
+
# load the gem
|
1008
|
+
require 'ibm_cloud_power'
|
1009
|
+
|
1010
|
+
api_instance = IbmCloudPower::PCloudVolumesApi.new
|
1011
|
+
cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
|
1012
|
+
volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name
|
1013
|
+
|
1014
|
+
begin
|
1015
|
+
#Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy.
|
1016
|
+
result = api_instance.pcloud_v2_volumesclone_start_post(cloud_instance_id, volumes_clone_id)
|
1017
|
+
p result
|
1018
|
+
rescue IbmCloudPower::ApiError => e
|
1019
|
+
puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_start_post: #{e}"
|
1020
|
+
end
|
1021
|
+
```
|
1022
|
+
|
1023
|
+
### Parameters
|
1024
|
+
|
1025
|
+
|
1026
|
+
Name | Type | Description | Notes
|
1027
|
+
------------- | ------------- | ------------- | -------------
|
1028
|
+
**cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
|
1029
|
+
**volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name |
|
1030
|
+
|
1031
|
+
### Return type
|
1032
|
+
|
1033
|
+
[**VolumesClone**](VolumesClone.md)
|
1034
|
+
|
1035
|
+
### Authorization
|
1036
|
+
|
1037
|
+
No authorization required
|
1038
|
+
|
1039
|
+
### HTTP request headers
|
1040
|
+
|
1041
|
+
- **Content-Type**: Not defined
|
1042
|
+
- **Accept**: */*, application/json
|
1043
|
+
|
1044
|
+
|
701
1045
|
## pcloud_volumes_clone_post
|
702
1046
|
|
703
1047
|
> VolumesCloneResponse pcloud_volumes_clone_post(cloud_instance_id, body)
|