[Yandex Cloud documentation](../../../../index.md) > [Yandex DataSphere](../../../index.md) > [API reference](../../overview.md) > [gRPC](../index.md) > [Project](index.md) > GetRestrictions

# DataSphere API v2, gRPC: ProjectService.GetRestrictions

Get current project restrictions.

## gRPC request

**rpc GetRestrictions ([GetProjectRestrictionsRequest](#yandex.cloud.datasphere.v2.GetProjectRestrictionsRequest)) returns ([RestrictionsResponse](#yandex.cloud.datasphere.v2.RestrictionsResponse))**

## GetProjectRestrictionsRequest {#yandex.cloud.datasphere.v2.GetProjectRestrictionsRequest}

```json
{
  "project_id": "string"
}
```

#|
||Field | Description ||
|| project_id | **string**

Required field. ID of the project. ||
|#

## RestrictionsResponse {#yandex.cloud.datasphere.v2.RestrictionsResponse}

```json
{
  "restrictions": [
    {
      "name": "string",
      "bool_value": [
        "bool"
      ],
      "long_value": [
        "int64"
      ],
      "string_value": [
        "string"
      ]
    }
  ]
}
```

#|
||Field | Description ||
|| restrictions[] | **[Restriction](#yandex.cloud.datasphere.v2.Restriction)**

List of restrictions. ||
|#

## Restriction {#yandex.cloud.datasphere.v2.Restriction}

#|
||Field | Description ||
|| name | **string**

Name of restriction. ||
|| bool_value[] | **bool**

List of boolean restriction values. Empty if value type is not boolean. ||
|| long_value[] | **int64**

List of long restriction values. Empty if value type is not long. ||
|| string_value[] | **string**

List of string restriction values. Empty if value type is not string. ||
|#