The GetDeployments Windows Management Instrumentation (WMI) class method, in Configuration Manager, gets advertisement identifier or Assignment identifier and related type for a deployment that is deployed to the specified resource.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
sint32 GetDeployments( uint32 ResourceID, string DeploymentIDs, uint32 DeploymentTypeID );
- Data type: UInt32Qualifiers: [in] Configuration Manager supplied ID for the resource. This ID is not unique across sites.
- Data type: String ArrayQualifiers: [out] Unique auto-generated key for the deployment.
- Data type: UInt32 ArrayQualifiers: [out] Type identifier of the deployment.
An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.
For more information about handling returned errors, see About Configuration Manager Errors.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.