Delete Advertisement operation
This Delete Advertisement operation deletes an advertisement. When an advertisement is deleted, the Microsoft System Center Configuration Manager will remove the advertisement from the database and from clients that have already received it.
The following table describes the <items>
XML elements for the Delete Advertisement operation:
Elements for the <items>
XML element and adapter request for the Delete Advertisement operation
Element |
Definition |
Required |
---|---|---|
|
Specifies the name of the operation: |
Yes |
|
Specifies a list of arguments required for this operation |
Yes |
|
Specifies the connection information for the Microsoft System Center Configuration Manager application |
No |
|
Specifies a string identifier for the advertisement to be deleted Note If |
Conditional; required if the |
|
Specifies the name of the advertisement to be deleted Note If |
Conditional; required if the |
The following figure shows a sample adapter request for the Delete Advertisement operation:
Sample adapter request for the Delete Advertisement operation
<mssccm-request>
<operation-name>delete-advertisement</operation-name>
<arguments>
<target>config2</target>
<advertisement-id>123200DF</advertisement-id>
<advertisement-name>Test Name</advertisement-name>
</arguments>
</mssccm-request>
The following figure shows the adapter response for the sample request:
Sample adapter response for the Delete Advertisement operation
<mssccm-response>
<metadata>
<response-count>1</response-count>
<status>success</status>
</metadata>
<responses>
<response>
<metadata>
<target>config2</target>
<status>success</status>
<count>1</count>
</metadata>
<output>
<message>Advertisement (ID- 123200DF) is deleted successfully.</message>
</output>
</response>
</responses>
</mssccm-response>
Comments
Log in or register to comment.