Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Serverless Containers
  • Comparison with other Yandex Cloud services
    • All guides
    • Getting an IAM token for a service account using a container
      • Making a container public
      • Making a container private
      • Viewing roles assigned to a container
      • Assigning roles to a container
      • Revoking roles assigned to a container
    • Viewing operations with service resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing rights to access a container
  3. Making a container private

Making a container private

Written by
Yandex Cloud
Updated at September 23, 2024

For a container to be invoked only by users with the permission to do so, make the container private.

Note

If all unauthorized users (the All users public group) of a cloud or folder are granted the permission to invoke a container, the container will be public regardless of its settings. See how to revoke a role for more info.

CLI

To make a container private, run this command:

yc serverless container deny-unauthenticated-invoke <container_name>

Result:

done (1s)

Was the article helpful?

Previous
Making a container public
Next
Viewing roles assigned to a container
Yandex project
© 2025 Yandex.Cloud LLC