Submits a request to delete a single High Performance Computing (HPC)
Activity.
Parameters
- request
- Contains a SubmitDeleteActivityRequest that identifies the software-generated Activity Sequential Identifier (SID) of the HPC Activity 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 an HPC Activity using the
SubmitDeleteActivity()
method:
using System;
using AIR.Services.ActivityManagement.Api;
using AIR.Services.Common.Data;
using AIR.Services.Common.Exposure.Data;
using AIR.Services.ExposureManagement.Api;
class SnippetSubmitDeleteActivityRequest
{
private static void SubmitDeleteActivity(int businessUnitSid, int sqlInstanceSid, int activitySid)
{
ActivityManagementServiceClient activityClient = new ActivityManagementServiceClient();
SubmitDeleteActivityRequest request = new SubmitDeleteActivityRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ActivitySid = activitySid;
SubmitDeleteActivityResponse response = activityClient.SubmitDeleteActivity(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