Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 1.51 KB

getRestrictions.md

File metadata and controls

73 lines (55 loc) · 1.51 KB
editable sourcePath
false
en/_api-ref-grpc/datasphere/v2/api-ref/grpc/Community/getRestrictions.md

DataSphere API v2, gRPC: CommunityService.GetRestrictions

Get current community restrictions.

gRPC request

rpc GetRestrictions (GetCommunityRestrictionsRequest) returns (RestrictionsResponse)

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

{
  "community_id": "string"
}

#| ||Field | Description || || community_id | string

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

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

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

#| ||Field | Description || || restrictions[] | 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. || |#