Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Read using the HTTP GET operation.
Code Examples
Request
| Method | Request URI | HTTP Version |
|---|---|---|
GET |
HTTPS://<HOST>:<PORT>/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'<GUID>') |
HTTP/1.1 |
Request URI Parameters
| URI Parameter | Description |
|---|---|
GUID |
Required. The unique identifier value (ActivityOutputTypesID) for an ActivityOutputType entity. |
Request URI Examples
| Example URI |
|---|
GET https://sma-server:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'29e55315-040a-4790-b07c-241b34f4a315') HTTP/1.1 GET https://sma-server:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes()?$filter=ActivityID%20eq%20guid'bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6' HTTP/1.1 |
Request Headers
For more information about the common request headers used by this operation, see Standard Service Management Automation POST/GET/PUT/DELETE Headers.
Request Body
The GET operation has no request body.
Response
Response Codes
| Response Code | Description |
|---|---|
HTTP/1.1 200 OK |
Successful HTTP request. |
Response Headers
For more information about the common response headers used by this operation, see Standard Service Management Automation POST/GET/PUT/DELETE Headers.
Response Body
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 9699
Content-Type: application/atom+xml;type=feed;charset=utf-8
Server: Microsoft-IIS/8.5
Set-Cookie: ASP.NET_SessionId=hqyrzdxpr2vfqvtypxu05wio; path=/; HttpOnly
X-Content-Type-Options: nosniff
DataServiceVersion: 1.0;
X-AspNet-Version: 4.0.30319
Persistent-Auth: true
X-Powered-By: ASP.NET
Date: Mon, 31 Mar 2014 21:50:46 GMT
<?xml version="1.0" encoding="utf-8"?><feed xml:base="https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="https://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="https://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes</id>
<title type="text">ActivityOutputTypes</title>
<updated>2014-03-31T21:50:47Z</updated>
<link rel="self" title="ActivityOutputTypes" href="ActivityOutputTypes" />
<entry>
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'dd810f7a-5114-4b9f-9607-4df37075247e')</id>
<category term="Orchestrator.ResourceModel.ActivityOutputType" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" title="ActivityOutputType" href="ActivityOutputTypes(guid'dd810f7a-5114-4b9f-9607-4df37075247e')" />
<link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/Activity" type="application/atom+xml;type=entry" title="Activity" href="ActivityOutputTypes(guid'dd810f7a-5114-4b9f-9607-4df37075247e')/Activity" />
<title />
<updated>2014-03-31T21:50:47Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:ActivityOutputTypeID m:type="Edm.Guid">dd810f7a-5114-4b9f-9607-4df37075247e</d:ActivityOutputTypeID>
<d:Name>Microsoft.Management.Infrastructure.CimInstance[]</d:Name>
<d:Type>Microsoft.Management.Infrastructure.CimInstance[]</d:Type>
<d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
<d:ActivityID m:type="Edm.Guid">bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6</d:ActivityID>
</m:properties>
</content>
</entry>
<entry>
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'ddd57a96-80e8-4169-9b3b-5fc971235b3f')</id>
<category term="Orchestrator.ResourceModel.ActivityOutputType" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" title="ActivityOutputType" href="ActivityOutputTypes(guid'ddd57a96-80e8-4169-9b3b-5fc971235b3f')" />
<link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/Activity" type="application/atom+xml;type=entry" title="Activity" href="ActivityOutputTypes(guid'ddd57a96-80e8-4169-9b3b-5fc971235b3f')/Activity" />
<title />
<updated>2014-03-31T21:50:47Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:ActivityOutputTypeID m:type="Edm.Guid">ddd57a96-80e8-4169-9b3b-5fc971235b3f</d:ActivityOutputTypeID>
<d:Name>Microsoft.Management.Infrastructure.CimInstance#MSFT_WdacBidTrace</d:Name>
<d:Type></d:Type>
<d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
<d:ActivityID m:type="Edm.Guid">bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6</d:ActivityID>
</m:properties>
</content>
</entry>
<entry>
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'b1ddbed7-9ab4-41f0-833e-905e3ccff47c')</id>
<category term="Orchestrator.ResourceModel.ActivityOutputType" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" title="ActivityOutputType" href="ActivityOutputTypes(guid'b1ddbed7-9ab4-41f0-833e-905e3ccff47c')" />
<link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/Activity" type="application/atom+xml;type=entry" title="Activity" href="ActivityOutputTypes(guid'b1ddbed7-9ab4-41f0-833e-905e3ccff47c')/Activity" />
<title />
<updated>2014-03-31T21:50:47Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:ActivityOutputTypeID m:type="Edm.Guid">b1ddbed7-9ab4-41f0-833e-905e3ccff47c</d:ActivityOutputTypeID>
<d:Name>Microsoft.Management.Infrastructure.CimInstance#MSFT_WdacBidTrace</d:Name>
<d:Type></d:Type>
<d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
<d:ActivityID m:type="Edm.Guid">bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6</d:ActivityID>
</m:properties>
</content>
</entry>
<entry>
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'cb76099e-070f-4d18-a8a8-93e1a413b235')</id>
<category term="Orchestrator.ResourceModel.ActivityOutputType" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" title="ActivityOutputType" href="ActivityOutputTypes(guid'cb76099e-070f-4d18-a8a8-93e1a413b235')" />
<link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/Activity" type="application/atom+xml;type=entry" title="Activity" href="ActivityOutputTypes(guid'cb76099e-070f-4d18-a8a8-93e1a413b235')/Activity" />
<title />
<updated>2014-03-31T21:50:47Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:ActivityOutputTypeID m:type="Edm.Guid">cb76099e-070f-4d18-a8a8-93e1a413b235</d:ActivityOutputTypeID>
<d:Name>Microsoft.Management.Infrastructure.CimInstance[]</d:Name>
<d:Type>Microsoft.Management.Infrastructure.CimInstance[]</d:Type>
<d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
<d:ActivityID m:type="Edm.Guid">bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6</d:ActivityID>
</m:properties>
</content>
</entry>
<entry>
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'f32ee95b-f9f4-481b-ad2b-a275fc36a5a3')</id>
<category term="Orchestrator.ResourceModel.ActivityOutputType" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" title="ActivityOutputType" href="ActivityOutputTypes(guid'f32ee95b-f9f4-481b-ad2b-a275fc36a5a3')" />
<link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/Activity" type="application/atom+xml;type=entry" title="Activity" href="ActivityOutputTypes(guid'f32ee95b-f9f4-481b-ad2b-a275fc36a5a3')/Activity" />
<title />
<updated>2014-03-31T21:50:47Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:ActivityOutputTypeID m:type="Edm.Guid">f32ee95b-f9f4-481b-ad2b-a275fc36a5a3</d:ActivityOutputTypeID>
<d:Name>Microsoft.Management.Infrastructure.CimInstance[]</d:Name>
<d:Type>Microsoft.Management.Infrastructure.CimInstance[]</d:Type>
<d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
<d:ActivityID m:type="Edm.Guid">bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6</d:ActivityID>
</m:properties>
</content>
</entry>
<entry>
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'7f87996f-1d45-4869-9e10-e03e0a17fbe6')</id>
<category term="Orchestrator.ResourceModel.ActivityOutputType" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" title="ActivityOutputType" href="ActivityOutputTypes(guid'7f87996f-1d45-4869-9e10-e03e0a17fbe6')" />
<link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/Activity" type="application/atom+xml;type=entry" title="Activity" href="ActivityOutputTypes(guid'7f87996f-1d45-4869-9e10-e03e0a17fbe6')/Activity" />
<title />
<updated>2014-03-31T21:50:47Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:ActivityOutputTypeID m:type="Edm.Guid">7f87996f-1d45-4869-9e10-e03e0a17fbe6</d:ActivityOutputTypeID>
<d:Name>Microsoft.Management.Infrastructure.CimInstance#MSFT_WdacBidTrace</d:Name>
<d:Type></d:Type>
<d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
<d:ActivityID m:type="Edm.Guid">bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6</d:ActivityID>
</m:properties>
</content>
</entry>
<entry>
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'2db703a1-71c4-4106-8ee5-eee89fb9d487')</id>
<category term="Orchestrator.ResourceModel.ActivityOutputType" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" title="ActivityOutputType" href="ActivityOutputTypes(guid'2db703a1-71c4-4106-8ee5-eee89fb9d487')" />
<link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/Activity" type="application/atom+xml;type=entry" title="Activity" href="ActivityOutputTypes(guid'2db703a1-71c4-4106-8ee5-eee89fb9d487')/Activity" />
<title />
<updated>2014-03-31T21:50:47Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:ActivityOutputTypeID m:type="Edm.Guid">2db703a1-71c4-4106-8ee5-eee89fb9d487</d:ActivityOutputTypeID>
<d:Name>Microsoft.Management.Infrastructure.CimInstance#MSFT_WdacBidTrace</d:Name>
<d:Type></d:Type>
<d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
<d:ActivityID m:type="Edm.Guid">bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6</d:ActivityID>
</m:properties>
</content>
</entry>
<entry>
<id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityOutputTypes(guid'ad2e0964-2670-4b51-b2af-f66194ee9547')</id>
<category term="Orchestrator.ResourceModel.ActivityOutputType" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" title="ActivityOutputType" href="ActivityOutputTypes(guid'ad2e0964-2670-4b51-b2af-f66194ee9547')" />
<link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/Activity" type="application/atom+xml;type=entry" title="Activity" href="ActivityOutputTypes(guid'ad2e0964-2670-4b51-b2af-f66194ee9547')/Activity" />
<title />
<updated>2014-03-31T21:50:47Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:ActivityOutputTypeID m:type="Edm.Guid">ad2e0964-2670-4b51-b2af-f66194ee9547</d:ActivityOutputTypeID>
<d:Name>Microsoft.Management.Infrastructure.CimInstance[]</d:Name>
<d:Type>Microsoft.Management.Infrastructure.CimInstance[]</d:Type>
<d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
<d:ActivityID m:type="Edm.Guid">bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6</d:ActivityID>
</m:properties>
</content>
</entry>
</feed>
Code Examples
The following example searches for the ActivityOutputTypes associated with a specific Activity, identified by the ActivityID (a unique guid value).
namespace CodeSample.Microsoft.SystemCenter.SMA
{
public class SMASamples
{
public static void Main()
{
// Replace this with the name of your SMA web service endpoint.
string serviceEndPoint = "https://waplabvm4:9090/00000000-0000-0000-0000-000000000000";
// Setup the connection to SMA
OrchestratorApi api = new OrchestratorApi(new Uri(serviceEndPoint));
// Set credentials to the default or to a specific user.
//((DataServiceContext)api).Credentials = CredentialCache.DefaultCredentials;
//NetworkCredential networkCreds = new NetworkCredential("user", "pwd", "domain");
//ADDED CREDS
NetworkCredential networkCreds = new NetworkCredential("cdmlab\\cdmlabuser", "!!123abc");
((DataServiceContext)api).Credentials = networkCreds;
// This is used here to suppress/ignore certificate errors when using test certificates.
// You can remove this section if you are using trusted certificates.
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate {return true;});
try
{
// Listing the ActivityParameterSet for a specific Activity.
// Identify a specific activity instance to search for.
System.Guid activityID = new Guid("bf3a0f5d-3f3e-43dc-a46c-589c9b0912d6");
// Query for the specific activity instance identified by ActivityID.
var activity = api.Activities.Where(r => r.ActivityID == activityID).FirstOrDefault();
// Query for the activity parameter sets associated with the specific activity instance identified by ActivityID.
var activityOutputTypes = api.ActivityOutputTypes.Where(r => r.ActivityID == activity.ActivityID);
// Output select properties of the instance to the console.
foreach (var activityOutputType in activityOutputTypes)
{
Console.WriteLine(" ");
Console.WriteLine("Activity ID : {0}", activity.ActivityID);
Console.WriteLine("Activity Name : {0}", activity.Name);
Console.WriteLine("Activity Output Type ID : {0}", activityOutputType.ActivityOutputTypeID);
Console.WriteLine("Activity Output Type Name : {0}", activityOutputType.Name);
};
Console.ReadKey();
}
catch (Exception ex)
{
throw new ApplicationException("An error occurred during execution.", ex);
}
}
}
}