Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 Yandex.Cloud LLC
Yandex DataSphere
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Project management
      • Creating a project
      • Choosing a Python version
      • Installing dependencies
      • Managing computing resources
      • Setting up consumption limits for a project
      • Setting up consumption limits for a folder
      • Resizing project storage
      • Changing a name or description
      • Deleting a notebook or project
    • Sharing a notebook
      • Publishing a notebook
      • Exporting a project
    • Working with a notebook
      • Running sample code in a notebook
      • Versioning. Working with checkpoints
      • Clearing the interpreter state
      • Working with Git
    • Managing Docker images
      • Docker image for a project
      • Docker image in a cell
    • Connecting to data sources
      • Connecting to a ClickHouse database
      • Connecting to a PostgreSQL database
      • Connecting to S3 storage
    • Setting up integration with Data Proc
    • Working with confidential data
      • Creating a secret
      • Referencing a secret
      • Updating a secret
      • Copying a secret
      • Destroying a secret
    • Launching distributed training
    • Deploying models
      • Creating a node from a Python code cell
      • Configuring the node environment
      • Queries to nodes
  • Concepts
    • Overview
    • Project
    • List of pre-installed software
    • Available commands
    • #pragma service commands
    • Computing resource configurations
    • Integration with version and data control systems
    • Saving a state
    • Integration with Data Proc
    • Background operations
    • Datasets
    • Private data storage
    • Deploying models
    • Using TensorBoard in Yandex DataSphere
    • Distributed training
    • Cost management
    • Quotas and limits
  • Early access
    • Overview
    • Special background operations
  • Practical guidelines
    • All tutorials
    • Getting started with Yandex DataSphere
    • Voice biometrics
    • Evaluating the quality of STT models
    • Labeling audio files
    • Classification of images in video frames
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • AppTokenService
      • FolderBudgetService
      • NodeService
      • ProjectDataService
      • ProjectService
      • OperationService
    • REST
      • Overview
      • AppToken
        • Overview
        • validate
      • FolderBudget
        • Overview
        • get
        • set
      • Node
        • Overview
        • execute
      • Project
        • Overview
        • create
        • delete
        • execute
        • get
        • getCellOutputs
        • getNotebookMetadata
        • getStateVariables
        • getUnitBalance
        • list
        • open
        • setUnitBalance
        • update
  • Access management
  • Pricing policy
  • Public materials
  • Releases
  • Questions and answers
  1. Step-by-step instructions
  2. Project management
  3. Setting up consumption limits for a folder

Setting up consumption limits for a folder

Written by
Yandex Cloud

    DataSphere allows you to set consumption limits for projects in your folder. For more information about the types of limits, see Cost management.

    To use the examples, install gRPCurl and get the authorization data for your account:

    • Instructions for a Yandex account.
    • Instructions for a service account.
    • Instructions for a federated account.

    Specify the received IAM token when accessing Yandex Cloud resources via the API. Pass the IAM token in the Authorization header in the following format:

    Authorization: Bearer <IAM token>
    
    API

    To manage limits for all folder projects, use the Get and Set API methods.

    View folder limits:

    grpcurl -rpc-header "Authorization: Bearer <IAM token>" \
        -d '{"folder_id": "<folder_id>"}' \
        datasphere.api.cloud.yandex.net:443 \
        yandex.cloud.datasphere.v1.FolderBudgetService/Get
    

    Set limits for the folder:

    grpcurl -rpc-header "Authorization: Bearer <IAM token>" \
        -d '{"folder_id": "<folder_id>", "set_mask": {"paths": ["unit_balance"]}, "unit_balance":10}' \
        datasphere.api.cloud.yandex.net:443 \
        yandex.cloud.datasphere.v1.FolderBudgetService/Set
    

    Delete folder limits:

    grpcurl -rpc-header "Authorization: Bearer <IAM token>" \
        -d '{"folder_id": "<folder_id>", "set_mask": {"paths": ["unit_balance"]}}' \
        datasphere.api.cloud.yandex.net:443 \
        yandex.cloud.datasphere.v1.FolderBudgetService/Set
    

    Delete all limits for the folder:

    grpcurl -rpc-header "Authorization: Bearer <IAM token>" \
        -d '{"folder_id": "<folder_id>"}' \
        datasphere.api.cloud.yandex.net:443 \
        yandex.cloud.datasphere.v1.FolderBudgetService/Set
    

    See also

    • Cost management
    • Setting up consumption limits for a project

    Was the article helpful?

    Language / Region
    © 2022 Yandex.Cloud LLC