--- title: "NMC API Code Samples and Scripting Reference" slug: "nmc-api-code-samples-and-scripting-reference" tags: ["NMC API", "Nasuni Management Console"] updated: 2026-11-24T21:55:01Z published: 2026-11-24T21:55:01Z canonical: "docs.nasuni.com/nmc-api-code-samples-and-scripting-reference" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.nasuni.com/llms.txt > Use this file to discover all available pages before exploring further. # NMC API Code Samples and Scripting Reference ## Overview The Nasuni Management Console (NMC) API is a REST-based API to monitor and configure the Nasuni resources managed by your Nasuni Management Console in a simple programmatic way using conventional HTTP requests. > ***Note****: For details about the NMC API, and sample PowerShell scripts, see* [*https://github.com/nasuni-labs/nasuni-nmcapi-powershell-utilities*](https://github.com/nasuni-labs/nasuni-nmcapi-powershell-utilities)*. For the NMC API itself, see* [*Nasuni Management Console API*](https://docs.api.nasuni.com/)*.* > ***Note****: You can enable and disable Global File Lock using the NMC API. For details, see* [*Nasuni Labs*](https://github.com/nasuni-labs)*.* > [!TIP] > ***Tip****: The Nasuni Posh API (*[*https://github.com/nasuni-labs/NasuniPoshApiGitHub*](https://github.com/nasuni-labs/NasuniPoshApiGitHub)*) is a PowerShell module that acts as an abstraction layer over the NMC API. Covers the full API surface area and handles authentication, pagination, rate limiting, asynchronous operation tracking, and error recovery internally. It can be useful in debugging and automating Nasuni tasks.*