Skip to main content

1E SDK

Nomad.GetCmContentLocations

Method

GetCmContentLocations

Module

Nomad

Library

1E

Action

Find the Configuration Manager locations (on distribution points - DPs) that have the specified content.

Parameters

ContentId (string): The ID of the content to query.

Version (int): The version of the content to query.

Return values

For each DP that has the content (maybe none):

Hash (string): The hash of the content. (The same value for all rows returned.)

Path (string): The URL of the content.

SiteLocality (int): The locality of the ConfigMgr site. 0 for unknown locality, 1 for fallback, 2 for remote, or 3 for local.

SiteType (int): The type of ConfigMgr site. 0 for unknown, 1 for server, 2 for Azure.

IsSmb (bool): false if the Path is an HTTP or HTTPS URL, else true if an SMB share.

Example

What ConfigMgr distribution points, if any, have version 1 of content "Content_7f368e5f-4dbe-4027-ba81-c5463e372a0c"?

Nomad.GetCmContentLocations(ContentId : "Content_7f368e5f-4dbe-4027-ba81-c5463e372a0c", Version : 1);

Platforms

  • Windows

Notes

No data is returned if no DPs have the requested content.