Share via


Read (GET) ActivityParameters

Read using the HTTP GET operation.

Code Examples

Request

Method Request URI HTTP Version

GET

HTTPS://<HOST>:<PORT>/00000000-0000-0000-0000-000000000000/ActivityParameters(guid'<GUID>')

HTTP/1.1

Request URI Parameters

URI Parameter Description

GUID

Required. The unique identifier value (ActivityParameterSetID) for an ActivityParameterSet entity.

Request URI Example

Example URI

GET https://sma-server:9090/00000000-0000-0000-0000-000000000000/ActivityParameterSets(guid'350cdba0-8581-43df-859e-445c2c395653') 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

<?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/ActivityParameters</id>
  <title type="text">ActivityParameters</title>
  <updated>2014-03-31T20:25:55Z</updated>
  <link rel="self" title="ActivityParameters" href="ActivityParameters" />
  <entry>
    <id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityParameters(guid'e549e21a-0363-43a5-be3a-0ed55e659381')</id>
    <category term="Orchestrator.ResourceModel.ActivityParameter" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <link rel="edit" title="ActivityParameter" href="ActivityParameters(guid'e549e21a-0363-43a5-be3a-0ed55e659381')" />
    <link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/ActivityParameterSet" type="application/atom+xml;type=entry" title="ActivityParameterSet" href="ActivityParameters(guid'e549e21a-0363-43a5-be3a-0ed55e659381')/ActivityParameterSet" />
    <title />
    <updated>2014-03-31T20:25:55Z</updated>
    <author>
      <name />
    </author>
    <content type="application/xml">
      <m:properties>
        <d:ActivityParameterID m:type="Edm.Guid">e549e21a-0363-43a5-be3a-0ed55e659381</d:ActivityParameterID>
        <d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
        <d:Name>AdminUri</d:Name>
        <d:Type>System.Uri</d:Type>
        <d:IsMandatory m:type="Edm.Boolean">true</d:IsMandatory>
        <d:IsDynamic m:type="Edm.Boolean">false</d:IsDynamic>
        <d:Position m:type="Edm.Int32">0</d:Position>
        <d:ValueFromPipeline m:type="Edm.Boolean">false</d:ValueFromPipeline>
        <d:ValueFromPipelineByPropertyName m:type="Edm.Boolean">true</d:ValueFromPipelineByPropertyName>
        <d:ValueFromRemainingArguments m:type="Edm.Boolean">false</d:ValueFromRemainingArguments>
        <d:ActivityParameterSetID m:type="Edm.Guid">350cdba0-8581-43df-859e-445c2c395653</d:ActivityParameterSetID>
      </m:properties>
    </content>
  </entry>
  <entry>
    <id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityParameters(guid'd9370112-c34d-4e22-8388-15ed184a584f')</id>
    <category term="Orchestrator.ResourceModel.ActivityParameter" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <link rel="edit" title="ActivityParameter" href="ActivityParameters(guid'd9370112-c34d-4e22-8388-15ed184a584f')" />
    <link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/ActivityParameterSet" type="application/atom+xml;type=entry" title="ActivityParameterSet" href="ActivityParameters(guid'd9370112-c34d-4e22-8388-15ed184a584f')/ActivityParameterSet" />
    <title />
    <updated>2014-03-31T20:25:55Z</updated>
    <author>
      <name />
    </author>
    <content type="application/xml">
      <m:properties>
        <d:ActivityParameterID m:type="Edm.Guid">d9370112-c34d-4e22-8388-15ed184a584f</d:ActivityParameterID>
        <d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
        <d:Name>Confirm</d:Name>
        <d:Type>System.Management.Automation.SwitchParameter</d:Type>
        <d:IsMandatory m:type="Edm.Boolean">false</d:IsMandatory>
        <d:IsDynamic m:type="Edm.Boolean">false</d:IsDynamic>
        <d:Position m:type="Edm.Int32">-2147483648</d:Position>
        <d:ValueFromPipeline m:type="Edm.Boolean">false</d:ValueFromPipeline>
        <d:ValueFromPipelineByPropertyName m:type="Edm.Boolean">false</d:ValueFromPipelineByPropertyName>
        <d:ValueFromRemainingArguments m:type="Edm.Boolean">false</d:ValueFromRemainingArguments>
        <d:ActivityParameterSetID m:type="Edm.Guid">350cdba0-8581-43df-859e-445c2c395653</d:ActivityParameterSetID>
      </m:properties>
    </content>
  </entry>
  <entry>
    <id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityParameters(guid'720a912e-278a-4373-a0ae-0ae889efec7c')</id>
    <category term="Orchestrator.ResourceModel.ActivityParameter" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <link rel="edit" title="ActivityParameter" href="ActivityParameters(guid'720a912e-278a-4373-a0ae-0ae889efec7c')" />
    <link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/ActivityParameterSet" type="application/atom+xml;type=entry" title="ActivityParameterSet" href="ActivityParameters(guid'720a912e-278a-4373-a0ae-0ae889efec7c')/ActivityParameterSet" />
    <title />
    <updated>2014-03-31T20:25:55Z</updated>
    <author>
      <name />
    </author>
    <content type="application/xml">
      <m:properties>
        <d:ActivityParameterID m:type="Edm.Guid">720a912e-278a-4373-a0ae-0ae889efec7c</d:ActivityParameterID>
        <d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
        <d:Name>DisableCertificateValidation</d:Name>
        <d:Type>System.Management.Automation.SwitchParameter</d:Type>
        <d:IsMandatory m:type="Edm.Boolean">false</d:IsMandatory>
        <d:IsDynamic m:type="Edm.Boolean">false</d:IsDynamic>
        <d:Position m:type="Edm.Int32">-2147483648</d:Position>
        <d:ValueFromPipeline m:type="Edm.Boolean">false</d:ValueFromPipeline>
        <d:ValueFromPipelineByPropertyName m:type="Edm.Boolean">false</d:ValueFromPipelineByPropertyName>
        <d:ValueFromRemainingArguments m:type="Edm.Boolean">false</d:ValueFromRemainingArguments>
        <d:ActivityParameterSetID m:type="Edm.Guid">350cdba0-8581-43df-859e-445c2c395653</d:ActivityParameterSetID>
      </m:properties>
    </content>
  </entry>
  <entry>
    <id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityParameters(guid'cf094474-38d7-4043-9b57-a9a0eb069a9e')</id>
    <category term="Orchestrator.ResourceModel.ActivityParameter" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <link rel="edit" title="ActivityParameter" href="ActivityParameters(guid'cf094474-38d7-4043-9b57-a9a0eb069a9e')" />
    <link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/ActivityParameterSet" type="application/atom+xml;type=entry" title="ActivityParameterSet" href="ActivityParameters(guid'cf094474-38d7-4043-9b57-a9a0eb069a9e')/ActivityParameterSet" />
    <title />
    <updated>2014-03-31T20:25:55Z</updated>
    <author>
      <name />
    </author>
    <content type="application/xml">
      <m:properties>
        <d:ActivityParameterID m:type="Edm.Guid">cf094474-38d7-4043-9b57-a9a0eb069a9e</d:ActivityParameterID>
        <d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
        <d:Name>HostingServer</d:Name>
        <d:Type>Microsoft.WindowsAzure.Server.MySql.Client.MySqlHostingServer</d:Type>
        <d:IsMandatory m:type="Edm.Boolean">false</d:IsMandatory>
        <d:IsDynamic m:type="Edm.Boolean">false</d:IsDynamic>
        <d:Position m:type="Edm.Int32">2</d:Position>
        <d:ValueFromPipeline m:type="Edm.Boolean">true</d:ValueFromPipeline>
        <d:ValueFromPipelineByPropertyName m:type="Edm.Boolean">false</d:ValueFromPipelineByPropertyName>
        <d:ValueFromRemainingArguments m:type="Edm.Boolean">false</d:ValueFromRemainingArguments>
        <d:ActivityParameterSetID m:type="Edm.Guid">350cdba0-8581-43df-859e-445c2c395653</d:ActivityParameterSetID>
      </m:properties>
    </content>
  </entry>
  <entry>
    <id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityParameters(guid'75b6589b-08ad-4d6e-b2fe-2219bc1facc1')</id>
    <category term="Orchestrator.ResourceModel.ActivityParameter" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <link rel="edit" title="ActivityParameter" href="ActivityParameters(guid'75b6589b-08ad-4d6e-b2fe-2219bc1facc1')" />
    <link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/ActivityParameterSet" type="application/atom+xml;type=entry" title="ActivityParameterSet" href="ActivityParameters(guid'75b6589b-08ad-4d6e-b2fe-2219bc1facc1')/ActivityParameterSet" />
    <title />
    <updated>2014-03-31T20:25:55Z</updated>
    <author>
      <name />
    </author>
    <content type="application/xml">
      <m:properties>
        <d:ActivityParameterID m:type="Edm.Guid">75b6589b-08ad-4d6e-b2fe-2219bc1facc1</d:ActivityParameterID>
        <d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
        <d:Name>Token</d:Name>
        <d:Type>System.String</d:Type>
        <d:IsMandatory m:type="Edm.Boolean">true</d:IsMandatory>
        <d:IsDynamic m:type="Edm.Boolean">false</d:IsDynamic>
        <d:Position m:type="Edm.Int32">1</d:Position>
        <d:ValueFromPipeline m:type="Edm.Boolean">false</d:ValueFromPipeline>
        <d:ValueFromPipelineByPropertyName m:type="Edm.Boolean">true</d:ValueFromPipelineByPropertyName>
        <d:ValueFromRemainingArguments m:type="Edm.Boolean">false</d:ValueFromRemainingArguments>
        <d:ActivityParameterSetID m:type="Edm.Guid">350cdba0-8581-43df-859e-445c2c395653</d:ActivityParameterSetID>
      </m:properties>
    </content>
  </entry>
  <entry>
    <id>https://waplabvm4:9090/00000000-0000-0000-0000-000000000000/ActivityParameters(guid'8dc0df69-6014-4fe0-9c28-68c5b31d5daa')</id>
    <category term="Orchestrator.ResourceModel.ActivityParameter" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <link rel="edit" title="ActivityParameter" href="ActivityParameters(guid'8dc0df69-6014-4fe0-9c28-68c5b31d5daa')" />
    <link rel="https://schemas.microsoft.com/ado/2007/08/dataservices/related/ActivityParameterSet" type="application/atom+xml;type=entry" title="ActivityParameterSet" href="ActivityParameters(guid'8dc0df69-6014-4fe0-9c28-68c5b31d5daa')/ActivityParameterSet" />
    <title />
    <updated>2014-03-31T20:25:55Z</updated>
    <author>
      <name />
    </author>
    <content type="application/xml">
      <m:properties>
        <d:ActivityParameterID m:type="Edm.Guid">8dc0df69-6014-4fe0-9c28-68c5b31d5daa</d:ActivityParameterID>
        <d:TenantID m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:TenantID>
        <d:Name>WhatIf</d:Name>
        <d:Type>System.Management.Automation.SwitchParameter</d:Type>
        <d:IsMandatory m:type="Edm.Boolean">false</d:IsMandatory>
        <d:IsDynamic m:type="Edm.Boolean">false</d:IsDynamic>
        <d:Position m:type="Edm.Int32">-2147483648</d:Position>
        <d:ValueFromPipeline m:type="Edm.Boolean">false</d:ValueFromPipeline>
        <d:ValueFromPipelineByPropertyName m:type="Edm.Boolean">false</d:ValueFromPipelineByPropertyName>
        <d:ValueFromRemainingArguments m:type="Edm.Boolean">false</d:ValueFromRemainingArguments>
        <d:ActivityParameterSetID m:type="Edm.Guid">350cdba0-8581-43df-859e-445c2c395653</d:ActivityParameterSetID>
      </m:properties>
    </content>
  </entry>
</feed>

Code Examples

The following example searches for all of the activity parameters for a specific activity parameter set, identified by the ActivityParameterSetID (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://sma-server: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;
            // ((DataServiceContext)api).Credentials = new NetworkCredential("user", "pwd", "domain");

            try
            {
                // Listing all of the activity parameters for a specific activity parameter set.
                // Identify a specific activity parameter set instance to search for.
                System.Guid activityParameterSetID = new Guid("350cdba0-8581-43df-859e-445c2c395653");

                // Query for the specific ActivityParameterSet instance identified by activityParameterSetID.
                var activityParameterSet = api.ActivityParameterSets.Where(r => r.ActivityParameterSetID == activityParameterSetID).FirstOrDefault();

                // Query for the activity parameter instance associated with the activityParameterSetID.
                var activityParameters = api.ActivityParameters.Where(r => r.ActivityParameterSetID == activityParameterSet.ActivityParameterSetID);

                // Output select properties of the activity parameter instances to the console.
                foreach (var activityParameter in activityParameters)
                {
                    Console.WriteLine(" "); 
                    Console.WriteLine("Activity Parameter Set ID : {0}", activityParameter.ActivityParameterSetID);                    
                    Console.WriteLine("Activity Name             : {0}", activityParameter.Name);
                    Console.WriteLine("Activity Parameter ID     : {0}", activityParameter.ActivityParameterID); 
                };
                Console.ReadKey();
            }
            catch (Exception ex)
            {
                throw new ApplicationException("An error occurred during execution.", ex);
            }
        }                 
    }
}

See Also

Concepts

ActivityParameter