mds_plugin/user.py
def list_dynamic_groups(compartment_id=None, config=None,
                        raise_exceptions=False, return_formatted=True):
    """Lists dynamic groups

    Lists all dynamic groups of the compartment

    Args:
        compartment_id (str): An OCID of the compartment to use.
        config (object): An OCI config object or None.
        raise_exceptions (bool): If set to true exceptions are raised.
        return_formatted (bool): If set to true a list object is returned.

    Returns:
        A list of groups
    """

    # Get the current config
    try:
        config = configuration.get_current_config(config=config)

        import oci.identity

        # Initialize the identity client
        identity = core.get_oci_identity_client(config=config)

        # List the groups
        data = identity.list_dynamic_groups(
            compartment_id=config.get("tenancy")).data

        if return_formatted:
            return format_dynamic_group_listing(data)
        else:
            return oci.util.to_dict(data)
    except oci.exceptions.ServiceError as e:
        if raise_exceptions:
            raise
        print(f'ERROR: {e.message}. (Code: {e.code}; Status: {e.status})')
        return
    except Exception as e:
        if raise_exceptions:
            raise
        print(f'ERROR: {e}')
        return
Lists dynamic groups

    Lists all dynamic groups of the compartment

    Args:
        compartment_id (str): An OCID of the compartment to use.
        config (object): An OCI config object or None.
        raise_exceptions (bool): If set to true exceptions are raised.
        return_formatted (bool): If set to true a list object is returned.

    Returns:
        A list of groups
    
Lists dynamic groups
Lists all dynamic groups of the compartment
Lists dynamic groups Lists all dynamic groups of the compartment
def list_dynamic_groups(compartment_id=None, config=None,
                        raise_exceptions=False, return_formatted=True):
    try:
        config = configuration.get_current_config(config=config)
        import oci.identity
        identity = core.get_oci_identity_client(config=config)
        data = identity.list_dynamic_groups(
            compartment_id=config.get("tenancy")).data
        if return_formatted:
            return format_dynamic_group_listing(data)
        else:
            return oci.util.to_dict(data)
    except oci.exceptions.ServiceError as e:
        if raise_exceptions:
            raise
        print(f'ERROR: {e.message}. (Code: {e.code}; Status: {e.status})')
        return
    except Exception as e:
        if raise_exceptions:
            raise
        print(f'ERROR: {e}')
        return
def list_dynamic_groups ( compartment_id = None , config = None , raise_exceptions = False , return_formatted = True ) : try : config = configuration . get_current_config ( config = config ) import oci . identity identity = core . get_oci_identity_client ( config = config ) data = identity . list_dynamic_groups ( compartment_id = config . get ( "tenancy" ) ) . data if return_formatted : return format_dynamic_group_listing ( data ) else : return oci . util . to_dict ( data ) except oci . exceptions . ServiceError as e : if raise_exceptions : raise print ( f'ERROR: {e.message}. (Code: {e.code}; Status: {e.status})' ) return except Exception as e : if raise_exceptions : raise print ( f'ERROR: {e}' ) return
Lists dynamic groups
Lists all dynamic groups of the compartment
Lists dynamic groups Lists all dynamic groups of the compartment
"""Lists dynamic groups

    Lists all dynamic groups of the compartment

    Args:
        compartment_id (str): An OCID of the compartment to use.
        config (object): An OCI config object or None.
        raise_exceptions (bool): If set to true exceptions are raised.
        return_formatted (bool): If set to true a list object is returned.

    Returns:
        A list of groups
    """ # Get the current config
 # Initialize the identity client
 # List the groups

A list of groups
A list of groups
compartment_id
An OCID of the compartment to use.
An OCID of the compartment to use .
config
An OCI config object or None.
An OCI config object or None .
raise_exceptions
If set to true exceptions are raised.
If set to true exceptions are raised .
return_formatted
If set to true a list object is returned.
If set to true a list object is returned .