NS1 v3.7.2 published on Wednesday, Oct 22, 2025 by Pulumi
ns1.getMonitoringRegions
Provides details of all available monitoring regions.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ns1 from "@pulumi/ns1";
// Get details of all available monitoring regions.
const example = ns1.getMonitoringRegions({});
import pulumi
import pulumi_ns1 as ns1
# Get details of all available monitoring regions.
example = ns1.get_monitoring_regions()
package main
import (
	"github.com/pulumi/pulumi-ns1/sdk/v3/go/ns1"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get details of all available monitoring regions.
		_, err := ns1.GetMonitoringRegions(ctx, &ns1.GetMonitoringRegionsArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ns1 = Pulumi.Ns1;
return await Deployment.RunAsync(() => 
{
    // Get details of all available monitoring regions.
    var example = Ns1.GetMonitoringRegions.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ns1.Ns1Functions;
import com.pulumi.ns1.inputs.GetMonitoringRegionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        // Get details of all available monitoring regions.
        final var example = Ns1Functions.getMonitoringRegions(GetMonitoringRegionsArgs.builder()
            .build());
    }
}
variables:
  # Get details of all available monitoring regions.
  example:
    fn::invoke:
      function: ns1:getMonitoringRegions
      arguments: {}
Using getMonitoringRegions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMonitoringRegions(args: GetMonitoringRegionsArgs, opts?: InvokeOptions): Promise<GetMonitoringRegionsResult>
function getMonitoringRegionsOutput(args: GetMonitoringRegionsOutputArgs, opts?: InvokeOptions): Output<GetMonitoringRegionsResult>def get_monitoring_regions(regions: Optional[Sequence[GetMonitoringRegionsRegion]] = None,
                           opts: Optional[InvokeOptions] = None) -> GetMonitoringRegionsResult
def get_monitoring_regions_output(regions: Optional[pulumi.Input[Sequence[pulumi.Input[GetMonitoringRegionsRegionArgs]]]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetMonitoringRegionsResult]func GetMonitoringRegions(ctx *Context, args *GetMonitoringRegionsArgs, opts ...InvokeOption) (*GetMonitoringRegionsResult, error)
func GetMonitoringRegionsOutput(ctx *Context, args *GetMonitoringRegionsOutputArgs, opts ...InvokeOption) GetMonitoringRegionsResultOutput> Note: This function is named GetMonitoringRegions in the Go SDK.
public static class GetMonitoringRegions 
{
    public static Task<GetMonitoringRegionsResult> InvokeAsync(GetMonitoringRegionsArgs args, InvokeOptions? opts = null)
    public static Output<GetMonitoringRegionsResult> Invoke(GetMonitoringRegionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMonitoringRegionsResult> getMonitoringRegions(GetMonitoringRegionsArgs args, InvokeOptions options)
public static Output<GetMonitoringRegionsResult> getMonitoringRegions(GetMonitoringRegionsArgs args, InvokeOptions options)
fn::invoke:
  function: ns1:index/getMonitoringRegions:getMonitoringRegions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Regions
List<GetMonitoring Regions Region> 
- A set of the available monitoring regions. Regions is documented below.
- Regions
[]GetMonitoring Regions Region 
- A set of the available monitoring regions. Regions is documented below.
- regions
List<GetMonitoring Regions Region> 
- A set of the available monitoring regions. Regions is documented below.
- regions
GetMonitoring Regions Region[] 
- A set of the available monitoring regions. Regions is documented below.
- regions
Sequence[GetMonitoring Regions Region] 
- A set of the available monitoring regions. Regions is documented below.
- regions List<Property Map>
- A set of the available monitoring regions. Regions is documented below.
getMonitoringRegions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
List<GetMonitoring Regions Region> 
- A set of the available monitoring regions. Regions is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
[]GetMonitoring Regions Region 
- A set of the available monitoring regions. Regions is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- regions
List<GetMonitoring Regions Region> 
- A set of the available monitoring regions. Regions is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- regions
GetMonitoring Regions Region[] 
- A set of the available monitoring regions. Regions is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- regions
Sequence[GetMonitoring Regions Region] 
- A set of the available monitoring regions. Regions is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- regions List<Property Map>
- A set of the available monitoring regions. Regions is documented below.
Supporting Types
GetMonitoringRegionsRegion   
Package Details
- Repository
- NS1 pulumi/pulumi-ns1
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ns1Terraform Provider.
