Submit a Request

Details

URI /catalog/<catalog_id>/request
Use List Catalogs to get the catalog ID.
Method POST
Parameters

userIdentifier=<user_id>
    Required; the user ID you want to use as credentials for this API call. This user should be a consumer user who has the necessary permissions for the data you want to work with. See Get userIdentifier for the steps required to get the userIdentifier value.

Returns 200 - Ok
401 - Not authorized
404 - Not found
500 - Server exception

Note To submit a request for a subscription that is owned by a group, you must send the group name in the request. You should not use the group DN.

Examples

Use the following URL:

https://<host>:<port>/csa/rest/catalog/90540a9734f502880134f502c82e0011/request ?userIdentifier=90d9667ss5f46a930135f35b327e00a0

The following XML was sent in the request:

<ServiceRequest> 
<description>Request description</description> 
<name>Request name</name> 
<displayName>Request display name</displayName> 
<artifactContext> 
   <id>51bceb48dc57467393170c61200242a7</id> 
</artifactContext> 

<requestedAction> 
  <name>ORDER</name> 
  <property> 
      <name>START_DATE</name> 
      <values> 
          <value>2016-07-19</value> 
      </values> 
   </property> 

   <property> 
      <name>SERVICE_NAME</name> 
      <values><value>Subscription 001</value></values> 
   </property> 
   <property> 
      <name>SERVICE_DESCRIPTION</name> 
      <values><value>subsDesc - Subscription 001</value></values> 
   </property> 

   <property>
      <name>OWNER_GROUP</name>
      <values>
          <value>MyGroup</value>
      </values>
   </property>

   <property> 
      <name>OPTION_MODEL</name> 
      <values> 
        <optionModel> 
          <name>SD2</name> 
          <optionSets> 
            <name>42FBA7E6-17EF-7B1A-C4DD-0A5CB0246E55</name> 
            <options><name>D914556A-6F6A-1BE0-035E-0A5CB021BE9B</name> 
               <property> 
                    <name>INT</name>  
                    <values><value>99</value></values>                         
               </property>
               <property> 
                    <name>BOOLEAN</name>  
                    <values><value>true</value></values>                         
               </property>
              <property> 
                    <name>STR</name>  
                    <values><value>test</value></values>                         
               </property>
            </options>          
          </optionSets> 
          <optionSets> 
            <name>D6A80E16-2977-4111-14B9-0A5E5D5B2F56</name> 
            <options><name>18CA9979-7C9D-F5AC-06B5-0A5E5D5B3B51</name> 
            </options> 
          </optionSets> 
        </optionModel> 
      </values> 
   </property> 

</requestedAction>
</ServiceRequest>

The following XML was returned in the response:


<ServiceRequest>  
    <id>8a818185382a26cc01382abf331c037e</id>
    <isCriticalSystemObject>false</isCriticalSystemObject>
    <disabled>false</disabled>
</ServiceRequest>