Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Lockbox
  • Getting started
    • All guides
    • Creating secrets
    • Updating a secret
    • Configuring access to a secret
    • Getting information about a secret
    • Deleting a secret
    • Deactivating and activating a secret
    • Secret version management
    • Viewing operations with a secret
  • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Deactivating a secret
  • Activating a secret
  • See also
  1. Step-by-step guides
  2. Deactivating and activating a secret

Deactivating and activating a secret

Written by
Yandex Cloud
Updated at June 9, 2025
  • Deactivating a secret
  • Activating a secret
  • See also

A secret can be either active or deactivated. When a secret is active, it enables access to both its metadata and content (key-value pairs). When deactivated, it allows access only to its metadata, with the secret content being inaccessible.

Deactivating a secretDeactivating a secret

Management console
CLI
API
  1. In the management console, select the folder the secret belongs to.
  2. In the list of services, select Lockbox.
  3. Next to the secret you need, click and select Deactivate.
  4. Confirm its deactivation.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the CLI command description for information about deactivating a secret:

    yc lockbox secret deactivate --help
    
  2. Deactivate a secret by specifying its ID or name:

    yc lockbox secret deactivate <secret_name>
    

    Result:

    id: e6qkkp3k29jf********
    folder_id: b1go3el0d8fs********
    created_at: "2023-11-08T13:14:34.676Z"
    name: first-secret
    status: INACTIVE
    current_version:
      id: e6qor8pe3ju7********
      secret_id: e6qkkp3k29jf********
      created_at: "2023-11-08T13:14:34.676Z"
      status: ACTIVE
      payload_entry_keys:
        - secret-key
    

To deactivate a secret, use the deactivate REST API method for the Secret resource or the SecretService/Deactivate gRPC API call.

Activating a secretActivating a secret

Management console
CLI
API
  1. In the management console, select the folder the secret belongs to.
  2. In the list of services, select Lockbox.
  3. Next to the secret you need, click and select Activate secret.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the CLI command description for information about activating a secret:

    yc lockbox secret activate --help
    
  2. Activate a secret by specifying its ID or name:

    yc lockbox secret activate <secret_name>
    

    Result:

    id: e6qkkp3k29jf********
    folder_id: b1go3el0d8fs********
    created_at: "2023-11-08T13:14:34.676Z"
    name: first-secret
    status: ACTIVE
    current_version:
      id: e6qor8pe3ju7********
      secret_id: e6qkkp3k29jf********
      created_at: "2023-11-08T13:14:34.676Z"
      status: ACTIVE
      payload_entry_keys:
        - secret-key
    

To activate a secret, use the activate REST API method for the Secret resource or the SecretService/Activate gRPC API call.

See alsoSee also

  • Secrets in Yandex Lockbox

Was the article helpful?

Previous
Deleting a secret
Next
Secret version management
© 2025 Direct Cursus Technology L.L.C.