Apache NiFi Registry REST API
REST API definition for Apache NiFi Registry web services
OpenAPI spec version: 2.7.2 Contact: dev@nifi.apache.org Generated by: https://github.com/swagger-api/swagger-codegen.git
- class nipyapi.registry.apis.policies_api.PoliciesApi(api_client=None)[source]
Bases:
objectNOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen
- create_access_policy(body, **kwargs)[source]
Create access policy. This method makes a synchronous HTTP request and returns the response data directly.
For full HTTP response details (status code, headers, etc.), use the corresponding
create_access_policy_with_http_info()method instead.- Parameters:
body (
AccessPolicy) – The access policy configuration details. (required)- Returns:
The response data.
- Return type:
- create_access_policy_with_http_info(body, **kwargs)[source]
Create access policy. This method makes a synchronous HTTP request and returns detailed response information.
Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding
create_access_policy()method instead.- Parameters:
body (
AccessPolicy) – The access policy configuration details. (required)- Returns:
(
AccessPolicy, status_code, headers) - Response data with HTTP details.- Return type:
- get_access_policies(**kwargs)[source]
Get all access policies. This method makes a synchronous HTTP request and returns the response data directly.
For full HTTP response details (status code, headers, etc.), use the corresponding
get_access_policies_with_http_info()method instead.Args:
- Returns:
The response data.
- Return type:
list[AccessPolicy]
- get_access_policies_with_http_info(**kwargs)[source]
Get all access policies. This method makes a synchronous HTTP request and returns detailed response information.
Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding
get_access_policies()method instead.Args:
- Returns:
(
list[AccessPolicy], status_code, headers) - Response data with HTTP details.- Return type:
- get_access_policy(id, **kwargs)[source]
Get access policy. This method makes a synchronous HTTP request and returns the response data directly.
For full HTTP response details (status code, headers, etc.), use the corresponding
get_access_policy_with_http_info()method instead.- Parameters:
id (str) – The access policy id. (required)
- Returns:
The response data.
- Return type:
- get_access_policy_for_resource(action, resource, **kwargs)[source]
Get access policy for resource.
Gets an access policy for the specified action and resource
This method makes a synchronous HTTP request and returns the response data directly.
For full HTTP response details (status code, headers, etc.), use the corresponding
get_access_policy_for_resource_with_http_info()method instead.- Parameters:
- Returns:
The response data.
- Return type:
- get_access_policy_for_resource_with_http_info(action, resource, **kwargs)[source]
Get access policy for resource.
Gets an access policy for the specified action and resource
This method makes a synchronous HTTP request and returns detailed response information.
Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding
get_access_policy_for_resource()method instead.- Parameters:
- Returns:
(
AccessPolicy, status_code, headers) - Response data with HTTP details.- Return type:
- get_access_policy_with_http_info(id, **kwargs)[source]
Get access policy. This method makes a synchronous HTTP request and returns detailed response information.
Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding
get_access_policy()method instead.- Parameters:
id (str) – The access policy id. (required)
- Returns:
(
AccessPolicy, status_code, headers) - Response data with HTTP details.- Return type:
- get_resources(**kwargs)[source]
Get available resources.
Gets the available resources that support access/authorization policies
This method makes a synchronous HTTP request and returns the response data directly.
For full HTTP response details (status code, headers, etc.), use the corresponding
get_resources_with_http_info()method instead.Args:
- Returns:
The response data.
- Return type:
list[Resource]
- get_resources_with_http_info(**kwargs)[source]
Get available resources.
Gets the available resources that support access/authorization policies
This method makes a synchronous HTTP request and returns detailed response information.
Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding
get_resources()method instead.Args:
- Returns:
(
list[Resource], status_code, headers) - Response data with HTTP details.- Return type:
- remove_access_policy(version, id, **kwargs)[source]
Delete access policy. This method makes a synchronous HTTP request and returns the response data directly.
For full HTTP response details (status code, headers, etc.), use the corresponding
remove_access_policy_with_http_info()method instead.- Parameters:
version (
LongParameter) – The version is used to verify the client is working with the latest version of the entity. (required)id (str) – The access policy id. (required)
client_id (
ClientIdParameter) – If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.
- Returns:
The response data.
- Return type:
- remove_access_policy_with_http_info(version, id, **kwargs)[source]
Delete access policy. This method makes a synchronous HTTP request and returns detailed response information.
Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding
remove_access_policy()method instead.- Parameters:
version (
LongParameter) – The version is used to verify the client is working with the latest version of the entity. (required)id (str) – The access policy id. (required)
client_id (
ClientIdParameter) – If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.
- Returns:
(
AccessPolicy, status_code, headers) - Response data with HTTP details.- Return type:
- update_access_policy(body, id, **kwargs)[source]
Update access policy. This method makes a synchronous HTTP request and returns the response data directly.
For full HTTP response details (status code, headers, etc.), use the corresponding
update_access_policy_with_http_info()method instead.- Parameters:
body (
AccessPolicy) – The access policy configuration details. (required)id (str) – The access policy id. (required)
- Returns:
The response data.
- Return type:
- update_access_policy_with_http_info(body, id, **kwargs)[source]
Update access policy. This method makes a synchronous HTTP request and returns detailed response information.
Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding
update_access_policy()method instead.- Parameters:
body (
AccessPolicy) – The access policy configuration details. (required)id (str) – The access policy id. (required)
- Returns:
(
AccessPolicy, status_code, headers) - Response data with HTTP details.- Return type: