Update Advertisement operation
The Update Advertisement operation updates an advertisement.
The following table describes the <items>
XML elements for the Update Advertisement operation:
Elements for the <items>
XML element and adapter request for the Update 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 |
|
Contains the elements that are used to locate the advertisement to be updated
|
Yes |
|
Contains the elements that are used to update the advertisement
|
Yes |
|
Specifies whether all advertisements are updated Note Other elements that may be present with the |
No |
|
Specifies the current action being performed on the package by Microsoft System Center Configuration Manager |
No |
|
Specifies a string identifier for the advertisement |
No |
|
Specifies the name of the advertisement |
No |
|
Specifies a string identifier for the collection where the advertisement is announced |
No |
|
Specifies a string identifier for the package which is being advertised |
Yes |
|
Specifies the name of the program being advertised |
Yes |
|
Specifies flags that indicate how the advertisement is announced to the user
|
No |
|
Specifies the parent element for the |
No |
|
Specifies the schedule information
|
No |
|
Specifies the type of schedule
|
Conditional; required if the |
|
Specifies the number of days for which the scheduled action should occur |
No |
|
Specifies the number of hours for which the scheduled action should occur |
No |
|
Specifies the number of minutes for which the scheduled action should occur |
No |
|
Specifies the date and time when the scheduled action takes place |
No |
|
Specifies whether the value specified for the |
No |
|
Specifies the number of days spanning schedule intervals Note The |
No |
|
Specifies the number of hours spanning schedule intervals Note The |
No |
|
Specifies the number of minutes spanning schedule intervals Note The |
No |
|
Specifies the day of the week when the event is scheduled to occur Note The |
No |
|
Specifies the number of weeks for recurrence Note The |
No |
|
Specifies the day of the month on which the action occurs Note The |
No |
|
Specifies the number of months for recurrence Note The |
No |
|
Specifies the week of the month when the event is scheduled to occur Note The |
No |
|
Indicates whether the schedules specified by the |
No |
|
Specifies whether the scheduled time is in Universal Metric Time (UMT) |
No |
|
Specifies any comment for the advertisement |
No |
|
Specifies the flags describing the device
|
No |
|
Specifies the date and time when the advertisement is no longer available to clients |
No |
|
Specifies whether the advertisement expires at the time specified in the |
No |
|
Specifies whether the expiration time is in Universal Metric Time (UMT) |
No |
|
Specifies the hierarchy path |
No |
|
Specifies whether the advertisement is advertised to the sub-collections of the specified collection |
No |
|
Specifies the duration in minutes for which the operating system deployment user notification is shown |
No |
|
Specifies the date and time when the advertisement is made available to clients |
No |
|
Specifies whether the value specified for the |
No |
|
Specifies whether the value specified for the |
No |
|
Specifies the priority of the advertisement
|
No |
|
Specifies how the program should run when the client is connected either locally or remotely to a distribution point
|
No |
|
Specifies the code of the Microsoft System Center Configuration Manager site where the advertisement originates |
No |
|
Specifies the flags that duplicate information in the time-related properties
|
No |
The following figure shows a sample adapter request for the Update Advertisement operation:
Sample adapter request for the Update Advertisement operation
<mssccm-request>
<operation-name>update-advertisement</operation-name>
<arguments>
<target>config2</target>
<query>
<action-in-progress>UPDATE</action-in-progress>
<advertisement-flag>ENABLE_TS_FROM_CD_AND_PXE</advertisement-flag>
<advertisement-id>123200DF</advertisement-id>
<advertisement-name><![CDATA[aaa]]></advertisement-name>
<collection-id>SMSDM003</collection-id>
<comment>adv comment</comment>
<device-flags>24</device-flags>
<expiration-time>20120201000000.000000+***</expiration-time>
<hierarchy-path>any path</hierarchy-path>
<include-sub-collection>False</include-sub-collection>
<mandatory-countdown>10</mandatory-countdown>
<package-id>12300001</package-id>
<present-time>20110201000000.000000+***</present-time>
<priority>HIGH</priority>
<program-name>p2</program-name>
<remote-client-flags>DONT_RUN_NO_LOCAL_DISPPOINT</remote-client-flags>
<source-site>123</source-site>
<time-flags>29459</time-flags>
</query>
<update>
<advertisement-name><![CDATA[adv002]]></advertisement-name>
<collection-id>SMS00002</collection-id>
<package-id>12300001</package-id>
<program-name><![CDATA[p2]]></program-name>
<advertisement-flag>ENABLE_TS_FROM_CD_AND_PXE</advertisement-flag>
<schedules>
<schedule>
<type>non-recurring</type>
<day-duration>2</day-duration>
<hour-duration>1</hour-duration>
<minute-duration>1</minute-duration>
<start-time>20110201000000.000000+***</start-time>
<is-gmt>true</is-gmt>
</schedule>
<schedule>
<type>custom</type>
<day-duration>2</day-duration>
<hour-duration>1</hour-duration>
<minute-duration>1</minute-duration>
<start-time>20110201000000.000000+***</start-time>
<is-gmt>true</is-gmt>
<day-span>1</day-span>
<hour-span>1</hour-span>
<minute-span>1</minute-span>
</schedule>
</schedules>
<schedule-enabled>true</schedule-enabled>
<schedule-is-gmt>true</schedule-is-gmt>
<comment><![CDATA[adv comment]]></comment>
<device-flags>24</device-flags>
<expiration-time>20120201000000.000000+***</expiration-time>
<expiration-time-enabled>true</expiration-time-enabled>
<expiration-time-is-gmt>true</expiration-time-is-gmt>
<hierarchy-path><![CDATA[any path]]></hierarchy-path>
<include-sub-collection>true</include-sub-collection>
<mandatory-count-down>10</mandatory-count-down>
<present-time>20110201000000.000000+***</present-time>
<present-time-enabled>true</present-time-enabled>
<present-time-is-gmt>true</present-time-is-gmt>
<priority>HIGH</priority>
<remote-client-flags>DONT_RUN_NO_LOCAL_DISPPOINT</remote-client-flags>
</update>
</arguments>
</mssccm-request>
The following figure shows the adapter response for the sample request:
Sample adapter response for the Update 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>
<action-in-progress>UPDATE</action-in-progress>
<advertisement-flag>ENABLE_TS_FROM_CD_AND_PXE</advertisement-flag>
<advertisement-id>123200DF</advertisement-id>
<advertisement-name><![CDATA[adv002]]></advertisement-name>
<schedules>
<schedule>
<type>non-recurring</type>
<day-duration>2</day-duration>
<hour-duration>1</hour-duration>
<minute-duration>1</minute-duration>
<is-gmt>True</is-gmt>
<start-time>20110201000000.000000+***</start-time>
</schedule>
<schedule>
<type>custom</type>
<day-duration>2</day-duration>
<hour-duration>1</hour-duration>
<minute-duration>1</minute-duration>
<is-gmt>True</is-gmt>
<start-time>20110201000000.000000+***</start-time>
<day-span>1</day-span>
<hour-span>0</hour-span>
<minute-span>0</minute-span>
</schedule>
</schedules>
<assigned-schedule-enabled>True</assigned-schedule-enabled>
<assigned-schedule-is-gmt>True</assigned-schedule-is-gmt>
<assignment-id>0</assignment-id>
<collection-id>SMS00002</collection-id>
<comment><![CDATA[adv comment]]></comment>
<device-flags>24</device-flags>
<expiration-time>20120201000000.000000+***</expiration-time>
<expiration-time-enabled>True</expiration-time-enabled>
<expiration-time-is-gmt>True</expiration-time-is-gmt>
<hierarchy-path><![CDATA[any path]]></hierarchy-path>
<include-sub-collection>True</include-sub-collection>
<mandatory-countdown>10</mandatory-countdown>
<package-id>12300001</package-id>
<present-time>20110201000000.000000+***</present-time>
<present-time-enabled>True</present-time-enabled>
<present-time-is-gmt>True</present-time-is-gmt>
<priority>HIGH</priority>
<program-name><![CDATA[p2]]></program-name>
<remote-client-flags>DONT_RUN_NO_LOCAL_DISPPOINT</remote-client-flags>
<source-site>123</source-site>
<time-flags>29459</time-flags>
</output>
</response>
</responses>
</mssccm-response>
Comments
Log in or register to comment.