ListIpPermission
List ip permissions for the specified registry.
- TypeScript
- Python
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);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.containerregistry.v1.registry_service_pb2 import ListIpPermissionRequest
from yandex.cloud.containerregistry.v1.registry_service_pb2_grpc import RegistryServiceStub
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(RegistryServiceStub)
response = service.ListIpPermission(ListIpPermissionRequest(registry_id="registryId"))
print(response)
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