All URIs are relative to https://api.pure1.purestorage.com/fusion/api/1.2
| Method | HTTP request | Description |
|---|---|---|
| create_protection_policy | POST /protection-policies | Creates a Protection Policy. |
| delete_protection_policy | DELETE /protection-policies/{protection_policy_name} | Deletes a specific protection policy. |
| get_protection_policy | GET /protection-policies/{protection_policy_name} | Gets a specific Protection Policy. |
| get_protection_policy_by_id | GET /resources/protection-policies/{protection_policy_id} | Gets a specific Protection Policy. |
| list_protection_policies | GET /protection-policies | Gets a list of all Protection Policies. |
Operation create_protection_policy(body, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
Creates a Protection Policy.
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.ProtectionPoliciesApi(fusion.ApiClient(configuration))
body = fusion.ProtectionPolicyPost() # ProtectionPolicyPost |
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:
# Creates a Protection Policy.
api_response = api_instance.create_protection_policy(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 ProtectionPoliciesApi->create_protection_policy: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | ProtectionPolicyPost | ||
| 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_protection_policy(protection_policy_name, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
Deletes a specific protection policy.
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.ProtectionPoliciesApi(fusion.ApiClient(configuration))
protection_policy_name = 'protection_policy_name_example' # str | The Protection Policy 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:
# Deletes a specific protection policy.
api_response = api_instance.delete_protection_policy(protection_policy_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 ProtectionPoliciesApi->delete_protection_policy: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| protection_policy_name | str | The Protection Policy 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]
ProtectionPolicy get_protection_policy(protection_policy_name, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
Gets a specific Protection Policy.
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.ProtectionPoliciesApi(fusion.ApiClient(configuration))
protection_policy_name = 'protection_policy_name_example' # str | The Protection Policy 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 Protection Policy.
api_response = api_instance.get_protection_policy(protection_policy_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 ProtectionPoliciesApi->get_protection_policy: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| protection_policy_name | str | The Protection Policy 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]
ProtectionPolicy get_protection_policy_by_id(protection_policy_id, x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
Gets a specific Protection Policy.
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.ProtectionPoliciesApi(fusion.ApiClient(configuration))
protection_policy_id = 'protection_policy_id_example' # str | The Protection Policy 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 Protection Policy.
api_response = api_instance.get_protection_policy_by_id(protection_policy_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 ProtectionPoliciesApi->get_protection_policy_by_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| protection_policy_id | str | The Protection Policy 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]
ProtectionPolicyList list_protection_policies(x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id)
Gets a list of all Protection Policies.
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.ProtectionPoliciesApi(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 Protection Policies.
api_response = api_instance.list_protection_policies(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 ProtectionPoliciesApi->list_protection_policies: %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]