Skip to content

Commit be2600e

Browse files
Google APIscopybara-github
authored andcommitted
feat: added VerifyConnectivity RPC
PiperOrigin-RevId: 530991686
1 parent 1392f67 commit be2600e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

google/cloud/kms/v1/ekm_service.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,19 @@ service EkmService {
102102
};
103103
option (google.api.method_signature) = "ekm_config,update_mask";
104104
}
105+
106+
// Verifies that Cloud KMS can successfully connect to the external key
107+
// manager specified by an [EkmConnection][google.cloud.kms.v1.EkmConnection].
108+
// If there is an error connecting to the EKM, this method returns a
109+
// FAILED_PRECONDITION status containing structured information as described
110+
// at https://cloud.google.com/kms/docs/reference/ekm_errors.
111+
rpc VerifyConnectivity(VerifyConnectivityRequest)
112+
returns (VerifyConnectivityResponse) {
113+
option (google.api.http) = {
114+
get: "/v1/{name=projects/*/locations/*/ekmConnections/*}:verifyConnectivity"
115+
};
116+
option (google.api.method_signature) = "name";
117+
}
105118
}
106119

107120
// Request message for
@@ -419,3 +432,20 @@ message EkmConfig {
419432
}
420433
];
421434
}
435+
436+
// Request message for
437+
// [EkmService.VerifyConnectivity][google.cloud.kms.v1.EkmService.VerifyConnectivity].
438+
message VerifyConnectivityRequest {
439+
// Required. The [name][google.cloud.kms.v1.EkmConnection.name] of the
440+
// [EkmConnection][google.cloud.kms.v1.EkmConnection] to verify.
441+
string name = 1 [
442+
(google.api.field_behavior) = REQUIRED,
443+
(google.api.resource_reference) = {
444+
type: "cloudkms.googleapis.com/EkmConnection"
445+
}
446+
];
447+
}
448+
449+
// Response message for
450+
// [EkmService.VerifyConnectivity][google.cloud.kms.v1.EkmService.VerifyConnectivity].
451+
message VerifyConnectivityResponse {}

0 commit comments

Comments
 (0)