[Yandex Cloud documentation](../../../../index.md) > [Yandex MPP Analytics for PostgreSQL](../../../index.md) > API reference > [gRPC](../index.md) > [HBARule](index.md) > List

# Managed Service for Greenplum® API, gRPC: HBARuleService.List

Retrieves a list of HBA rules for Greenplum clusters.

## gRPC request

**rpc List ([ListHBARulesRequest](#yandex.cloud.mdb.greenplum.v1.ListHBARulesRequest)) returns ([ListHBARulesResponse](#yandex.cloud.mdb.greenplum.v1.ListHBARulesResponse))**

## ListHBARulesRequest {#yandex.cloud.mdb.greenplum.v1.ListHBARulesRequest}

```json
{
  "cluster_id": "string"
}
```

#|
||Field | Description ||
|| cluster_id | **string**

Required field. ID of the Greenplum cluster.
To get the Greenplum cluster ID use a [ClusterService.List](../Cluster/list.md#List) request.

The maximum string length in characters is 50. ||
|#

## ListHBARulesResponse {#yandex.cloud.mdb.greenplum.v1.ListHBARulesResponse}

```json
{
  "hba_rules": [
    {
      "priority": "int64",
      "connection_type": "ConnectionType",
      "database": "string",
      "user": "string",
      "address": "string",
      "auth_method": "AuthMethod"
    }
  ]
}
```

#|
||Field | Description ||
|| hba_rules[] | **[HBARule](#yandex.cloud.mdb.greenplum.v1.HBARule)**

Requested list of hba rules for the cluster. ||
|#

## HBARule {#yandex.cloud.mdb.greenplum.v1.HBARule}

#|
||Field | Description ||
|| priority | **int64**

Priority of the Greenplum® cluster rule.

Acceptable values are 0 to 1000, inclusive. ||
|| connection_type | enum **ConnectionType**

Connection type of the Greenplum® cluster rule.

- `HOST`: Matches connection attempts made using TCP/IP.
- `HOSTSSL`: Matches connection attempts made using TCP/IP, but only when the connection is made with SSL encryption.
- `HOSTNOSSL`: Matches connection attempts made over TCP/IP that do not use SSL. ||
|| database | **string**

Required field. Specifies which database names this record matches. ||
|| user | **string**

Required field. Specifies which database role names this user matches. ||
|| address | **string**

Required field. Specifies the client machine addresses that this record matches. ||
|| auth_method | enum **AuthMethod**

Specifies the authentication method to use when a connection matches this record.
https://gpdb.docs.pivotal.io/6-6/security-guide/topics/Authenticate.html

- `MD5`: Perform SCRAM-SHA-256 or MD5 authentication to verify the user's password.
- `LDAP`: Perform LDAP authentication, if MDB_GREENPLUM_LDAP flag is set
- `REJECT`: Disable authentication
- `IAM`: Perform authentication with IAM token ||
|#