1. Packages
  2. Grafana Cloud
  3. API Docs
  4. cloud
  5. getIps
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
grafana logo
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse

    Data source for retrieving sets of cloud IPs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const test = grafana.cloud.getIps({});
    
    import pulumi
    import pulumi_grafana as grafana
    
    test = grafana.cloud.get_ips()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/cloud"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloud.GetIps(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumi.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Grafana.Cloud.GetIps.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.cloud.CloudFunctions;
    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) {
            final var test = CloudFunctions.getIps(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: grafana:cloud:getIps
          arguments: {}
    

    Using getIps

    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 getIps(opts?: InvokeOptions): Promise<GetIpsResult>
    function getIpsOutput(opts?: InvokeOptions): Output<GetIpsResult>
    def get_ips(opts: Optional[InvokeOptions] = None) -> GetIpsResult
    def get_ips_output(opts: Optional[InvokeOptions] = None) -> Output[GetIpsResult]
    func GetIps(ctx *Context, opts ...InvokeOption) (*GetIpsResult, error)
    func GetIpsOutput(ctx *Context, opts ...InvokeOption) GetIpsResultOutput

    > Note: This function is named GetIps in the Go SDK.

    public static class GetIps 
    {
        public static Task<GetIpsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetIpsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIpsResult> getIps(InvokeOptions options)
    public static Output<GetIpsResult> getIps(InvokeOptions options)
    
    fn::invoke:
      function: grafana:cloud/getIps:getIps
      arguments:
        # arguments dictionary

    getIps Result

    The following output properties are available:

    HostedAlerts List<string>
    Set of IP addresses that are used for hosted alerts.
    HostedGrafanas List<string>
    Set of IP addresses that are used for hosted Grafana.
    HostedLogs List<string>
    Set of IP addresses that are used for hosted logs.
    HostedMetrics List<string>
    Set of IP addresses that are used for hosted metrics.
    HostedOtlps List<string>
    Set of IP addresses that are used for the OTLP Gateway.
    HostedProfiles List<string>
    Set of IP addresses that are used for hosted profiles.
    HostedTraces List<string>
    Set of IP addresses that are used for hosted traces.
    Id string
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    HostedAlerts []string
    Set of IP addresses that are used for hosted alerts.
    HostedGrafanas []string
    Set of IP addresses that are used for hosted Grafana.
    HostedLogs []string
    Set of IP addresses that are used for hosted logs.
    HostedMetrics []string
    Set of IP addresses that are used for hosted metrics.
    HostedOtlps []string
    Set of IP addresses that are used for the OTLP Gateway.
    HostedProfiles []string
    Set of IP addresses that are used for hosted profiles.
    HostedTraces []string
    Set of IP addresses that are used for hosted traces.
    Id string
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    hostedAlerts List<String>
    Set of IP addresses that are used for hosted alerts.
    hostedGrafanas List<String>
    Set of IP addresses that are used for hosted Grafana.
    hostedLogs List<String>
    Set of IP addresses that are used for hosted logs.
    hostedMetrics List<String>
    Set of IP addresses that are used for hosted metrics.
    hostedOtlps List<String>
    Set of IP addresses that are used for the OTLP Gateway.
    hostedProfiles List<String>
    Set of IP addresses that are used for hosted profiles.
    hostedTraces List<String>
    Set of IP addresses that are used for hosted traces.
    id String
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    hostedAlerts string[]
    Set of IP addresses that are used for hosted alerts.
    hostedGrafanas string[]
    Set of IP addresses that are used for hosted Grafana.
    hostedLogs string[]
    Set of IP addresses that are used for hosted logs.
    hostedMetrics string[]
    Set of IP addresses that are used for hosted metrics.
    hostedOtlps string[]
    Set of IP addresses that are used for the OTLP Gateway.
    hostedProfiles string[]
    Set of IP addresses that are used for hosted profiles.
    hostedTraces string[]
    Set of IP addresses that are used for hosted traces.
    id string
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    hosted_alerts Sequence[str]
    Set of IP addresses that are used for hosted alerts.
    hosted_grafanas Sequence[str]
    Set of IP addresses that are used for hosted Grafana.
    hosted_logs Sequence[str]
    Set of IP addresses that are used for hosted logs.
    hosted_metrics Sequence[str]
    Set of IP addresses that are used for hosted metrics.
    hosted_otlps Sequence[str]
    Set of IP addresses that are used for the OTLP Gateway.
    hosted_profiles Sequence[str]
    Set of IP addresses that are used for hosted profiles.
    hosted_traces Sequence[str]
    Set of IP addresses that are used for hosted traces.
    id str
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    hostedAlerts List<String>
    Set of IP addresses that are used for hosted alerts.
    hostedGrafanas List<String>
    Set of IP addresses that are used for hosted Grafana.
    hostedLogs List<String>
    Set of IP addresses that are used for hosted logs.
    hostedMetrics List<String>
    Set of IP addresses that are used for hosted metrics.
    hostedOtlps List<String>
    Set of IP addresses that are used for the OTLP Gateway.
    hostedProfiles List<String>
    Set of IP addresses that are used for hosted profiles.
    hostedTraces List<String>
    Set of IP addresses that are used for hosted traces.
    id String
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Viewing docs for Grafana v2.21.0
    published on Tuesday, Mar 3, 2026 by pulumiverse
      Try Pulumi Cloud free. Your team will thank you.