Create Advertisement operation
The Create Advertisement operation creates an advertisement that is used to advertise programs on client computers. Advertising a program makes the program available for running on a specified collection of clients.
The following table describes the <items>
XML elements for the Create Advertisement operation:
Elements for the <items>
XML element and adapter request for the Create 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 the name of the advertisement |
Yes |
|
Specifies a string identifier for the collection where the advertisement is announced |
Yes |
|
Specifies a string identifier for the advertised package |
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 |
The following figure shows a sample adapter request for the Create Advertisement operation.
Sample adapter request for the Create Advertisement operation
<mssccm-request>
<operation-name>create-advertisement</operation-name>
<arguments>
<advertisement-name>Advertisement3</advertisement-name>
<collection-id>SMS00001</collection-id>
<package-id>45600006</package-id>
<program-name>Program1</program-name>
<advertisement-flag>DONOT_FALLBACK</advertisement-flag>
<schedules>
<schedule>
<type>monthly-by-week-day</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>TUESDAY</day>
<for-number-of-months>1</for-number-of-months>
<week-order>LAST</week-order>
</schedule>
</schedules>
<schedule-enabled>true</schedule-enabled>
<schedule-is-gmt>true</schedule-is-gmt>
<comment>comment8</comment>
<device-flags>24</device-flags>
<expiration-time>20130201000000.000000+***</expiration-time>
<expiration-time-enabled />
<expiration-time-is-gmt />
<hierarchy-path>Path7</hierarchy-path>
<include-sub-collection>true</include-sub-collection>
<mandatory-count-down />
<present-time>20110201000000.000000+***</present-time>
<present-time-enabled>true</present-time-enabled>
<present-time-is-gmt />
<priority>HIGH</priority>
<remote-client-flags>DONT_RUN_NO_LOCAL_DISPPOINT</remote-client-flags>
</arguments>
</mssccm-request>
The following figure shows the adapter response for the sample request:
Sample adapter response for the Create Advertisement operation
<mssccm-response>
<metadata>
<response-count>1</response-count>
<status>success</status>
</metadata>
<responses>
<response>
<metadata>
<target>Server161</target>
<status>success</status>
<count>1</count>
</metadata>
<output>
<action-in-progress>UPDATE</action-in-progress>
<advertisement-flag>DONOT_FALLBACK</advertisement-flag>
<advertisement-id>45620080</advertisement-id>
<advertisement-name><![CDATA[Advertisement3]]></advertisement-name>
<schedules>
<schedule>
<type>monthly-by-week-day</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>TUESDAY</day>
<for-number-of-months>1</for-number-of-months>
<week-order>LAST</week-order>
</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>SMS00001</collection-id>
<comment><![CDATA[comment8]]></comment>
<device-flags>24</device-flags>
<expiration-time>20130201000000.000000+***</expiration-time>
<expiration-time-enabled>False</expiration-time-enabled>
<expiration-time-is-gmt>False</expiration-time-is-gmt>
<hierarchy-path><![CDATA[Path7]]></hierarchy-path>
<include-sub-collection>True</include-sub-collection>
<mandatory-countdown>0</mandatory-countdown>
<package-id>45600006</package-id>
<present-time>20110201000000.000000+***</present-time>
<present-time-enabled>True</present-time-enabled>
<present-time-is-gmt>False</present-time-is-gmt>
<priority>HIGH</priority>
<program-name><![CDATA[Program1]]></program-name>
<remote-client-flags>DONT_RUN_NO_LOCAL_DISPPOINT</remote-client-flags>
<source-site>456</source-site>
<time-flags>28689</time-flags>
</output>
</response>
</responses>
</mssccm-response>
Comments
Log in or register to comment.