Interface KeyTrackingServiceGrpc.AsyncService (0.76.0)

public static interface KeyTrackingServiceGrpc.AsyncService

Returns information about the resources in an org that are protected by a given Cloud KMS key via CMEK.

Methods

getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request, StreamObserver<ProtectedResourcesSummary> responseObserver)

public default void getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request, StreamObserver<ProtectedResourcesSummary> responseObserver)

Returns aggregate information about the resources protected by the given Cloud KMS CryptoKey. By default, summary of resources within the same Cloud organization as the key will be returned, which requires the KMS organization service account to be configured(refer https://docs.cloud.google.com/kms/docs/view-key-usage#required-roles). If the KMS organization service account is not configured or key's project is not part of an organization, set fallback_scope to FALLBACK_SCOPE_PROJECT to retrieve a summary of protected resources within the key's project.

Parameters
Name Description
request GetProtectedResourcesSummaryRequest
responseObserver io.grpc.stub.StreamObserver<ProtectedResourcesSummary>

searchProtectedResources(SearchProtectedResourcesRequest request, StreamObserver<SearchProtectedResourcesResponse> responseObserver)

public default void searchProtectedResources(SearchProtectedResourcesRequest request, StreamObserver<SearchProtectedResourcesResponse> responseObserver)

Returns metadata about the resources protected by the given Cloud KMS CryptoKey in the given Cloud organization/project.

Parameters
Name Description
request SearchProtectedResourcesRequest
responseObserver io.grpc.stub.StreamObserver<SearchProtectedResourcesResponse>