Making a container public
Written by
Updated at February 8, 2024
If you want any user to be able to invoke a container without providing the authorization header, make it public.
CLI
API
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To make a container public, run this command:
yc serverless container allow-unauthenticated-invoke <container_name>
Result:
done (1s)
To make a container public, use the setAccessBindings REST API method for the Container resource or the ContainerService/SetAccessBindings gRPC API call.