All URIs are relative to https://app.harness.io
Method | HTTP request | Description |
---|---|---|
get_access_control_list | POST /authz/api/acl | Check Permission |
ResponseDTOAccessCheckResponse get_access_control_list(body)
Check Permission
Check for permission on resource(s) for a principal
from __future__ import print_function
import time
import harness_python_sdk
from harness_python_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: x-api-key
configuration = harness_python_sdk.Configuration()
configuration.api_key['x-api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# create an instance of the API class
api_instance = harness_python_sdk.AccessControlListApi(harness_python_sdk.ApiClient(configuration))
body = harness_python_sdk.AccessCheckRequest() # AccessCheckRequest | These are the checks to perform for Access Control.
try:
# Check Permission
api_response = api_instance.get_access_control_list(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccessControlListApi->get_access_control_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | AccessCheckRequest | These are the checks to perform for Access Control. |
ResponseDTOAccessCheckResponse
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]