Show / Hide Table of Contents

Class GetNetblockIPRanges

Inheritance
System.Object
GetNetblockIPRanges
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetNetblockIPRanges

Methods

View Source

InvokeAsync(GetNetblockIPRangesArgs, InvokeOptions)

Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform.

Example Usage - Cloud Ranges

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var netblock = Output.Create(Gcp.Compute.GetNetblockIPRanges.InvokeAsync());
    this.CidrBlocks = netblock.Apply(netblock => netblock.CidrBlocks);
    this.CidrBlocksIpv4 = netblock.Apply(netblock => netblock.CidrBlocksIpv4s);
    this.CidrBlocksIpv6 = netblock.Apply(netblock => netblock.CidrBlocksIpv6s);
}

[Output("cidrBlocks")]
public Output<string> CidrBlocks { get; set; }
[Output("cidrBlocksIpv4")]
public Output<string> CidrBlocksIpv4 { get; set; }
[Output("cidrBlocksIpv6")]
public Output<string> CidrBlocksIpv6 { get; set; }
}
Declaration
public static Task<GetNetblockIPRangesResult> InvokeAsync(GetNetblockIPRangesArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetNetblockIPRangesArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetNetblockIPRangesResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.