All URIs are relative to https://api.pure1.purestorage.com/fusion/api/1.2
| Method | HTTP request | Description |
|---|---|---|
| create_storage_service | POST /storage-services | (Provider) Creates a Storage Service. |
| delete_storage_service | DELETE /storage-services/{storage_service_name} | (Provider) Deletes a Storage Service. |
| get_storage_service | GET /storage-services/{storage_service_name} | Gets a specific Storage Service. |
| get_storage_service_by_id | GET /resources/storage-services/{storage_service_id} | Gets a specific Storage Service. |
| list_storage_services | GET /storage-services | Gets a list of all Storage Services. |
| update_storage_service | PATCH /storage-services/{storage_service_name} | (Provider) Updates a Storage Service. |
Operation create_storage_service(body, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
(Provider) Creates a Storage Service.
from __future__ import print_function
import time
import fusion
from fusion.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = fusion.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = fusion.StorageServicesApi(fusion.ApiClient(configuration))
body = fusion.StorageServicePost() # StorageServicePost |
x_request_id = 'x_request_id_example' # str | The Request ID supplied with the request, used to perform operations idempotently. (optional)
authorization = 'authorization_example' # str | Access token (in JWT format) required to use any API endpoint. (optional)
x_correlation_id = 'x_correlation_id_example' # str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. (optional)
try:
# (Provider) Creates a Storage Service.
api_response = api_instance.create_storage_service(body, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling StorageServicesApi->create_storage_service: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | StorageServicePost | ||
| x_request_id | str | The Request ID supplied with the request, used to perform operations idempotently. | [optional] |
| authorization | str | Access token (in JWT format) required to use any API endpoint. | [optional] |
| x_correlation_id | str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Operation delete_storage_service(storage_service_name, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
(Provider) Deletes a Storage Service.
from __future__ import print_function
import time
import fusion
from fusion.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = fusion.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = fusion.StorageServicesApi(fusion.ApiClient(configuration))
storage_service_name = 'storage_service_name_example' # str | The Storage Service name
x_request_id = 'x_request_id_example' # str | The Request ID supplied with the request, used to perform operations idempotently. (optional)
authorization = 'authorization_example' # str | Access token (in JWT format) required to use any API endpoint. (optional)
x_correlation_id = 'x_correlation_id_example' # str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. (optional)
try:
# (Provider) Deletes a Storage Service.
api_response = api_instance.delete_storage_service(storage_service_name, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling StorageServicesApi->delete_storage_service: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| storage_service_name | str | The Storage Service name | |
| x_request_id | str | The Request ID supplied with the request, used to perform operations idempotently. | [optional] |
| authorization | str | Access token (in JWT format) required to use any API endpoint. | [optional] |
| x_correlation_id | str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StorageService get_storage_service(storage_service_name, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
Gets a specific Storage Service.
from __future__ import print_function
import time
import fusion
from fusion.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = fusion.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = fusion.StorageServicesApi(fusion.ApiClient(configuration))
storage_service_name = 'storage_service_name_example' # str | The Storage Service name
x_request_id = 'x_request_id_example' # str | The Request ID supplied with the request, used to perform operations idempotently. (optional)
authorization = 'authorization_example' # str | Access token (in JWT format) required to use any API endpoint. (optional)
x_correlation_id = 'x_correlation_id_example' # str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. (optional)
try:
# Gets a specific Storage Service.
api_response = api_instance.get_storage_service(storage_service_name, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling StorageServicesApi->get_storage_service: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| storage_service_name | str | The Storage Service name | |
| x_request_id | str | The Request ID supplied with the request, used to perform operations idempotently. | [optional] |
| authorization | str | Access token (in JWT format) required to use any API endpoint. | [optional] |
| x_correlation_id | str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StorageService get_storage_service_by_id(storage_service_id, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
Gets a specific Storage Service.
from __future__ import print_function
import time
import fusion
from fusion.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = fusion.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = fusion.StorageServicesApi(fusion.ApiClient(configuration))
storage_service_id = 'storage_service_id_example' # str | The Storage Service ID
x_request_id = 'x_request_id_example' # str | The Request ID supplied with the request, used to perform operations idempotently. (optional)
authorization = 'authorization_example' # str | Access token (in JWT format) required to use any API endpoint. (optional)
x_correlation_id = 'x_correlation_id_example' # str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. (optional)
try:
# Gets a specific Storage Service.
api_response = api_instance.get_storage_service_by_id(storage_service_id, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling StorageServicesApi->get_storage_service_by_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| storage_service_id | str | The Storage Service ID | |
| x_request_id | str | The Request ID supplied with the request, used to perform operations idempotently. | [optional] |
| authorization | str | Access token (in JWT format) required to use any API endpoint. | [optional] |
| x_correlation_id | str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StorageServiceList list_storage_services(x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
Gets a list of all Storage Services.
from __future__ import print_function
import time
import fusion
from fusion.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = fusion.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = fusion.StorageServicesApi(fusion.ApiClient(configuration))
x_request_id = 'x_request_id_example' # str | The Request ID supplied with the request, used to perform operations idempotently. (optional)
authorization = 'authorization_example' # str | Access token (in JWT format) required to use any API endpoint. (optional)
x_correlation_id = 'x_correlation_id_example' # str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. (optional)
try:
# Gets a list of all Storage Services.
api_response = api_instance.list_storage_services(x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling StorageServicesApi->list_storage_services: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| x_request_id | str | The Request ID supplied with the request, used to perform operations idempotently. | [optional] |
| authorization | str | Access token (in JWT format) required to use any API endpoint. | [optional] |
| x_correlation_id | str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Operation update_storage_service(body, storage_service_name, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
(Provider) Updates a Storage Service.
from __future__ import print_function
import time
import fusion
from fusion.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = fusion.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = fusion.StorageServicesApi(fusion.ApiClient(configuration))
body = fusion.StorageServicePatch() # StorageServicePatch |
storage_service_name = 'storage_service_name_example' # str | The Storage Service name
x_request_id = 'x_request_id_example' # str | The Request ID supplied with the request, used to perform operations idempotently. (optional)
authorization = 'authorization_example' # str | Access token (in JWT format) required to use any API endpoint. (optional)
x_correlation_id = 'x_correlation_id_example' # str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. (optional)
try:
# (Provider) Updates a Storage Service.
api_response = api_instance.update_storage_service(body, storage_service_name, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling StorageServicesApi->update_storage_service: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | StorageServicePatch | ||
| storage_service_name | str | The Storage Service name | |
| x_request_id | str | The Request ID supplied with the request, used to perform operations idempotently. | [optional] |
| authorization | str | Access token (in JWT format) required to use any API endpoint. | [optional] |
| x_correlation_id | str | The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]