Touchstone Re 2023 API Reference
SubmitDeleteActivity Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ActivityManagementServiceClient Class : SubmitDeleteActivity Method
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.

Submits a request to delete a single High Performance Computing (HPC) Activity.
Syntax
Public Function SubmitDeleteActivity( _
   ByVal request As SubmitDeleteActivityRequest _
) As SubmitDeleteActivityResponse
Dim instance As ActivityManagementServiceClient
Dim request As SubmitDeleteActivityRequest
Dim value As SubmitDeleteActivityResponse
 
value = instance.SubmitDeleteActivity(request)

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.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

Example
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);
}
}
}
Requirements

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

See Also

Reference

ActivityManagementServiceClient Class
ActivityManagementServiceClient Members