Skip to content

Latest commit

 

History

History
107 lines (80 loc) · 4.67 KB

RestorePointsApi.md

File metadata and controls

107 lines (80 loc) · 4.67 KB

greenlake_data_services.RestorePointsApi

All URIs are relative to https://eu1.data.cloud.hpe.com

Method HTTP request Description
device_type2_clone_action_on_snapshot_collections POST /api/v1/storage-systems/device-type2/{systemId}/snapshot-collections/{snapshotCollectionId}/actions/clone Perform action clone Nimble / Alletra 6K on a snapshot collection identified by {snapshotCollectionId} in system identified by {systemId}

device_type2_clone_action_on_snapshot_collections

TaskResponse device_type2_clone_action_on_snapshot_collections(system_id, snapshot_collection_id, nimble_clone_snapshot_collections_input)

Perform action clone Nimble / Alletra 6K on a snapshot collection identified by {snapshotCollectionId} in system identified by {systemId}

Perform action clone Nimble / Alletra 6K on a snapshot collection identified by {snapshotCollectionId} in system identified by {systemId}

Example

  • Bearer (JWT) Authentication (JWTAuth):
import time
import greenlake_data_services
from greenlake_data_services.api import restore_points_api
from greenlake_data_services.model.error_response import ErrorResponse
from greenlake_data_services.model.error import Error
from greenlake_data_services.model.nimble_clone_snapshot_collections_input import NimbleCloneSnapshotCollectionsInput
from greenlake_data_services.model.task_response import TaskResponse
from pprint import pprint
# Defining the host is optional and defaults to https://eu1.data.cloud.hpe.com
# See configuration.py for a list of all supported configuration parameters.
configuration = greenlake_data_services.Configuration(
    host = "https://eu1.data.cloud.hpe.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): JWTAuth
configuration = greenlake_data_services.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with greenlake_data_services.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = restore_points_api.RestorePointsApi(api_client)
    system_id = "2a0df0fe6f7dc7bb16000000000000000000004817" # str | ID of the storage system
    snapshot_collection_id = "2a0df0fe6f7dc7bb16000000000000000000000007" # str | Identifier of snapshot Collection. A 42 digit hexadecimal number.
    nimble_clone_snapshot_collections_input = NimbleCloneSnapshotCollectionsInput(
        clone_volumes=[
            CloneVolumesInput(
                clone_volume_name="vol1-clone",
                parent_volume_name="vol1",
            ),
        ],
    ) # NimbleCloneSnapshotCollectionsInput | 

    # example passing only required values which don't have defaults set
    try:
        # Perform action clone Nimble / Alletra 6K on a snapshot collection identified by {snapshotCollectionId} in system identified by {systemId}
        api_response = api_instance.device_type2_clone_action_on_snapshot_collections(system_id, snapshot_collection_id, nimble_clone_snapshot_collections_input)
        pprint(api_response)
    except greenlake_data_services.ApiException as e:
        print("Exception when calling RestorePointsApi->device_type2_clone_action_on_snapshot_collections: %s\n" % e)

Parameters

Name Type Description Notes
system_id str ID of the storage system
snapshot_collection_id str Identifier of snapshot Collection. A 42 digit hexadecimal number.
nimble_clone_snapshot_collections_input NimbleCloneSnapshotCollectionsInput

Return type

TaskResponse

Authorization

JWTAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
202 Accepted -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Storage system object not found -
500 Internal / unexpected error -
503 Appliance in maintenance mode -
0 unexpected error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]