# arthur_client.api_bindings.PoliciesV1Api

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**check_assignment_compliance**](PoliciesV1Api.md#check_assignment_compliance) | **POST** /api/v1/policy_assignments/{assignment_id}/check_compliance | Check Assignment Compliance
[**check_model_compliance**](PoliciesV1Api.md#check_model_compliance) | **POST** /api/v1/models/{model_id}/check_compliance | Check Model Compliance
[**check_policy_compliance**](PoliciesV1Api.md#check_policy_compliance) | **POST** /api/v1/policies/{policy_id}/check_compliance | Check Policy Compliance
[**create_attestation**](PoliciesV1Api.md#create_attestation) | **POST** /api/v1/policy_assignments/{assignment_id}/attestations | Create Attestation
[**create_policy**](PoliciesV1Api.md#create_policy) | **POST** /api/v1/organization/policies | Create Policy
[**create_policy_alert_rule**](PoliciesV1Api.md#create_policy_alert_rule) | **POST** /api/v1/policies/{policy_id}/alert_rules | Create Policy Alert Rule
[**create_policy_assignments**](PoliciesV1Api.md#create_policy_assignments) | **POST** /api/v1/policies/{policy_id}/assignments | Create Policy Assignments
[**create_policy_attestation_rule**](PoliciesV1Api.md#create_policy_attestation_rule) | **POST** /api/v1/policies/{policy_id}/attestation_rules | Create Policy Attestation Rule
[**delete_policy**](PoliciesV1Api.md#delete_policy) | **DELETE** /api/v1/policies/{policy_id} | Delete Policy
[**delete_policy_alert_rule**](PoliciesV1Api.md#delete_policy_alert_rule) | **DELETE** /api/v1/policy_alert_rules/{rule_id} | Delete Policy Alert Rule
[**delete_policy_assignment**](PoliciesV1Api.md#delete_policy_assignment) | **DELETE** /api/v1/policy_assignments/{assignment_id} | Delete Policy Assignment
[**delete_policy_attestation_rule**](PoliciesV1Api.md#delete_policy_attestation_rule) | **DELETE** /api/v1/policy_attestation_rules/{rule_id} | Delete Policy Attestation Rule
[**get_policy**](PoliciesV1Api.md#get_policy) | **GET** /api/v1/policies/{policy_id} | Get Policy
[**get_policy_alert_rule**](PoliciesV1Api.md#get_policy_alert_rule) | **GET** /api/v1/policy_alert_rules/{rule_id} | Get Policy Alert Rule
[**get_policy_assignment**](PoliciesV1Api.md#get_policy_assignment) | **GET** /api/v1/policy_assignments/{assignment_id} | Get Policy Assignment
[**get_policy_attestation_rule**](PoliciesV1Api.md#get_policy_attestation_rule) | **GET** /api/v1/policy_attestation_rules/{rule_id} | Get Policy Attestation Rule
[**list_assignment_attestations**](PoliciesV1Api.md#list_assignment_attestations) | **GET** /api/v1/policy_assignments/{assignment_id}/attestations | List Assignment Attestations
[**list_model_attestations**](PoliciesV1Api.md#list_model_attestations) | **GET** /api/v1/models/{model_id}/attestations | List Model Attestations
[**list_model_policy_assignments**](PoliciesV1Api.md#list_model_policy_assignments) | **GET** /api/v1/models/{model_id}/assignments | List Model Policy Assignments
[**list_policies**](PoliciesV1Api.md#list_policies) | **GET** /api/v1/organization/policies | List Policies
[**list_policy_alert_rules**](PoliciesV1Api.md#list_policy_alert_rules) | **GET** /api/v1/policies/{policy_id}/alert_rules | List Policy Alert Rules
[**list_policy_assignments**](PoliciesV1Api.md#list_policy_assignments) | **GET** /api/v1/policies/{policy_id}/assignments | List Policy Assignments
[**list_policy_attestation_rules**](PoliciesV1Api.md#list_policy_attestation_rules) | **GET** /api/v1/policies/{policy_id}/attestation_rules | List Policy Attestation Rules
[**list_workspace_policy_assignments**](PoliciesV1Api.md#list_workspace_policy_assignments) | **GET** /api/v1/workspaces/{workspace_id}/policy_assignments | List Workspace Policy Assignments
[**set_compliance_status**](PoliciesV1Api.md#set_compliance_status) | **PUT** /api/v1/policy_assignments/{assignment_id}/compliance_status | Set Compliance Status
[**update_policy**](PoliciesV1Api.md#update_policy) | **PATCH** /api/v1/policies/{policy_id} | Update Policy
[**update_policy_alert_rule**](PoliciesV1Api.md#update_policy_alert_rule) | **PATCH** /api/v1/policy_alert_rules/{rule_id} | Update Policy Alert Rule
[**update_policy_attestation_rule**](PoliciesV1Api.md#update_policy_attestation_rule) | **PATCH** /api/v1/policy_attestation_rules/{rule_id} | Update Policy Attestation Rule


# **check_assignment_compliance**
> object check_assignment_compliance(assignment_id)

Check Assignment Compliance

Enqueues a compliance check job for a specific policy assignment.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    assignment_id = 'assignment_id_example' # str | The ID of the assignment.

    try:
        # Check Assignment Compliance
        api_response = api_instance.check_assignment_compliance(assignment_id)
        print("The response of PoliciesV1Api->check_assignment_compliance:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->check_assignment_compliance: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **assignment_id** | **str**| The ID of the assignment. | 

### Return type

**object**

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**202** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **check_model_compliance**
> object check_model_compliance(model_id)

Check Model Compliance

Enqueues a compliance check job for all assignments on this model.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    model_id = 'model_id_example' # str | The ID of the model.

    try:
        # Check Model Compliance
        api_response = api_instance.check_model_compliance(model_id)
        print("The response of PoliciesV1Api->check_model_compliance:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->check_model_compliance: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model_id** | **str**| The ID of the model. | 

### Return type

**object**

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**202** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **check_policy_compliance**
> object check_policy_compliance(policy_id)

Check Policy Compliance

Enqueues a compliance check job for every assignment in this policy.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy.

    try:
        # Check Policy Compliance
        api_response = api_instance.check_policy_compliance(policy_id)
        print("The response of PoliciesV1Api->check_policy_compliance:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->check_policy_compliance: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy. | 

### Return type

**object**

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**202** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **create_attestation**
> AttestationRecord create_attestation(assignment_id, post_attestation_record)

Create Attestation

Submits an attestation for a policy assignment. Enqueues a compliance check job.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.attestation_record import AttestationRecord
from arthur_client.api_bindings.models.post_attestation_record import PostAttestationRecord
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    assignment_id = 'assignment_id_example' # str | The ID of the assignment.
    post_attestation_record = arthur_client.api_bindings.PostAttestationRecord() # PostAttestationRecord | 

    try:
        # Create Attestation
        api_response = api_instance.create_attestation(assignment_id, post_attestation_record)
        print("The response of PoliciesV1Api->create_attestation:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->create_attestation: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **assignment_id** | **str**| The ID of the assignment. | 
 **post_attestation_record** | [**PostAttestationRecord**](PostAttestationRecord.md)|  | 

### Return type

[**AttestationRecord**](AttestationRecord.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **create_policy**
> PolicySummary create_policy(post_policy)

Create Policy

Creates a new policy with inline rules for the organization. At least one alert or attestation rule is required.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.policy_summary import PolicySummary
from arthur_client.api_bindings.models.post_policy import PostPolicy
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    post_policy = arthur_client.api_bindings.PostPolicy() # PostPolicy | 

    try:
        # Create Policy
        api_response = api_instance.create_policy(post_policy)
        print("The response of PoliciesV1Api->create_policy:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->create_policy: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **post_policy** | [**PostPolicy**](PostPolicy.md)|  | 

### Return type

[**PolicySummary**](PolicySummary.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **create_policy_alert_rule**
> PolicyAlertRule create_policy_alert_rule(policy_id, post_policy_alert_rule)

Create Policy Alert Rule

Creates a new alert rule for a policy. Propagates to all assigned applications.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.policy_alert_rule import PolicyAlertRule
from arthur_client.api_bindings.models.post_policy_alert_rule import PostPolicyAlertRule
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy.
    post_policy_alert_rule = arthur_client.api_bindings.PostPolicyAlertRule() # PostPolicyAlertRule | 

    try:
        # Create Policy Alert Rule
        api_response = api_instance.create_policy_alert_rule(policy_id, post_policy_alert_rule)
        print("The response of PoliciesV1Api->create_policy_alert_rule:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->create_policy_alert_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy. | 
 **post_policy_alert_rule** | [**PostPolicyAlertRule**](PostPolicyAlertRule.md)|  | 

### Return type

[**PolicyAlertRule**](PolicyAlertRule.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **create_policy_assignments**
> ResourceListPolicyAssignment create_policy_assignments(policy_id, create_policy_assignments_request)

Create Policy Assignments

Applies a policy to one or more applications. Requires both policy_assignment_create on the policy and model_assign_policy on each target model.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.create_policy_assignments_request import CreatePolicyAssignmentsRequest
from arthur_client.api_bindings.models.resource_list_policy_assignment import ResourceListPolicyAssignment
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy.
    create_policy_assignments_request = arthur_client.api_bindings.CreatePolicyAssignmentsRequest() # CreatePolicyAssignmentsRequest | 

    try:
        # Create Policy Assignments
        api_response = api_instance.create_policy_assignments(policy_id, create_policy_assignments_request)
        print("The response of PoliciesV1Api->create_policy_assignments:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->create_policy_assignments: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy. | 
 **create_policy_assignments_request** | [**CreatePolicyAssignmentsRequest**](CreatePolicyAssignmentsRequest.md)|  | 

### Return type

[**ResourceListPolicyAssignment**](ResourceListPolicyAssignment.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **create_policy_attestation_rule**
> PolicyAttestationRule create_policy_attestation_rule(policy_id, post_policy_attestation_rule)

Create Policy Attestation Rule

Creates a new attestation rule for a policy.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.policy_attestation_rule import PolicyAttestationRule
from arthur_client.api_bindings.models.post_policy_attestation_rule import PostPolicyAttestationRule
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy.
    post_policy_attestation_rule = arthur_client.api_bindings.PostPolicyAttestationRule() # PostPolicyAttestationRule | 

    try:
        # Create Policy Attestation Rule
        api_response = api_instance.create_policy_attestation_rule(policy_id, post_policy_attestation_rule)
        print("The response of PoliciesV1Api->create_policy_attestation_rule:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->create_policy_attestation_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy. | 
 **post_policy_attestation_rule** | [**PostPolicyAttestationRule**](PostPolicyAttestationRule.md)|  | 

### Return type

[**PolicyAttestationRule**](PolicyAttestationRule.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete_policy**
> delete_policy(policy_id)

Delete Policy

Deletes a policy and cascades to all assignments, materialized rules, and attestation records.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy to delete.

    try:
        # Delete Policy
        api_instance.delete_policy(policy_id)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->delete_policy: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy to delete. | 

### Return type

void (empty response body)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete_policy_alert_rule**
> delete_policy_alert_rule(rule_id)

Delete Policy Alert Rule

Deletes a policy alert rule. CASCADE deletes materialized rules.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    rule_id = 'rule_id_example' # str | The ID of the alert rule to delete.

    try:
        # Delete Policy Alert Rule
        api_instance.delete_policy_alert_rule(rule_id)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->delete_policy_alert_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **rule_id** | **str**| The ID of the alert rule to delete. | 

### Return type

void (empty response body)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete_policy_assignment**
> delete_policy_assignment(assignment_id)

Delete Policy Assignment

Unapplies a policy from an application.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    assignment_id = 'assignment_id_example' # str | The ID of the assignment to delete.

    try:
        # Delete Policy Assignment
        api_instance.delete_policy_assignment(assignment_id)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->delete_policy_assignment: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **assignment_id** | **str**| The ID of the assignment to delete. | 

### Return type

void (empty response body)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete_policy_attestation_rule**
> delete_policy_attestation_rule(rule_id)

Delete Policy Attestation Rule

Deletes a policy attestation rule.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    rule_id = 'rule_id_example' # str | The ID of the attestation rule to delete.

    try:
        # Delete Policy Attestation Rule
        api_instance.delete_policy_attestation_rule(rule_id)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->delete_policy_attestation_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **rule_id** | **str**| The ID of the attestation rule to delete. | 

### Return type

void (empty response body)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_policy**
> Policy get_policy(policy_id)

Get Policy

Returns a single policy by ID including nested alert rules and attestation rules.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.policy import Policy
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy.

    try:
        # Get Policy
        api_response = api_instance.get_policy(policy_id)
        print("The response of PoliciesV1Api->get_policy:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->get_policy: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy. | 

### Return type

[**Policy**](Policy.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_policy_alert_rule**
> PolicyAlertRule get_policy_alert_rule(rule_id)

Get Policy Alert Rule

Returns a single policy alert rule by ID.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.policy_alert_rule import PolicyAlertRule
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    rule_id = 'rule_id_example' # str | The ID of the alert rule.

    try:
        # Get Policy Alert Rule
        api_response = api_instance.get_policy_alert_rule(rule_id)
        print("The response of PoliciesV1Api->get_policy_alert_rule:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->get_policy_alert_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **rule_id** | **str**| The ID of the alert rule. | 

### Return type

[**PolicyAlertRule**](PolicyAlertRule.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_policy_assignment**
> PolicyAssignmentDetail get_policy_assignment(assignment_id)

Get Policy Assignment

Returns a single policy assignment with full policy and model detail.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.policy_assignment_detail import PolicyAssignmentDetail
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    assignment_id = 'assignment_id_example' # str | The ID of the assignment.

    try:
        # Get Policy Assignment
        api_response = api_instance.get_policy_assignment(assignment_id)
        print("The response of PoliciesV1Api->get_policy_assignment:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->get_policy_assignment: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **assignment_id** | **str**| The ID of the assignment. | 

### Return type

[**PolicyAssignmentDetail**](PolicyAssignmentDetail.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_policy_attestation_rule**
> PolicyAttestationRule get_policy_attestation_rule(rule_id)

Get Policy Attestation Rule

Returns a single policy attestation rule by ID.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.policy_attestation_rule import PolicyAttestationRule
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    rule_id = 'rule_id_example' # str | The ID of the attestation rule.

    try:
        # Get Policy Attestation Rule
        api_response = api_instance.get_policy_attestation_rule(rule_id)
        print("The response of PoliciesV1Api->get_policy_attestation_rule:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->get_policy_attestation_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **rule_id** | **str**| The ID of the attestation rule. | 

### Return type

[**PolicyAttestationRule**](PolicyAttestationRule.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_assignment_attestations**
> ResourceListAttestationRecord list_assignment_attestations(assignment_id)

List Assignment Attestations

Lists attestation history for a policy assignment.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.resource_list_attestation_record import ResourceListAttestationRecord
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    assignment_id = 'assignment_id_example' # str | The ID of the assignment.

    try:
        # List Assignment Attestations
        api_response = api_instance.list_assignment_attestations(assignment_id)
        print("The response of PoliciesV1Api->list_assignment_attestations:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->list_assignment_attestations: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **assignment_id** | **str**| The ID of the assignment. | 

### Return type

[**ResourceListAttestationRecord**](ResourceListAttestationRecord.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_model_attestations**
> ResourceListAttestationRecord list_model_attestations(model_id)

List Model Attestations

Lists all attestations across all policy assignments for an application.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.resource_list_attestation_record import ResourceListAttestationRecord
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    model_id = 'model_id_example' # str | The ID of the model.

    try:
        # List Model Attestations
        api_response = api_instance.list_model_attestations(model_id)
        print("The response of PoliciesV1Api->list_model_attestations:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->list_model_attestations: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model_id** | **str**| The ID of the model. | 

### Return type

[**ResourceListAttestationRecord**](ResourceListAttestationRecord.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_model_policy_assignments**
> ResourceListPolicyAssignment list_model_policy_assignments(model_id)

List Model Policy Assignments

Lists all policy assignments for an application including policy summary and compliance status.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.resource_list_policy_assignment import ResourceListPolicyAssignment
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    model_id = 'model_id_example' # str | The ID of the model.

    try:
        # List Model Policy Assignments
        api_response = api_instance.list_model_policy_assignments(model_id)
        print("The response of PoliciesV1Api->list_model_policy_assignments:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->list_model_policy_assignments: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model_id** | **str**| The ID of the model. | 

### Return type

[**ResourceListPolicyAssignment**](ResourceListPolicyAssignment.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_policies**
> ResourceListPolicy list_policies()

List Policies

Lists all policies for the organization.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.resource_list_policy import ResourceListPolicy
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)

    try:
        # List Policies
        api_response = api_instance.list_policies()
        print("The response of PoliciesV1Api->list_policies:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->list_policies: %s\n" % e)
```



### Parameters

This endpoint does not need any parameter.

### Return type

[**ResourceListPolicy**](ResourceListPolicy.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_policy_alert_rules**
> ResourceListPolicyAlertRule list_policy_alert_rules(policy_id)

List Policy Alert Rules

Lists alert rules for a policy.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.resource_list_policy_alert_rule import ResourceListPolicyAlertRule
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy.

    try:
        # List Policy Alert Rules
        api_response = api_instance.list_policy_alert_rules(policy_id)
        print("The response of PoliciesV1Api->list_policy_alert_rules:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->list_policy_alert_rules: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy. | 

### Return type

[**ResourceListPolicyAlertRule**](ResourceListPolicyAlertRule.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_policy_assignments**
> ResourceListPolicyAssignment list_policy_assignments(policy_id)

List Policy Assignments

Lists all assignments for a policy.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.resource_list_policy_assignment import ResourceListPolicyAssignment
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy.

    try:
        # List Policy Assignments
        api_response = api_instance.list_policy_assignments(policy_id)
        print("The response of PoliciesV1Api->list_policy_assignments:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->list_policy_assignments: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy. | 

### Return type

[**ResourceListPolicyAssignment**](ResourceListPolicyAssignment.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_policy_attestation_rules**
> ResourceListPolicyAttestationRule list_policy_attestation_rules(policy_id)

List Policy Attestation Rules

Lists attestation rules for a policy.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.resource_list_policy_attestation_rule import ResourceListPolicyAttestationRule
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy.

    try:
        # List Policy Attestation Rules
        api_response = api_instance.list_policy_attestation_rules(policy_id)
        print("The response of PoliciesV1Api->list_policy_attestation_rules:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->list_policy_attestation_rules: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy. | 

### Return type

[**ResourceListPolicyAttestationRule**](ResourceListPolicyAttestationRule.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_workspace_policy_assignments**
> ResourceListPolicyAssignment list_workspace_policy_assignments(workspace_id)

List Workspace Policy Assignments

Lists all policy assignments within a workspace.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.resource_list_policy_assignment import ResourceListPolicyAssignment
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    workspace_id = 'workspace_id_example' # str | The ID of the workspace.

    try:
        # List Workspace Policy Assignments
        api_response = api_instance.list_workspace_policy_assignments(workspace_id)
        print("The response of PoliciesV1Api->list_workspace_policy_assignments:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->list_workspace_policy_assignments: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **workspace_id** | **str**| The ID of the workspace. | 

### Return type

[**ResourceListPolicyAssignment**](ResourceListPolicyAssignment.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **set_compliance_status**
> PolicyAssignment set_compliance_status(assignment_id, set_compliance_status_request)

Set Compliance Status

Sets the compliance status for a policy assignment. Called by the data-plane compliance check executor.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.policy_assignment import PolicyAssignment
from arthur_client.api_bindings.models.set_compliance_status_request import SetComplianceStatusRequest
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    assignment_id = 'assignment_id_example' # str | The ID of the assignment.
    set_compliance_status_request = arthur_client.api_bindings.SetComplianceStatusRequest() # SetComplianceStatusRequest | 

    try:
        # Set Compliance Status
        api_response = api_instance.set_compliance_status(assignment_id, set_compliance_status_request)
        print("The response of PoliciesV1Api->set_compliance_status:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->set_compliance_status: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **assignment_id** | **str**| The ID of the assignment. | 
 **set_compliance_status_request** | [**SetComplianceStatusRequest**](SetComplianceStatusRequest.md)|  | 

### Return type

[**PolicyAssignment**](PolicyAssignment.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **update_policy**
> Policy update_policy(policy_id, patch_policy)

Update Policy

Updates a policy's metadata or enforcement delay.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.patch_policy import PatchPolicy
from arthur_client.api_bindings.models.policy import Policy
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    policy_id = 'policy_id_example' # str | The ID of the policy to update.
    patch_policy = arthur_client.api_bindings.PatchPolicy() # PatchPolicy | 

    try:
        # Update Policy
        api_response = api_instance.update_policy(policy_id, patch_policy)
        print("The response of PoliciesV1Api->update_policy:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->update_policy: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **policy_id** | **str**| The ID of the policy to update. | 
 **patch_policy** | [**PatchPolicy**](PatchPolicy.md)|  | 

### Return type

[**Policy**](Policy.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **update_policy_alert_rule**
> PolicyAlertRule update_policy_alert_rule(rule_id, patch_policy_alert_rule)

Update Policy Alert Rule

Updates a policy alert rule. Propagates to materialized rules on all assigned applications.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.patch_policy_alert_rule import PatchPolicyAlertRule
from arthur_client.api_bindings.models.policy_alert_rule import PolicyAlertRule
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    rule_id = 'rule_id_example' # str | The ID of the alert rule to update.
    patch_policy_alert_rule = arthur_client.api_bindings.PatchPolicyAlertRule() # PatchPolicyAlertRule | 

    try:
        # Update Policy Alert Rule
        api_response = api_instance.update_policy_alert_rule(rule_id, patch_policy_alert_rule)
        print("The response of PoliciesV1Api->update_policy_alert_rule:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->update_policy_alert_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **rule_id** | **str**| The ID of the alert rule to update. | 
 **patch_policy_alert_rule** | [**PatchPolicyAlertRule**](PatchPolicyAlertRule.md)|  | 

### Return type

[**PolicyAlertRule**](PolicyAlertRule.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **update_policy_attestation_rule**
> PolicyAttestationRule update_policy_attestation_rule(rule_id, patch_policy_attestation_rule)

Update Policy Attestation Rule

Updates a policy attestation rule.

### Example

* OAuth Authentication (OAuth2AuthorizationCode):

```python
import arthur_client.api_bindings
from arthur_client.api_bindings.models.patch_policy_attestation_rule import PatchPolicyAttestationRule
from arthur_client.api_bindings.models.policy_attestation_rule import PolicyAttestationRule
from arthur_client.api_bindings.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = arthur_client.api_bindings.Configuration(
    host = "http://localhost"
)

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = arthur_client.api_bindings.PoliciesV1Api(api_client)
    rule_id = 'rule_id_example' # str | The ID of the attestation rule to update.
    patch_policy_attestation_rule = arthur_client.api_bindings.PatchPolicyAttestationRule() # PatchPolicyAttestationRule | 

    try:
        # Update Policy Attestation Rule
        api_response = api_instance.update_policy_attestation_rule(rule_id, patch_policy_attestation_rule)
        print("The response of PoliciesV1Api->update_policy_attestation_rule:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PoliciesV1Api->update_policy_attestation_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **rule_id** | **str**| The ID of the attestation rule to update. | 
 **patch_policy_attestation_rule** | [**PatchPolicyAttestationRule**](PatchPolicyAttestationRule.md)|  | 

### Return type

[**PolicyAttestationRule**](PolicyAttestationRule.md)

### Authorization

[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**500** | Internal Server Error |  -  |
**422** | Validation Error |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

