Skip to content

Latest commit

 

History

History
212 lines (160 loc) · 8.64 KB

HostPathsApi.md

File metadata and controls

212 lines (160 loc) · 8.64 KB

greenlake_data_services.HostPathsApi

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

Method HTTP request Description
device_type1_get_all_host_paths GET /api/v1/storage-systems/device-type1/{systemId}/host-paths Get details of Primera / Alletra 9K Host Paths
device_type1_get_host_paths_by_id GET /api/v1/storage-systems/device-type1/{systemId}/host-paths/{hostPathId} Get details of Primera / Alletra 9K Host Path identified by {HostPathId}

device_type1_get_all_host_paths

PrimeraHostPathList device_type1_get_all_host_paths(system_id)

Get details of Primera / Alletra 9K Host Paths

Get details of Primera / Alletra 9K Host Paths

Example

  • Bearer (JWT) Authentication (JWTAuth):
import time
import greenlake_data_services
from greenlake_data_services.api import host_paths_api
from greenlake_data_services.model.error_response import ErrorResponse
from greenlake_data_services.model.error import Error
from greenlake_data_services.model.primera_host_path_list import PrimeraHostPathList
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 = host_paths_api.HostPathsApi(api_client)
    system_id = "7CE751P312" # str | systemId of the device-type1 storage system
    limit = 10 # int | Number of items to return at a time (optional)
    offset = 5 # int | The offset of the first item in the collection to return (optional)
    filter = "id eq 2a0df0fe6f7dc7bb16000000000000000000004817" # str | Lucene query to filter host path by Key. (optional)
    sort = "HostSpeed desc" # str | oData query to sort host path resource by Key. (optional)
    select = "id" # str | Query to select only the required parameters, separated by . if nested (optional)

    # example passing only required values which don't have defaults set
    try:
        # Get details of Primera / Alletra 9K Host Paths
        api_response = api_instance.device_type1_get_all_host_paths(system_id)
        pprint(api_response)
    except greenlake_data_services.ApiException as e:
        print("Exception when calling HostPathsApi->device_type1_get_all_host_paths: %s\n" % e)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Get details of Primera / Alletra 9K Host Paths
        api_response = api_instance.device_type1_get_all_host_paths(system_id, limit=limit, offset=offset, filter=filter, sort=sort, select=select)
        pprint(api_response)
    except greenlake_data_services.ApiException as e:
        print("Exception when calling HostPathsApi->device_type1_get_all_host_paths: %s\n" % e)

Parameters

Name Type Description Notes
system_id str systemId of the device-type1 storage system
limit int Number of items to return at a time [optional]
offset int The offset of the first item in the collection to return [optional]
filter str Lucene query to filter host path by Key. [optional]
sort str oData query to sort host path resource by Key. [optional]
select str Query to select only the required parameters, separated by . if nested [optional]

Return type

PrimeraHostPathList

Authorization

JWTAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Success -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
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]

device_type1_get_host_paths_by_id

PrimeraHostPaths device_type1_get_host_paths_by_id(system_id, host_path_id)

Get details of Primera / Alletra 9K Host Path identified by {HostPathId}

Get details of Primera / Alletra 9K Host Path identified by {HostPathId}

Example

  • Bearer (JWT) Authentication (JWTAuth):
import time
import greenlake_data_services
from greenlake_data_services.api import host_paths_api
from greenlake_data_services.model.error_response import ErrorResponse
from greenlake_data_services.model.error import Error
from greenlake_data_services.model.primera_host_paths import PrimeraHostPaths
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 = host_paths_api.HostPathsApi(api_client)
    system_id = "7CE751P312" # str | systemId of the device-type1 storage system
    host_path_id = "2a0df0fe6f7dc7bb16000000000000000000004817" # str | ID of the primera Host Path. A 42 digit hexadecimal number.
    select = "id" # str | Query to select only the required parameters, separated by . if nested (optional)

    # example passing only required values which don't have defaults set
    try:
        # Get details of Primera / Alletra 9K Host Path identified by {HostPathId}
        api_response = api_instance.device_type1_get_host_paths_by_id(system_id, host_path_id)
        pprint(api_response)
    except greenlake_data_services.ApiException as e:
        print("Exception when calling HostPathsApi->device_type1_get_host_paths_by_id: %s\n" % e)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Get details of Primera / Alletra 9K Host Path identified by {HostPathId}
        api_response = api_instance.device_type1_get_host_paths_by_id(system_id, host_path_id, select=select)
        pprint(api_response)
    except greenlake_data_services.ApiException as e:
        print("Exception when calling HostPathsApi->device_type1_get_host_paths_by_id: %s\n" % e)

Parameters

Name Type Description Notes
system_id str systemId of the device-type1 storage system
host_path_id str ID of the primera Host Path. A 42 digit hexadecimal number.
select str Query to select only the required parameters, separated by . if nested [optional]

Return type

PrimeraHostPaths

Authorization

JWTAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Success -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
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]