Skip to main content

GetRestrictionsMeta

Get meta information about available restrictions.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.ProjectServiceClient);

const result = await client.getRestrictionsMeta(
google.protobuf.Empty.fromPartial({})
);
console.log(result);
})();

Empty

GetRestrictionsMetaResponse

restrictionsMeta : RestrictionMeta

List of restrictions.

RestrictionMeta

RestrictionValueType
  • RESTRICTION_VALUE_TYPE_UNSPECIFIED

  • BOOLEAN

  • LONG

  • STRING

name : string

Name of restriction.

valueType : RestrictionValueType

Value type of restriction.