Submits a request to delete multiple High Performance Computing (HPC)
Activities.
You can use the SubmitDeleteActivities method in the Activity Management Namespace to input unique sequential identifiers associated with activities that you want to delete. Then submit a request using the SubmitDeleteActivitiesRequest class to delete several activities at once.
Parameters
- request
- Contains a SubmitDeleteActivitiesRequest that identifies the software-generated Activity Sequential Identifiers (SIDs) of the HPC Activities that you want to delete, along with the associated Business Unit SID and SQL Instance SID.
You can find the ActivitySid
by looking at the response that the software returns for asynchronous web service calls, such as for the SubmitCreateDatabase() or SubmitDeleteProject() method.
Return Value
A
SubmitDeleteActivityResponse containing the
Activity SID that uniquely identifies the asynchronous web service call that you made to submit the specified Activity deletion.
The following example shows how to submit a request to delete multiple HPC Activities using the
SubmitDeleteActivities()
method:
using System;
using System.Collections.Generic;
using AIR.Services.ActivityManagement.Api;
using AIR.Services.Common.Data;
using AIR.Services.Common.Exposure.Data;
using AIR.Services.ExposureManagement.Api;
class SnippetSubmitDeleteActivitiesRequest
{
private static void SubmitDeleteActivities(int businessUnitSid, int sqlInstanceSid, List lt;int gt; activitySids)
{
ActivityManagementServiceClient activityClient = new ActivityManagementServiceClient();
SubmitDeleteActivitiesRequest request = new SubmitDeleteActivitiesRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ActivitySids = activitySids;
SubmitDeleteActivitiesResponse response = activityClient.SubmitDeleteActivities(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Submitted with activity Sid: " + response.ActivitySid);
}
}
}
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2