3.1.4.135.3.1 ExecuteSPGetUpdatesByCategoryRequestBody

Contains the request to retrieve the updates.

            
 <xsd:complexType name="ExecuteSPGetUpdatesByCategoryRequestBody">
   <xsd:sequence>
     <xsd:element minOccurs="0" maxOccurs="1" name="preferredCulture" nillable="true" type="xsd:string"/>
     <xsd:element minOccurs="1" maxOccurs="1" name="categoryId" nillable="true" type="xsd:string"/>
     <xsd:element minOccurs="1" maxOccurs="1" name="approvedStates" type="xsd:int"/>
     <xsd:element minOccurs="0" maxOccurs="1" name="updateType" nillable="true" type="xsd:string"/>
     <xsd:element minOccurs="1" maxOccurs="1" name="maxResultCount" type="xsd:int"/>
   </xsd:sequence>
 </xsd:complexType>

preferredCulture: This field MUST be present. It contains a language identifier as defined in [RFC1766] that denotes the preferred language to use when returning results.

Note The WSUS server SHOULD return results in the default language, if the preferred language is not available.

categoryId: This field MUST be present. It contains the ID of the parent category.

approvedStates:  This field MUST be present. It contains a bit mask summarizing the approved state of an update. This can take the following values.

Value

Name

Description

1

LatestRevisionApproved

Include updates for which the latest revsions are approved.

2

HasStaleUpdateApprovals

Include updates that have an approved revision that is not the latest revision.

4

NotApproved

Include updates that have not been approved or declined.

8

Declined

Include updates that have been declined.

0xFFFFFF

Any

Include any updates.

updateType: This field MUST be present. It is used to select the type of updates to retrieve. A value of NULL returns all updates.

maxResultCount: This field MUST be present. It contains the maximum number of results. The update server MUST NOT return more results than specified.