Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 3.58 KB

File metadata and controls

53 lines (35 loc) · 3.58 KB

Groups.Acl.Teams

Overview

Available Operations

  • get - Get the Access Control List for teams with permissions on a Worker Group, Outpost Group, or Edge Fleet for the specified Cribl product

get

Get the Access Control List (ACL) for teams that have permissions on a Worker Group, Outpost Group, or Edge Fleet for the specified Cribl product.

Example Usage

from cribl_control_plane import CriblControlPlane, models
import os


with CriblControlPlane(
    "https://api.example.com",
    security=models.Security(
        bearer_auth=os.getenv("CRIBLCONTROLPLANE_BEARER_AUTH", ""),
    ),
) as ccp_client:

    res = ccp_client.groups.acl.teams.get(product=models.ProductsCore.EDGE, id="<id>", type_=models.RbacResource.MACROS)

    # Handle response
    print(res)

Parameters

Parameter Type Required Description
product models.ProductsCore ✔️ Name of the Cribl product that contains the Worker Group, Outpost Group, or Edge Fleet.
id str ✔️ The id of the Worker Group, Outpost Group, or Edge Fleet to get the team ACL for.
type Optional[models.RbacResource] Filter for limiting the response to ACL entries for the specified RBAC resource type.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.CountedTeamAccessControlList

Errors

Error Type Status Code Content Type
errors.Error 500 application/json
errors.APIError 4XX, 5XX */*