public abstract class SecurityCenterClient
Reference documentation and code samples for the Security Command Center v2 API class SecurityCenterClient.
SecurityCenter client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.SecurityCenter.V2Assembly
Google.Cloud.SecurityCenter.V2.dll
Remarks
V2 APIs for Security Center service.
Properties
BulkMuteFindingsOperationsClient
public virtual OperationsClient BulkMuteFindingsOperationsClient { get; }
The long-running operations client for BulkMuteFindings
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the SecurityCenter service, which is a host of "securitycenter.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default SecurityCenter scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default SecurityCenter scopes are:
GrpcClient
public virtual SecurityCenter.SecurityCenterClient GrpcClient { get; }
The underlying gRPC SecurityCenter client
Property Value | |
---|---|
Type | Description |
SecurityCenterSecurityCenterClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
BatchCreateResourceValueConfigs(OrganizationName, IEnumerable<CreateResourceValueConfigRequest>, CallSettings)
public virtual BatchCreateResourceValueConfigsResponse BatchCreateResourceValueConfigs(OrganizationName parent, IEnumerable<CreateResourceValueConfigRequest> requests, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchCreateResourceValueConfigsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(parent, requests);
BatchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest, CallSettings)
public virtual BatchCreateResourceValueConfigsResponse BatchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest request, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
request |
BatchCreateResourceValueConfigsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchCreateResourceValueConfigsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CreateResourceValueConfigRequest(),
},
};
// Make the request
BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(request);
BatchCreateResourceValueConfigs(string, IEnumerable<CreateResourceValueConfigRequest>, CallSettings)
public virtual BatchCreateResourceValueConfigsResponse BatchCreateResourceValueConfigs(string parent, IEnumerable<CreateResourceValueConfigRequest> requests, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchCreateResourceValueConfigsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(parent, requests);
BatchCreateResourceValueConfigsAsync(OrganizationName, IEnumerable<CreateResourceValueConfigRequest>, CallSettings)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(OrganizationName parent, IEnumerable<CreateResourceValueConfigRequest> requests, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests);
BatchCreateResourceValueConfigsAsync(OrganizationName, IEnumerable<CreateResourceValueConfigRequest>, CancellationToken)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(OrganizationName parent, IEnumerable<CreateResourceValueConfigRequest> requests, CancellationToken cancellationToken)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests);
BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest, CallSettings)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest request, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
request |
BatchCreateResourceValueConfigsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CreateResourceValueConfigRequest(),
},
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(request);
BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest, CancellationToken)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest request, CancellationToken cancellationToken)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
request |
BatchCreateResourceValueConfigsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CreateResourceValueConfigRequest(),
},
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(request);
BatchCreateResourceValueConfigsAsync(string, IEnumerable<CreateResourceValueConfigRequest>, CallSettings)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(string parent, IEnumerable<CreateResourceValueConfigRequest> requests, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests);
BatchCreateResourceValueConfigsAsync(string, IEnumerable<CreateResourceValueConfigRequest>, CancellationToken)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(string parent, IEnumerable<CreateResourceValueConfigRequest> requests, CancellationToken cancellationToken)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests);
BulkMuteFindings(IResourceName, CallSettings)
public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(IResourceName parent, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
parent |
IResourceName Required. The parent, at which bulk action needs to be applied. If no location is specified, findings are updated in global. The following list shows some examples:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBulkMuteFindingsResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindings(BulkMuteFindingsRequest, CallSettings)
public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(BulkMuteFindingsRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request |
BulkMuteFindingsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBulkMuteFindingsResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Filter = "",
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(request);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindings(string, CallSettings)
public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(string parent, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
parent |
string Required. The parent, at which bulk action needs to be applied. If no location is specified, findings are updated in global. The following list shows some examples:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBulkMuteFindingsResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(IResourceName, CallSettings)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(IResourceName parent, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
parent |
IResourceName Required. The parent, at which bulk action needs to be applied. If no location is specified, findings are updated in global. The following list shows some examples:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(IResourceName, CancellationToken)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(IResourceName parent, CancellationToken cancellationToken)
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 | |
---|---|
Name | Description |
parent |
IResourceName Required. The parent, at which bulk action needs to be applied. If no location is specified, findings are updated in global. The following list shows some examples:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(BulkMuteFindingsRequest, CallSettings)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(BulkMuteFindingsRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request |
BulkMuteFindingsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Filter = "",
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(BulkMuteFindingsRequest, CancellationToken)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(BulkMuteFindingsRequest request, CancellationToken cancellationToken)
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 | |
---|---|
Name | Description |
request |
BulkMuteFindingsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Filter = "",
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(string, CallSettings)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(string parent, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
parent |
string Required. The parent, at which bulk action needs to be applied. If no location is specified, findings are updated in global. The following list shows some examples:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(string, CancellationToken)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(string parent, CancellationToken cancellationToken)
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 | |
---|---|
Name | Description |
parent |
string Required. The parent, at which bulk action needs to be applied. If no location is specified, findings are updated in global. The following list shows some examples:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
Create()
public static SecurityCenterClient Create()
Synchronously creates a SecurityCenterClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecurityCenterClientBuilder.
Returns | |
---|---|
Type | Description |
SecurityCenterClient |
The created SecurityCenterClient. |
CreateAsync(CancellationToken)
public static Task<SecurityCenterClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a SecurityCenterClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecurityCenterClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskSecurityCenterClient |
The task representing the created SecurityCenterClient. |
CreateBigQueryExport(LocationName, BigQueryExport, string, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(LocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExport(CreateBigQueryExportRequest, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(CreateBigQueryExportRequest request, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
CreateBigQueryExportRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
BigQueryExport = new BigQueryExport(),
BigQueryExportId = "",
};
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(request);
CreateBigQueryExport(FolderLocationName, BigQueryExport, string, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(FolderLocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExport(OrganizationLocationName, BigQueryExport, string, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(OrganizationLocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExport(string, BigQueryExport, string, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(LocationName, BigQueryExport, string, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(LocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(LocationName, BigQueryExport, string, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(LocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(CreateBigQueryExportRequest, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(CreateBigQueryExportRequest request, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
CreateBigQueryExportRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
BigQueryExport = new BigQueryExport(),
BigQueryExportId = "",
};
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(request);
CreateBigQueryExportAsync(CreateBigQueryExportRequest, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(CreateBigQueryExportRequest request, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
CreateBigQueryExportRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
BigQueryExport = new BigQueryExport(),
BigQueryExportId = "",
};
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(request);
CreateBigQueryExportAsync(FolderLocationName, BigQueryExport, string, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(FolderLocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(FolderLocationName, BigQueryExport, string, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(FolderLocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(OrganizationLocationName, BigQueryExport, string, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(OrganizationLocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(OrganizationLocationName, BigQueryExport, string, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(OrganizationLocationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(string, BigQueryExport, string, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(string, BigQueryExport, string, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateFinding(CreateFindingRequest, CallSettings)
public virtual Finding CreateFinding(CreateFindingRequest request, CallSettings callSettings = null)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
CreateFindingRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateFindingRequest request = new CreateFindingRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
FindingId = "",
Finding = new Finding(),
};
// Make the request
Finding response = securityCenterClient.CreateFinding(request);
CreateFinding(SourceName, Finding, string, CallSettings)
public virtual Finding CreateFinding(SourceName parent, Finding finding, string findingId, CallSettings callSettings = null)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
SourceName Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+
|
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
Finding finding = new Finding();
string findingId = "";
// Make the request
Finding response = securityCenterClient.CreateFinding(parent, finding, findingId);
CreateFinding(string, Finding, string, CallSettings)
public virtual Finding CreateFinding(string parent, Finding finding, string findingId, CallSettings callSettings = null)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+
|
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
Finding finding = new Finding();
string findingId = "";
// Make the request
Finding response = securityCenterClient.CreateFinding(parent, finding, findingId);
CreateFindingAsync(CreateFindingRequest, CallSettings)
public virtual Task<Finding> CreateFindingAsync(CreateFindingRequest request, CallSettings callSettings = null)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
CreateFindingRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateFindingRequest request = new CreateFindingRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
FindingId = "",
Finding = new Finding(),
};
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(request);
CreateFindingAsync(CreateFindingRequest, CancellationToken)
public virtual Task<Finding> CreateFindingAsync(CreateFindingRequest request, CancellationToken cancellationToken)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
CreateFindingRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateFindingRequest request = new CreateFindingRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
FindingId = "",
Finding = new Finding(),
};
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(request);
CreateFindingAsync(SourceName, Finding, string, CallSettings)
public virtual Task<Finding> CreateFindingAsync(SourceName parent, Finding finding, string findingId, CallSettings callSettings = null)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
SourceName Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+
|
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
Finding finding = new Finding();
string findingId = "";
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(parent, finding, findingId);
CreateFindingAsync(SourceName, Finding, string, CancellationToken)
public virtual Task<Finding> CreateFindingAsync(SourceName parent, Finding finding, string findingId, CancellationToken cancellationToken)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
SourceName Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+
|
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
Finding finding = new Finding();
string findingId = "";
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(parent, finding, findingId);
CreateFindingAsync(string, Finding, string, CallSettings)
public virtual Task<Finding> CreateFindingAsync(string parent, Finding finding, string findingId, CallSettings callSettings = null)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+
|
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
Finding finding = new Finding();
string findingId = "";
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(parent, finding, findingId);
CreateFindingAsync(string, Finding, string, CancellationToken)
public virtual Task<Finding> CreateFindingAsync(string parent, Finding finding, string findingId, CancellationToken cancellationToken)
Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+
|
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
Finding finding = new Finding();
string findingId = "";
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(parent, finding, findingId);
CreateMuteConfig(FolderName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(FolderName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(LocationName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(LocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(OrganizationName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(ProjectName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(CreateMuteConfigRequest, CallSettings)
public virtual MuteConfig CreateMuteConfig(CreateMuteConfigRequest request, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
request |
CreateMuteConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
MuteConfig = new MuteConfig(),
MuteConfigId = "",
};
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(request);
CreateMuteConfig(FolderLocationName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(FolderLocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(OrganizationLocationName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(OrganizationLocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(string, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(string parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(FolderName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(FolderName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(LocationName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(LocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(LocationName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(LocationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(OrganizationName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(OrganizationName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(ProjectName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(ProjectName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(CreateMuteConfigRequest, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(CreateMuteConfigRequest request, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
request |
CreateMuteConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
MuteConfig = new MuteConfig(),
MuteConfigId = "",
};
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(request);
CreateMuteConfigAsync(CreateMuteConfigRequest, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(CreateMuteConfigRequest request, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
request |
CreateMuteConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
MuteConfig = new MuteConfig(),
MuteConfigId = "",
};
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(request);
CreateMuteConfigAsync(FolderLocationName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderLocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(FolderLocationName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderLocationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationLocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationLocationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(string, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(string, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateNotificationConfig(LocationName, NotificationConfig, string, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(LocationName parent, NotificationConfig notificationConfig, string configId, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig, configId);
CreateNotificationConfig(CreateNotificationConfigRequest, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(CreateNotificationConfigRequest request, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
request |
CreateNotificationConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
ConfigId = "",
NotificationConfig = new NotificationConfig(),
};
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(request);
CreateNotificationConfig(FolderLocationName, NotificationConfig, string, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(FolderLocationName parent, NotificationConfig notificationConfig, string configId, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig, configId);
CreateNotificationConfig(OrganizationLocationName, NotificationConfig, string, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(OrganizationLocationName parent, NotificationConfig notificationConfig, string configId, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig, configId);
CreateNotificationConfig(string, NotificationConfig, string, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(string parent, NotificationConfig notificationConfig, string configId, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig, configId);
CreateNotificationConfigAsync(LocationName, NotificationConfig, string, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(LocationName parent, NotificationConfig notificationConfig, string configId, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig, configId);
CreateNotificationConfigAsync(LocationName, NotificationConfig, string, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(LocationName parent, NotificationConfig notificationConfig, string configId, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig, configId);
CreateNotificationConfigAsync(CreateNotificationConfigRequest, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(CreateNotificationConfigRequest request, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
request |
CreateNotificationConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
ConfigId = "",
NotificationConfig = new NotificationConfig(),
};
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(request);
CreateNotificationConfigAsync(CreateNotificationConfigRequest, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(CreateNotificationConfigRequest request, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
request |
CreateNotificationConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
{
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
ConfigId = "",
NotificationConfig = new NotificationConfig(),
};
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(request);
CreateNotificationConfigAsync(FolderLocationName, NotificationConfig, string, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(FolderLocationName parent, NotificationConfig notificationConfig, string configId, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig, configId);
CreateNotificationConfigAsync(FolderLocationName, NotificationConfig, string, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(FolderLocationName parent, NotificationConfig notificationConfig, string configId, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig, configId);
CreateNotificationConfigAsync(OrganizationLocationName, NotificationConfig, string, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationLocationName parent, NotificationConfig notificationConfig, string configId, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig, configId);
CreateNotificationConfigAsync(OrganizationLocationName, NotificationConfig, string, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationLocationName parent, NotificationConfig notificationConfig, string configId, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig, configId);
CreateNotificationConfigAsync(string, NotificationConfig, string, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, NotificationConfig notificationConfig, string configId, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig, configId);
CreateNotificationConfigAsync(string, NotificationConfig, string, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, NotificationConfig notificationConfig, string configId, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]/locations/[location_id]", "folders/[folder_id]/locations/[location_id]", or "projects/[project_id]/locations/[location_id]". |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
NotificationConfig notificationConfig = new NotificationConfig();
string configId = "";
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig, configId);
CreateSource(OrganizationName, Source, CallSettings)
public virtual Source CreateSource(OrganizationName parent, Source source, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]". |
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Source source = new Source();
// Make the request
Source response = securityCenterClient.CreateSource(parent, source);
CreateSource(CreateSourceRequest, CallSettings)
public virtual Source CreateSource(CreateSourceRequest request, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
request |
CreateSourceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Source = new Source(),
};
// Make the request
Source response = securityCenterClient.CreateSource(request);
CreateSource(string, Source, CallSettings)
public virtual Source CreateSource(string parent, Source source, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]". |
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
Source source = new Source();
// Make the request
Source response = securityCenterClient.CreateSource(parent, source);
CreateSourceAsync(OrganizationName, Source, CallSettings)
public virtual Task<Source> CreateSourceAsync(OrganizationName parent, Source source, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]". |
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Source source = new Source();
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(parent, source);
CreateSourceAsync(OrganizationName, Source, CancellationToken)
public virtual Task<Source> CreateSourceAsync(OrganizationName parent, Source source, CancellationToken cancellationToken)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]". |
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Source source = new Source();
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(parent, source);
CreateSourceAsync(CreateSourceRequest, CallSettings)
public virtual Task<Source> CreateSourceAsync(CreateSourceRequest request, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
request |
CreateSourceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Source = new Source(),
};
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(request);
CreateSourceAsync(CreateSourceRequest, CancellationToken)
public virtual Task<Source> CreateSourceAsync(CreateSourceRequest request, CancellationToken cancellationToken)
Creates a source.
Parameters | |
---|---|
Name | Description |
request |
CreateSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Source = new Source(),
};
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(request);
CreateSourceAsync(string, Source, CallSettings)
public virtual Task<Source> CreateSourceAsync(string parent, Source source, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]". |
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
Source source = new Source();
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(parent, source);
CreateSourceAsync(string, Source, CancellationToken)
public virtual Task<Source> CreateSourceAsync(string parent, Source source, CancellationToken cancellationToken)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]". |
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
Source source = new Source();
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(parent, source);
DeleteBigQueryExport(BigQueryExportName, CallSettings)
public virtual void DeleteBigQueryExport(BigQueryExportName name, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. The name of the BigQuery export to delete. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]");
// Make the request
securityCenterClient.DeleteBigQueryExport(name);
DeleteBigQueryExport(DeleteBigQueryExportRequest, CallSettings)
public virtual void DeleteBigQueryExport(DeleteBigQueryExportRequest request, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
DeleteBigQueryExportRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]"),
};
// Make the request
securityCenterClient.DeleteBigQueryExport(request);
DeleteBigQueryExport(string, CallSettings)
public virtual void DeleteBigQueryExport(string name, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the BigQuery export to delete. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/bigQueryExports/[EXPORT]";
// Make the request
securityCenterClient.DeleteBigQueryExport(name);
DeleteBigQueryExportAsync(BigQueryExportName, CallSettings)
public virtual Task DeleteBigQueryExportAsync(BigQueryExportName name, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. The name of the BigQuery export to delete. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]");
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);
DeleteBigQueryExportAsync(BigQueryExportName, CancellationToken)
public virtual Task DeleteBigQueryExportAsync(BigQueryExportName name, CancellationToken cancellationToken)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. The name of the BigQuery export to delete. The following list shows some examples of the format: +
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]");
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);
DeleteBigQueryExportAsync(DeleteBigQueryExportRequest, CallSettings)
public virtual Task DeleteBigQueryExportAsync(DeleteBigQueryExportRequest request, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
DeleteBigQueryExportRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]"),
};
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(request);
DeleteBigQueryExportAsync(DeleteBigQueryExportRequest, CancellationToken)
public virtual Task DeleteBigQueryExportAsync(DeleteBigQueryExportRequest request, CancellationToken cancellationToken)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
DeleteBigQueryExportRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]"),
};
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(request);
DeleteBigQueryExportAsync(string, CallSettings)
public virtual Task DeleteBigQueryExportAsync(string name, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the BigQuery export to delete. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/bigQueryExports/[EXPORT]";
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);
DeleteBigQueryExportAsync(string, CancellationToken)
public virtual Task DeleteBigQueryExportAsync(string name, CancellationToken cancellationToken)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the BigQuery export to delete. The following list shows some examples of the format: +
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/bigQueryExports/[EXPORT]";
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);
DeleteMuteConfig(DeleteMuteConfigRequest, CallSettings)
public virtual void DeleteMuteConfig(DeleteMuteConfigRequest request, CallSettings callSettings = null)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
request |
DeleteMuteConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
securityCenterClient.DeleteMuteConfig(request);
DeleteMuteConfig(MuteConfigName, CallSettings)
public virtual void DeleteMuteConfig(MuteConfigName name, CallSettings callSettings = null)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to delete. The following list shows some examples of the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
securityCenterClient.DeleteMuteConfig(name);
DeleteMuteConfig(string, CallSettings)
public virtual void DeleteMuteConfig(string name, CallSettings callSettings = null)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to delete. The following list shows some examples of the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
securityCenterClient.DeleteMuteConfig(name);
DeleteMuteConfigAsync(DeleteMuteConfigRequest, CallSettings)
public virtual Task DeleteMuteConfigAsync(DeleteMuteConfigRequest request, CallSettings callSettings = null)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
request |
DeleteMuteConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(request);
DeleteMuteConfigAsync(DeleteMuteConfigRequest, CancellationToken)
public virtual Task DeleteMuteConfigAsync(DeleteMuteConfigRequest request, CancellationToken cancellationToken)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
request |
DeleteMuteConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(request);
DeleteMuteConfigAsync(MuteConfigName, CallSettings)
public virtual Task DeleteMuteConfigAsync(MuteConfigName name, CallSettings callSettings = null)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to delete. The following list shows some examples of the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);
DeleteMuteConfigAsync(MuteConfigName, CancellationToken)
public virtual Task DeleteMuteConfigAsync(MuteConfigName name, CancellationToken cancellationToken)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to delete. The following list shows some examples of the format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);
DeleteMuteConfigAsync(string, CallSettings)
public virtual Task DeleteMuteConfigAsync(string name, CallSettings callSettings = null)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to delete. The following list shows some examples of the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);
DeleteMuteConfigAsync(string, CancellationToken)
public virtual Task DeleteMuteConfigAsync(string name, CancellationToken cancellationToken)
Deletes an existing mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to delete. The following list shows some examples of the format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);
DeleteNotificationConfig(DeleteNotificationConfigRequest, CallSettings)
public virtual void DeleteNotificationConfig(DeleteNotificationConfigRequest request, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
request |
DeleteNotificationConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
securityCenterClient.DeleteNotificationConfig(request);
DeleteNotificationConfig(NotificationConfigName, CallSettings)
public virtual void DeleteNotificationConfig(NotificationConfigName name, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to delete. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]");
// Make the request
securityCenterClient.DeleteNotificationConfig(name);
DeleteNotificationConfig(string, CallSettings)
public virtual void DeleteNotificationConfig(string name, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to delete. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
securityCenterClient.DeleteNotificationConfig(name);
DeleteNotificationConfigAsync(DeleteNotificationConfigRequest, CallSettings)
public virtual Task DeleteNotificationConfigAsync(DeleteNotificationConfigRequest request, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
request |
DeleteNotificationConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(request);
DeleteNotificationConfigAsync(DeleteNotificationConfigRequest, CancellationToken)
public virtual Task DeleteNotificationConfigAsync(DeleteNotificationConfigRequest request, CancellationToken cancellationToken)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
request |
DeleteNotificationConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(request);
DeleteNotificationConfigAsync(NotificationConfigName, CallSettings)
public virtual Task DeleteNotificationConfigAsync(NotificationConfigName name, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to delete. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]");
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(name);
DeleteNotificationConfigAsync(NotificationConfigName, CancellationToken)
public virtual Task DeleteNotificationConfigAsync(NotificationConfigName name, CancellationToken cancellationToken)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to delete. The following list shows some examples of the format: +
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]");
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(name);
DeleteNotificationConfigAsync(string, CallSettings)
public virtual Task DeleteNotificationConfigAsync(string name, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to delete. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(name);
DeleteNotificationConfigAsync(string, CancellationToken)
public virtual Task DeleteNotificationConfigAsync(string name, CancellationToken cancellationToken)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to delete. The following list shows some examples of the format: +
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(name);
DeleteResourceValueConfig(DeleteResourceValueConfigRequest, CallSettings)
public virtual void DeleteResourceValueConfig(DeleteResourceValueConfigRequest request, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteResourceValueConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
securityCenterClient.DeleteResourceValueConfig(request);
DeleteResourceValueConfig(ResourceValueConfigName, CallSettings)
public virtual void DeleteResourceValueConfig(ResourceValueConfigName name, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the ResourceValueConfig to delete |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
securityCenterClient.DeleteResourceValueConfig(name);
DeleteResourceValueConfig(string, CallSettings)
public virtual void DeleteResourceValueConfig(string name, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ResourceValueConfig to delete |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
securityCenterClient.DeleteResourceValueConfig(name);
DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest, CallSettings)
public virtual Task DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest request, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteResourceValueConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(request);
DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest, CancellationToken)
public virtual Task DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest request, CancellationToken cancellationToken)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteResourceValueConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(request);
DeleteResourceValueConfigAsync(ResourceValueConfigName, CallSettings)
public virtual Task DeleteResourceValueConfigAsync(ResourceValueConfigName name, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the ResourceValueConfig to delete |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(name);
DeleteResourceValueConfigAsync(ResourceValueConfigName, CancellationToken)
public virtual Task DeleteResourceValueConfigAsync(ResourceValueConfigName name, CancellationToken cancellationToken)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the ResourceValueConfig to delete |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(name);
DeleteResourceValueConfigAsync(string, CallSettings)
public virtual Task DeleteResourceValueConfigAsync(string name, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ResourceValueConfig to delete |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(name);
DeleteResourceValueConfigAsync(string, CancellationToken)
public virtual Task DeleteResourceValueConfigAsync(string name, CancellationToken cancellationToken)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ResourceValueConfig to delete |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(name);
GetBigQueryExport(BigQueryExportName, CallSettings)
public virtual BigQueryExport GetBigQueryExport(BigQueryExportName name, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. Name of the BigQuery export to retrieve. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]");
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(name);
GetBigQueryExport(GetBigQueryExportRequest, CallSettings)
public virtual BigQueryExport GetBigQueryExport(GetBigQueryExportRequest request, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
GetBigQueryExportRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(request);
GetBigQueryExport(string, CallSettings)
public virtual BigQueryExport GetBigQueryExport(string name, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the BigQuery export to retrieve. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(name);
GetBigQueryExportAsync(BigQueryExportName, CallSettings)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(BigQueryExportName name, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. Name of the BigQuery export to retrieve. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]");
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);
GetBigQueryExportAsync(BigQueryExportName, CancellationToken)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(BigQueryExportName name, CancellationToken cancellationToken)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. Name of the BigQuery export to retrieve. The following list shows some examples of the format: +
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]");
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);
GetBigQueryExportAsync(GetBigQueryExportRequest, CallSettings)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(GetBigQueryExportRequest request, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
GetBigQueryExportRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(request);
GetBigQueryExportAsync(GetBigQueryExportRequest, CancellationToken)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(GetBigQueryExportRequest request, CancellationToken cancellationToken)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
GetBigQueryExportRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationLocationExport("[ORGANIZATION]", "[LOCATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(request);
GetBigQueryExportAsync(string, CallSettings)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(string name, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the BigQuery export to retrieve. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);
GetBigQueryExportAsync(string, CancellationToken)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(string name, CancellationToken cancellationToken)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the BigQuery export to retrieve. The following list shows some examples of the format: +
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);
GetIamPolicy(IResourceName, CallSettings)
public virtual Policy GetIamPolicy(IResourceName resource, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = securityCenterClient.GetIamPolicy(resource);
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = securityCenterClient.GetIamPolicy(request);
GetIamPolicy(string, CallSettings)
public virtual Policy GetIamPolicy(string resource, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = securityCenterClient.GetIamPolicy(resource);
GetIamPolicyAsync(IResourceName, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(IResourceName, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CancellationToken cancellationToken)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(string, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(string resource, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(string, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(string resource, CancellationToken cancellationToken)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(resource);
GetMuteConfig(GetMuteConfigRequest, CallSettings)
public virtual MuteConfig GetMuteConfig(GetMuteConfigRequest request, CallSettings callSettings = null)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
request |
GetMuteConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(request);
GetMuteConfig(MuteConfigName, CallSettings)
public virtual MuteConfig GetMuteConfig(MuteConfigName name, CallSettings callSettings = null)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to retrieve. The following list shows some examples of the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(name);
GetMuteConfig(string, CallSettings)
public virtual MuteConfig GetMuteConfig(string name, CallSettings callSettings = null)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to retrieve. The following list shows some examples of the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(name);
GetMuteConfigAsync(GetMuteConfigRequest, CallSettings)
public virtual Task<MuteConfig> GetMuteConfigAsync(GetMuteConfigRequest request, CallSettings callSettings = null)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
request |
GetMuteConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(request);
GetMuteConfigAsync(GetMuteConfigRequest, CancellationToken)
public virtual Task<MuteConfig> GetMuteConfigAsync(GetMuteConfigRequest request, CancellationToken cancellationToken)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
request |
GetMuteConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(request);
GetMuteConfigAsync(MuteConfigName, CallSettings)
public virtual Task<MuteConfig> GetMuteConfigAsync(MuteConfigName name, CallSettings callSettings = null)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to retrieve. The following list shows some examples of the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);
GetMuteConfigAsync(MuteConfigName, CancellationToken)
public virtual Task<MuteConfig> GetMuteConfigAsync(MuteConfigName name, CancellationToken cancellationToken)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to retrieve. The following list shows some examples of the format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);
GetMuteConfigAsync(string, CallSettings)
public virtual Task<MuteConfig> GetMuteConfigAsync(string name, CallSettings callSettings = null)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to retrieve. The following list shows some examples of the format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);
GetMuteConfigAsync(string, CancellationToken)
public virtual Task<MuteConfig> GetMuteConfigAsync(string name, CancellationToken cancellationToken)
Gets a mute config. If no location is specified, default is global.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to retrieve. The following list shows some examples of the format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);
GetNotificationConfig(GetNotificationConfigRequest, CallSettings)
public virtual NotificationConfig GetNotificationConfig(GetNotificationConfigRequest request, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
request |
GetNotificationConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetNotificationConfigRequest request = new GetNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
NotificationConfig response = securityCenterClient.GetNotificationConfig(request);
GetNotificationConfig(NotificationConfigName, CallSettings)
public virtual NotificationConfig GetNotificationConfig(NotificationConfigName name, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to get. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]");
// Make the request
NotificationConfig response = securityCenterClient.GetNotificationConfig(name);
GetNotificationConfig(string, CallSettings)
public virtual NotificationConfig GetNotificationConfig(string name, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to get. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
NotificationConfig response = securityCenterClient.GetNotificationConfig(name);
GetNotificationConfigAsync(GetNotificationConfigRequest, CallSettings)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(GetNotificationConfigRequest request, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
request |
GetNotificationConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetNotificationConfigRequest request = new GetNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(request);
GetNotificationConfigAsync(GetNotificationConfigRequest, CancellationToken)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(GetNotificationConfigRequest request, CancellationToken cancellationToken)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
request |
GetNotificationConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetNotificationConfigRequest request = new GetNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(request);
GetNotificationConfigAsync(NotificationConfigName, CallSettings)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(NotificationConfigName name, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to get. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]");
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);
GetNotificationConfigAsync(NotificationConfigName, CancellationToken)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(NotificationConfigName name, CancellationToken cancellationToken)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to get. The following list shows some examples of the format: +
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationLocationNotificationConfig("[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]");
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);
GetNotificationConfigAsync(string, CallSettings)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(string name, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to get. The following list shows some examples of the format: +
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);
GetNotificationConfigAsync(string, CancellationToken)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(string name, CancellationToken cancellationToken)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to get. The following list shows some examples of the format: +
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);
GetResourceValueConfig(GetResourceValueConfigRequest, CallSettings)
public virtual ResourceValueConfig GetResourceValueConfig(GetResourceValueConfigRequest request, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
GetResourceValueConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ResourceValueConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetResourceValueConfigRequest request = new GetResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(request);
GetResourceValueConfig(ResourceValueConfigName, CallSettings)
public virtual ResourceValueConfig GetResourceValueConfig(ResourceValueConfigName name, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the resource value config to retrieve. Its format is organizations/{organization}/resourceValueConfigs/{config_id}. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ResourceValueConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(name);
GetResourceValueConfig(string, CallSettings)
public virtual ResourceValueConfig GetResourceValueConfig(string name, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the resource value config to retrieve. Its format is organizations/{organization}/resourceValueConfigs/{config_id}. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ResourceValueConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(name);
GetResourceValueConfigAsync(GetResourceValueConfigRequest, CallSettings)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(GetResourceValueConfigRequest request, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
GetResourceValueConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetResourceValueConfigRequest request = new GetResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(request);
GetResourceValueConfigAsync(GetResourceValueConfigRequest, CancellationToken)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(GetResourceValueConfigRequest request, CancellationToken cancellationToken)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
GetResourceValueConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetResourceValueConfigRequest request = new GetResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(request);
GetResourceValueConfigAsync(ResourceValueConfigName, CallSettings)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(ResourceValueConfigName name, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the resource value config to retrieve. Its format is organizations/{organization}/resourceValueConfigs/{config_id}. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name);
GetResourceValueConfigAsync(ResourceValueConfigName, CancellationToken)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(ResourceValueConfigName name, CancellationToken cancellationToken)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the resource value config to retrieve. Its format is organizations/{organization}/resourceValueConfigs/{config_id}. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name);
GetResourceValueConfigAsync(string, CallSettings)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(string name, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the resource value config to retrieve. Its format is organizations/{organization}/resourceValueConfigs/{config_id}. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name);
GetResourceValueConfigAsync(string, CancellationToken)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(string name, CancellationToken cancellationToken)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the resource value config to retrieve. Its format is organizations/{organization}/resourceValueConfigs/{config_id}. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name);
GetSimulation(GetSimulationRequest, CallSettings)
public virtual Simulation GetSimulation(GetSimulationRequest request, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
request |
GetSimulationRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Simulation |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetSimulationRequest request = new GetSimulationRequest
{
SimulationName = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"),
};
// Make the request
Simulation response = securityCenterClient.GetSimulation(request);
GetSimulation(SimulationName, CallSettings)
public virtual Simulation GetSimulation(SimulationName name, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
name |
SimulationName Required. The organization name or simulation name of this simulation Valid format: "organizations/{organization}/simulations/latest" "organizations/{organization}/simulations/{simulation}" |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Simulation |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SimulationName name = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]");
// Make the request
Simulation response = securityCenterClient.GetSimulation(name);
GetSimulation(string, CallSettings)
public virtual Simulation GetSimulation(string name, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
name |
string Required. The organization name or simulation name of this simulation Valid format: "organizations/{organization}/simulations/latest" "organizations/{organization}/simulations/{simulation}" |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Simulation |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]";
// Make the request
Simulation response = securityCenterClient.GetSimulation(name);
GetSimulationAsync(GetSimulationRequest, CallSettings)
public virtual Task<Simulation> GetSimulationAsync(GetSimulationRequest request, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
request |
GetSimulationRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |