# cybee_sdk.api.OrchestratorGroupLogicalResourceApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**delete_group_logical_resource_association_orchestrator_group_logical_resource_association_association_id_delete**](OrchestratorGroupLogicalResourceApi.md#delete_group_logical_resource_association_orchestrator_group_logical_resource_association_association_id_delete) | **DELETE** /orchestrator/group-logical-resource-association/{association_id}/ | Delete Group Logical Resource Association
[**list_group_logical_resource_associations_orchestrator_group_logical_resource_association_get**](OrchestratorGroupLogicalResourceApi.md#list_group_logical_resource_associations_orchestrator_group_logical_resource_association_get) | **GET** /orchestrator/group-logical-resource-association/ | List Group Logical Resource Associations
[**register_group_logical_resource_association_orchestrator_group_logical_resource_association_post**](OrchestratorGroupLogicalResourceApi.md#register_group_logical_resource_association_orchestrator_group_logical_resource_association_post) | **POST** /orchestrator/group-logical-resource-association/ | Register Group Logical Resource Association


# **delete_group_logical_resource_association_orchestrator_group_logical_resource_association_association_id_delete**
> delete_group_logical_resource_association_orchestrator_group_logical_resource_association_association_id_delete(association_id, cbe_user_org_id=cbe_user_org_id)

Delete Group Logical Resource Association

Remove a binding between a logical resource and a group.

Requires the `bind_logical_resource` permission on the caller's organization.

### Example

* OAuth Authentication (ZitadelWebAuthorizationBearer):
* Bearer Authentication (BearerToken):

```python
import cybee_sdk.api
from cybee_sdk.api.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 = cybee_sdk.api.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"]

# Configure Bearer authorization: BearerToken
configuration = cybee_sdk.api.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with cybee_sdk.api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cybee_sdk.api.OrchestratorGroupLogicalResourceApi(api_client)
    association_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | 
    cbe_user_org_id = 'cbe_user_org_id_example' # str |  Organization ID to request against. Can be empty (uses the user's org), a specific ID, or an asterisk (*) in which case the returned data are sourced from all orgs you can access.  See `/identity/organization/`  (optional)

    try:
        # Delete Group Logical Resource Association
        api_instance.delete_group_logical_resource_association_orchestrator_group_logical_resource_association_association_id_delete(association_id, cbe_user_org_id=cbe_user_org_id)
    except Exception as e:
        print("Exception when calling OrchestratorGroupLogicalResourceApi->delete_group_logical_resource_association_orchestrator_group_logical_resource_association_association_id_delete: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **association_id** | **UUID**|  | 
 **cbe_user_org_id** | **str**|  Organization ID to request against. Can be empty (uses the user&#39;s org), a specific ID, or an asterisk (*) in which case the returned data are sourced from all orgs you can access.  See &#x60;/identity/organization/&#x60;  | [optional] 

### Return type

void (empty response body)

### Authorization

[ZitadelWebAuthorizationBearer](../README.md#ZitadelWebAuthorizationBearer), [BearerToken](../README.md#BearerToken)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | Successful Response |  -  |
**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_group_logical_resource_associations_orchestrator_group_logical_resource_association_get**
> PageGroupLogicalResourceAssociation list_group_logical_resource_associations_orchestrator_group_logical_resource_association_get(page=page, per_page=per_page, order_by=order_by, id=id, group_id=group_id, logical_resource_uuid=logical_resource_uuid, logical_resource_type=logical_resource_type, cbe_user_org_id=cbe_user_org_id)

List Group Logical Resource Associations

List bindings of logical resources to groups, scoped to the caller's authorized groups.

Requires the `view` permission on the groups whose associations are returned.

### Example

* OAuth Authentication (ZitadelWebAuthorizationBearer):
* Bearer Authentication (BearerToken):

```python
import cybee_sdk.api
from cybee_sdk.api.models.page_group_logical_resource_association import PageGroupLogicalResourceAssociation
from cybee_sdk.api.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 = cybee_sdk.api.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"]

# Configure Bearer authorization: BearerToken
configuration = cybee_sdk.api.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with cybee_sdk.api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cybee_sdk.api.OrchestratorGroupLogicalResourceApi(api_client)
    page = 0 # int |  (optional) (default to 0)
    per_page = 25 # int |  (optional) (default to 25)
    order_by = [] # List[str] |  (optional) (default to [])
    id = None # List[UUID] |  (optional)
    group_id = None # List[UUID] |  (optional)
    logical_resource_uuid = None # List[UUID] |  (optional)
    logical_resource_type = ['logical_resource_type_example'] # List[str] |  (optional)
    cbe_user_org_id = 'cbe_user_org_id_example' # str |  Organization ID to request against. Can be empty (uses the user's org), a specific ID, or an asterisk (*) in which case the returned data are sourced from all orgs you can access.  See `/identity/organization/`  (optional)

    try:
        # List Group Logical Resource Associations
        api_response = api_instance.list_group_logical_resource_associations_orchestrator_group_logical_resource_association_get(page=page, per_page=per_page, order_by=order_by, id=id, group_id=group_id, logical_resource_uuid=logical_resource_uuid, logical_resource_type=logical_resource_type, cbe_user_org_id=cbe_user_org_id)
        print("The response of OrchestratorGroupLogicalResourceApi->list_group_logical_resource_associations_orchestrator_group_logical_resource_association_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling OrchestratorGroupLogicalResourceApi->list_group_logical_resource_associations_orchestrator_group_logical_resource_association_get: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **page** | **int**|  | [optional] [default to 0]
 **per_page** | **int**|  | [optional] [default to 25]
 **order_by** | [**List[str]**](str.md)|  | [optional] [default to []]
 **id** | [**List[UUID]**](UUID.md)|  | [optional] 
 **group_id** | [**List[UUID]**](UUID.md)|  | [optional] 
 **logical_resource_uuid** | [**List[UUID]**](UUID.md)|  | [optional] 
 **logical_resource_type** | [**List[str]**](str.md)|  | [optional] 
 **cbe_user_org_id** | **str**|  Organization ID to request against. Can be empty (uses the user&#39;s org), a specific ID, or an asterisk (*) in which case the returned data are sourced from all orgs you can access.  See &#x60;/identity/organization/&#x60;  | [optional] 

### Return type

[**PageGroupLogicalResourceAssociation**](PageGroupLogicalResourceAssociation.md)

### Authorization

[ZitadelWebAuthorizationBearer](../README.md#ZitadelWebAuthorizationBearer), [BearerToken](../README.md#BearerToken)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response |  -  |
**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)

# **register_group_logical_resource_association_orchestrator_group_logical_resource_association_post**
> GroupLogicalResourceAssociation register_group_logical_resource_association_orchestrator_group_logical_resource_association_post(register_group_logical_resource_association, cbe_user_org_id=cbe_user_org_id)

Register Group Logical Resource Association

Bind a logical resource (identified by its uuid + type) into a group.

Requires the `bind_logical_resource` permission on the caller's organization.

### Example

* OAuth Authentication (ZitadelWebAuthorizationBearer):
* Bearer Authentication (BearerToken):

```python
import cybee_sdk.api
from cybee_sdk.api.models.group_logical_resource_association import GroupLogicalResourceAssociation
from cybee_sdk.api.models.register_group_logical_resource_association import RegisterGroupLogicalResourceAssociation
from cybee_sdk.api.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 = cybee_sdk.api.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"]

# Configure Bearer authorization: BearerToken
configuration = cybee_sdk.api.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with cybee_sdk.api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cybee_sdk.api.OrchestratorGroupLogicalResourceApi(api_client)
    register_group_logical_resource_association = cybee_sdk.api.RegisterGroupLogicalResourceAssociation() # RegisterGroupLogicalResourceAssociation | 
    cbe_user_org_id = 'cbe_user_org_id_example' # str |  Organization ID to request against. Can be empty (uses the user's org), a specific ID, or an asterisk (*) in which case the returned data are sourced from all orgs you can access.  See `/identity/organization/`  (optional)

    try:
        # Register Group Logical Resource Association
        api_response = api_instance.register_group_logical_resource_association_orchestrator_group_logical_resource_association_post(register_group_logical_resource_association, cbe_user_org_id=cbe_user_org_id)
        print("The response of OrchestratorGroupLogicalResourceApi->register_group_logical_resource_association_orchestrator_group_logical_resource_association_post:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling OrchestratorGroupLogicalResourceApi->register_group_logical_resource_association_orchestrator_group_logical_resource_association_post: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **register_group_logical_resource_association** | [**RegisterGroupLogicalResourceAssociation**](RegisterGroupLogicalResourceAssociation.md)|  | 
 **cbe_user_org_id** | **str**|  Organization ID to request against. Can be empty (uses the user&#39;s org), a specific ID, or an asterisk (*) in which case the returned data are sourced from all orgs you can access.  See &#x60;/identity/organization/&#x60;  | [optional] 

### Return type

[**GroupLogicalResourceAssociation**](GroupLogicalResourceAssociation.md)

### Authorization

[ZitadelWebAuthorizationBearer](../README.md#ZitadelWebAuthorizationBearer), [BearerToken](../README.md#BearerToken)

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**201** | Successful Response |  -  |
**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)

