aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/lockbox/v1/payload_service.proto
blob: 5d08b7a8835de725cae5cf1aab6689bc77ae1fd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
syntax = "proto3";

package yandex.cloud.lockbox.v1;

import "google/api/annotations.proto";
import "yandex/cloud/lockbox/v1/payload.proto";
import "yandex/cloud/validation.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/lockbox/v1;lockbox";
option java_package = "yandex.cloud.api.lockbox.v1";

// Set of methods to access payload of secrets.
service PayloadService {
  // Returns the payload of the specified secret.
  //
  // To get the list of all available secrets, make a [SecretService.List] request.
  rpc Get (GetPayloadRequest) returns (Payload) {
    option (google.api.http) = {get: "/lockbox/v1/secrets/{secret_id}/payload"};
  }
}


message GetPayloadRequest {
  // ID of the secret.
  string secret_id = 1 [(required) = true, (length) = "<=50"];

  // Optional ID of the version.
  string version_id = 2 [(length) = "<=50"];
}