Skip to main content

ListIpPermission

List ip permissions for the specified registry.

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

const ListIpPermissionRequest =
cloudApi.containerregistry.registry_service.ListIpPermissionRequest;

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

const result = await client.listIpPermission(
ListIpPermissionRequest.fromPartial({
registryId: "registryId",
})
);
console.log(result);
})();

ListIpPermissionRequest

registryId : string

ID of the Registry to return ip permission list.

ListIpPermissionsResponse

permissions : IpPermission

List of ip permissions for registry

IpPermission

Action
  • ACTION_UNSPECIFIED

  • PULL

  • PUSH

action : Action
ip : string