Önceki Başlık: YayınlaSonraki Başlık: Başlatma İsteği REST Örnekleri


İptal

Bir işlemi iptal etmek (veya durdurmak) için, MdrElementID özelliğinde işlem kimliğini belirtin.

Örneğin, bir işlemi iptal etmek için, şu URL'ye bir HTTP POST isteği gönderin:

http://<hostname>:7000/node/rest/CA:00074_CA:00074:01/_ops/Cancel

Bir istek başlığı ekleyin:

Content-Type=application/xml

Örneğin:

<CancelRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:type="p1:CancelRequest"
               xmlns:p1="http://ns.ca.com/2011/09/pam-ops" >
  <EntityID>
    <MdrProduct/>
    <MdrProdInstance/>
    <MdrElementID>TestIRFPrompt_140</MdrElementID>
  </EntityID>
</CancelRequest>

İstek şu XML öğesini döndürür:

<usm-core:EntityID xmlns:usm-core="http://ns.ca.com/2009/07/usm-core" 
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                   xsi:type="usm-core:EntityID">
  <usm-core:MdrProduct/>
  <usm-core:MdrProdInstance/>
  <usm-core:MdrElementID>TestIRFPrompt_140</usm-core:MdrElementID>
</usm-core:EntityID>