Security Command Center v2 API - Class SecurityCenter.SecurityCenterBase (1.0.0-beta01)

[BindServiceMethod(typeof(SecurityCenter), "BindService")]
public abstract class SecurityCenter.SecurityCenterBase

Reference documentation and code samples for the Security Command Center v2 API class SecurityCenter.SecurityCenterBase.

Base class for server-side implementations of SecurityCenter

Inheritance

object > SecurityCenter.SecurityCenterBase

Namespace

Google.Cloud.SecurityCenter.V2

Assembly

Google.Cloud.SecurityCenter.V2.dll

Methods

BatchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest, ServerCallContext)

public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest request, ServerCallContext context)

Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.

Parameters
NameDescription
requestBatchCreateResourceValueConfigsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskBatchCreateResourceValueConfigsResponse

The response to send back to the client (wrapped by a task).

BulkMuteFindings(BulkMuteFindingsRequest, ServerCallContext)

public virtual Task<Operation> BulkMuteFindings(BulkMuteFindingsRequest request, ServerCallContext context)

Kicks off an LRO to bulk mute findings for a parent based on a filter. If no location is specified, findings are muted in global. The parent can be either an organization, folder, or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
requestBulkMuteFindingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

CreateBigQueryExport(CreateBigQueryExportRequest, ServerCallContext)

public virtual Task<BigQueryExport> CreateBigQueryExport(CreateBigQueryExportRequest request, ServerCallContext context)

Creates a BigQuery export.

Parameters
NameDescription
requestCreateBigQueryExportRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskBigQueryExport

The response to send back to the client (wrapped by a task).

CreateFinding(CreateFindingRequest, ServerCallContext)

public virtual Task<Finding> CreateFinding(CreateFindingRequest request, ServerCallContext context)

Creates a finding in a location. The corresponding source must exist for finding creation to succeed.

Parameters
NameDescription
requestCreateFindingRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFinding

The response to send back to the client (wrapped by a task).

CreateMuteConfig(CreateMuteConfigRequest, ServerCallContext)

public virtual Task<MuteConfig> CreateMuteConfig(CreateMuteConfigRequest request, ServerCallContext context)

Creates a mute config.

Parameters
NameDescription
requestCreateMuteConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskMuteConfig

The response to send back to the client (wrapped by a task).

CreateNotificationConfig(CreateNotificationConfigRequest, ServerCallContext)

public virtual Task<NotificationConfig> CreateNotificationConfig(CreateNotificationConfigRequest request, ServerCallContext context)

Creates a notification config.

Parameters
NameDescription
requestCreateNotificationConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskNotificationConfig

The response to send back to the client (wrapped by a task).

CreateSource(CreateSourceRequest, ServerCallContext)

public virtual Task<Source> CreateSource(CreateSourceRequest request, ServerCallContext context)

Creates a source.

Parameters
NameDescription
requestCreateSourceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSource

The response to send back to the client (wrapped by a task).

DeleteBigQueryExport(DeleteBigQueryExportRequest, ServerCallContext)

public virtual Task<Empty> DeleteBigQueryExport(DeleteBigQueryExportRequest request, ServerCallContext context)

Deletes an existing BigQuery export.

Parameters
NameDescription
requestDeleteBigQueryExportRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteMuteConfig(DeleteMuteConfigRequest, ServerCallContext)

public virtual Task<Empty> DeleteMuteConfig(DeleteMuteConfigRequest request, ServerCallContext context)

Deletes an existing mute config. If no location is specified, default is global.

Parameters
NameDescription
requestDeleteMuteConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteNotificationConfig(DeleteNotificationConfigRequest, ServerCallContext)

public virtual Task<Empty> DeleteNotificationConfig(DeleteNotificationConfigRequest request, ServerCallContext context)

Deletes a notification config.

Parameters
NameDescription
requestDeleteNotificationConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteResourceValueConfig(DeleteResourceValueConfigRequest, ServerCallContext)

public virtual Task<Empty> DeleteResourceValueConfig(DeleteResourceValueConfigRequest request, ServerCallContext context)

Deletes a ResourceValueConfig.

Parameters
NameDescription
requestDeleteResourceValueConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

GetBigQueryExport(GetBigQueryExportRequest, ServerCallContext)

public virtual Task<BigQueryExport> GetBigQueryExport(GetBigQueryExportRequest request, ServerCallContext context)

Gets a BigQuery export.

Parameters
NameDescription
requestGetBigQueryExportRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskBigQueryExport

The response to send back to the client (wrapped by a task).

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the access control policy on the specified Source.

Parameters
NameDescription
requestGetIamPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskPolicy

The response to send back to the client (wrapped by a task).

GetMuteConfig(GetMuteConfigRequest, ServerCallContext)

public virtual Task<MuteConfig> GetMuteConfig(GetMuteConfigRequest request, ServerCallContext context)

Gets a mute config. If no location is specified, default is global.

Parameters
NameDescription
requestGetMuteConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskMuteConfig

The response to send back to the client (wrapped by a task).

GetNotificationConfig(GetNotificationConfigRequest, ServerCallContext)

public virtual Task<NotificationConfig> GetNotificationConfig(GetNotificationConfigRequest request, ServerCallContext context)

Gets a notification config.

Parameters
NameDescription
requestGetNotificationConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskNotificationConfig

The response to send back to the client (wrapped by a task).

GetResourceValueConfig(GetResourceValueConfigRequest, ServerCallContext)

public virtual Task<ResourceValueConfig> GetResourceValueConfig(GetResourceValueConfigRequest request, ServerCallContext context)

Gets a ResourceValueConfig.

Parameters
NameDescription
requestGetResourceValueConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskResourceValueConfig

The response to send back to the client (wrapped by a task).

GetSimulation(GetSimulationRequest, ServerCallContext)

public virtual Task<Simulation> GetSimulation(GetSimulationRequest request, ServerCallContext context)

Get the simulation by name or the latest simulation for the given organization.

Parameters
NameDescription
requestGetSimulationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSimulation

The response to send back to the client (wrapped by a task).

GetSource(GetSourceRequest, ServerCallContext)

public virtual Task<Source> GetSource(GetSourceRequest request, ServerCallContext context)

Gets a source.

Parameters
NameDescription
requestGetSourceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSource

The response to send back to the client (wrapped by a task).

GetValuedResource(GetValuedResourceRequest, ServerCallContext)

public virtual Task<ValuedResource> GetValuedResource(GetValuedResourceRequest request, ServerCallContext context)

Get the valued resource by name

Parameters
NameDescription
requestGetValuedResourceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskValuedResource

The response to send back to the client (wrapped by a task).

GroupFindings(GroupFindingsRequest, ServerCallContext)

public virtual Task<GroupFindingsResponse> GroupFindings(GroupFindingsRequest request, ServerCallContext context)

Filters an organization or source's findings and groups them by their specified properties in a location. If no location is specified, findings are assumed to be in global

To group across all sources provide a - as the source id. The following list shows some examples:

  • /v2/organizations/{organization_id}/sources/-/findings + /v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings
  • /v2/folders/{folder_id}/sources/-/findings
  • /v2/folders/{folder_id}/sources/-/locations/{location_id}/findings
  • /v2/projects/{project_id}/sources/-/findings
  • /v2/projects/{project_id}/sources/-/locations/{location_id}/findings
Parameters
NameDescription
requestGroupFindingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskGroupFindingsResponse

The response to send back to the client (wrapped by a task).

ListAttackPaths(ListAttackPathsRequest, ServerCallContext)

public virtual Task<ListAttackPathsResponse> ListAttackPaths(ListAttackPathsRequest request, ServerCallContext context)

Lists the attack paths for a set of simulation results or valued resources and filter.

Parameters
NameDescription
requestListAttackPathsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListAttackPathsResponse

The response to send back to the client (wrapped by a task).

ListBigQueryExports(ListBigQueryExportsRequest, ServerCallContext)

public virtual Task<ListBigQueryExportsResponse> ListBigQueryExports(ListBigQueryExportsRequest request, ServerCallContext context)

Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.

Parameters
NameDescription
requestListBigQueryExportsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListBigQueryExportsResponse

The response to send back to the client (wrapped by a task).

ListFindings(ListFindingsRequest, ServerCallContext)

public virtual Task<ListFindingsResponse> ListFindings(ListFindingsRequest request, ServerCallContext context)

Lists an organization or source's findings.

To list across all sources for a given location provide a - as the source id. If no location is specified, finding are assumed to be in global. The following list shows some examples:

  • /v2/organizations/{organization_id}/sources/-/findings + /v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings
Parameters
NameDescription
requestListFindingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListFindingsResponse

The response to send back to the client (wrapped by a task).

ListMuteConfigs(ListMuteConfigsRequest, ServerCallContext)

public virtual Task<ListMuteConfigsResponse> ListMuteConfigs(ListMuteConfigsRequest request, ServerCallContext context)

Lists mute configs. If no location is specified, default is global.

Parameters
NameDescription
requestListMuteConfigsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListMuteConfigsResponse

The response to send back to the client (wrapped by a task).

ListNotificationConfigs(ListNotificationConfigsRequest, ServerCallContext)

public virtual Task<ListNotificationConfigsResponse> ListNotificationConfigs(ListNotificationConfigsRequest request, ServerCallContext context)

Lists notification configs.

Parameters
NameDescription
requestListNotificationConfigsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListNotificationConfigsResponse

The response to send back to the client (wrapped by a task).

ListResourceValueConfigs(ListResourceValueConfigsRequest, ServerCallContext)

public virtual Task<ListResourceValueConfigsResponse> ListResourceValueConfigs(ListResourceValueConfigsRequest request, ServerCallContext context)

Lists all ResourceValueConfigs.

Parameters
NameDescription
requestListResourceValueConfigsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListResourceValueConfigsResponse

The response to send back to the client (wrapped by a task).

ListSources(ListSourcesRequest, ServerCallContext)

public virtual Task<ListSourcesResponse> ListSources(ListSourcesRequest request, ServerCallContext context)

Lists all sources belonging to an organization.

Parameters
NameDescription
requestListSourcesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListSourcesResponse

The response to send back to the client (wrapped by a task).

ListValuedResources(ListValuedResourcesRequest, ServerCallContext)

public virtual Task<ListValuedResourcesResponse> ListValuedResources(ListValuedResourcesRequest request, ServerCallContext context)

Lists the valued resources for a set of simulation results and filter.

Parameters
NameDescription
requestListValuedResourcesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListValuedResourcesResponse

The response to send back to the client (wrapped by a task).

SetFindingState(SetFindingStateRequest, ServerCallContext)

public virtual Task<Finding> SetFindingState(SetFindingStateRequest request, ServerCallContext context)

Updates the state of a finding. If no location is specified, finding is assumed to be in global

Parameters
NameDescription
requestSetFindingStateRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFinding

The response to send back to the client (wrapped by a task).

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Sets the access control policy on the specified Source.

Parameters
NameDescription
requestSetIamPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskPolicy

The response to send back to the client (wrapped by a task).

SetMute(SetMuteRequest, ServerCallContext)

public virtual Task<Finding> SetMute(SetMuteRequest request, ServerCallContext context)

Updates the mute state of a finding. If no location is specified, finding is assumed to be in global

Parameters
NameDescription
requestSetMuteRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFinding

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

Returns the permissions that a caller has on the specified source.

Parameters
NameDescription
requestTestIamPermissionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskTestIamPermissionsResponse

The response to send back to the client (wrapped by a task).

UpdateBigQueryExport(UpdateBigQueryExportRequest, ServerCallContext)

public virtual Task<BigQueryExport> UpdateBigQueryExport(UpdateBigQueryExportRequest request, ServerCallContext context)

Updates a BigQuery export.

Parameters
NameDescription
requestUpdateBigQueryExportRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskBigQueryExport

The response to send back to the client (wrapped by a task).

UpdateExternalSystem(UpdateExternalSystemRequest, ServerCallContext)

public virtual Task<ExternalSystem> UpdateExternalSystem(UpdateExternalSystemRequest request, ServerCallContext context)

Updates external system. This is for a given finding. If no location is specified, finding is assumed to be in global

Parameters
NameDescription
requestUpdateExternalSystemRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskExternalSystem

The response to send back to the client (wrapped by a task).

UpdateFinding(UpdateFindingRequest, ServerCallContext)

public virtual Task<Finding> UpdateFinding(UpdateFindingRequest request, ServerCallContext context)

Creates or updates a finding. If no location is specified, finding is assumed to be in global. The corresponding source must exist for a finding creation to succeed.

Parameters
NameDescription
requestUpdateFindingRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFinding

The response to send back to the client (wrapped by a task).

UpdateMuteConfig(UpdateMuteConfigRequest, ServerCallContext)

public virtual Task<MuteConfig> UpdateMuteConfig(UpdateMuteConfigRequest request, ServerCallContext context)

Updates a mute config. If no location is specified, default is global.

Parameters
NameDescription
requestUpdateMuteConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskMuteConfig

The response to send back to the client (wrapped by a task).

UpdateNotificationConfig(UpdateNotificationConfigRequest, ServerCallContext)

public virtual Task<NotificationConfig> UpdateNotificationConfig(UpdateNotificationConfigRequest request, ServerCallContext context)

Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter

Parameters
NameDescription
requestUpdateNotificationConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskNotificationConfig

The response to send back to the client (wrapped by a task).

UpdateResourceValueConfig(UpdateResourceValueConfigRequest, ServerCallContext)

public virtual Task<ResourceValueConfig> UpdateResourceValueConfig(UpdateResourceValueConfigRequest request, ServerCallContext context)

Updates an existing ResourceValueConfigs with new rules.

Parameters
NameDescription
requestUpdateResourceValueConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskResourceValueConfig

The response to send back to the client (wrapped by a task).

UpdateSecurityMarks(UpdateSecurityMarksRequest, ServerCallContext)

public virtual Task<SecurityMarks> UpdateSecurityMarks(UpdateSecurityMarksRequest request, ServerCallContext context)

Updates security marks. For Finding Security marks, if no location is specified, finding is assumed to be in global. Assets Security Marks can only be accessed through global endpoint.

Parameters
NameDescription
requestUpdateSecurityMarksRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSecurityMarks

The response to send back to the client (wrapped by a task).

UpdateSource(UpdateSourceRequest, ServerCallContext)

public virtual Task<Source> UpdateSource(UpdateSourceRequest request, ServerCallContext context)

Updates a source.

Parameters
NameDescription
requestUpdateSourceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSource

The response to send back to the client (wrapped by a task).