gcp.networkconnectivity.InternalRange
Explore with Pulumi AI
The internal range resource for IPAM operations within a VPC network. Used to represent a private address range along with behavioral characterstics of that range (its usage and peering behavior). Networking resources can link to this range if they are created as belonging to it.
To get more information about InternalRange, see:
- API documentation
- How-to Guides
Example Usage
Network Connectivity Internal Ranges Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultNetwork = new gcp.compute.Network("default", {
name: "internal-ranges",
autoCreateSubnetworks: false,
});
const _default = new gcp.networkconnectivity.InternalRange("default", {
name: "basic",
description: "Test internal range",
network: defaultNetwork.selfLink,
usage: "FOR_VPC",
peering: "FOR_SELF",
ipCidrRange: "10.0.0.0/24",
labels: {
"label-a": "b",
},
});
import pulumi
import pulumi_gcp as gcp
default_network = gcp.compute.Network("default",
name="internal-ranges",
auto_create_subnetworks=False)
default = gcp.networkconnectivity.InternalRange("default",
name="basic",
description="Test internal range",
network=default_network.self_link,
usage="FOR_VPC",
peering="FOR_SELF",
ip_cidr_range="10.0.0.0/24",
labels={
"label-a": "b",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultNetwork, err := compute.NewNetwork(ctx, "default", &compute.NetworkArgs{
Name: pulumi.String("internal-ranges"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewInternalRange(ctx, "default", &networkconnectivity.InternalRangeArgs{
Name: pulumi.String("basic"),
Description: pulumi.String("Test internal range"),
Network: defaultNetwork.SelfLink,
Usage: pulumi.String("FOR_VPC"),
Peering: pulumi.String("FOR_SELF"),
IpCidrRange: pulumi.String("10.0.0.0/24"),
Labels: pulumi.StringMap{
"label-a": pulumi.String("b"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var defaultNetwork = new Gcp.Compute.Network("default", new()
{
Name = "internal-ranges",
AutoCreateSubnetworks = false,
});
var @default = new Gcp.NetworkConnectivity.InternalRange("default", new()
{
Name = "basic",
Description = "Test internal range",
Network = defaultNetwork.SelfLink,
Usage = "FOR_VPC",
Peering = "FOR_SELF",
IpCidrRange = "10.0.0.0/24",
Labels =
{
{ "label-a", "b" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.networkconnectivity.InternalRange;
import com.pulumi.gcp.networkconnectivity.InternalRangeArgs;
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) {
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.name("internal-ranges")
.autoCreateSubnetworks(false)
.build());
var default_ = new InternalRange("default", InternalRangeArgs.builder()
.name("basic")
.description("Test internal range")
.network(defaultNetwork.selfLink())
.usage("FOR_VPC")
.peering("FOR_SELF")
.ipCidrRange("10.0.0.0/24")
.labels(Map.of("label-a", "b"))
.build());
}
}
resources:
default:
type: gcp:networkconnectivity:InternalRange
properties:
name: basic
description: Test internal range
network: ${defaultNetwork.selfLink}
usage: FOR_VPC
peering: FOR_SELF
ipCidrRange: 10.0.0.0/24
labels:
label-a: b
defaultNetwork:
type: gcp:compute:Network
name: default
properties:
name: internal-ranges
autoCreateSubnetworks: false
Network Connectivity Internal Ranges Automatic Reservation
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultNetwork = new gcp.compute.Network("default", {
name: "internal-ranges",
autoCreateSubnetworks: false,
});
const _default = new gcp.networkconnectivity.InternalRange("default", {
name: "automatic-reservation",
network: defaultNetwork.id,
usage: "FOR_VPC",
peering: "FOR_SELF",
prefixLength: 24,
targetCidrRanges: ["192.16.0.0/16"],
});
import pulumi
import pulumi_gcp as gcp
default_network = gcp.compute.Network("default",
name="internal-ranges",
auto_create_subnetworks=False)
default = gcp.networkconnectivity.InternalRange("default",
name="automatic-reservation",
network=default_network.id,
usage="FOR_VPC",
peering="FOR_SELF",
prefix_length=24,
target_cidr_ranges=["192.16.0.0/16"])
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultNetwork, err := compute.NewNetwork(ctx, "default", &compute.NetworkArgs{
Name: pulumi.String("internal-ranges"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewInternalRange(ctx, "default", &networkconnectivity.InternalRangeArgs{
Name: pulumi.String("automatic-reservation"),
Network: defaultNetwork.ID(),
Usage: pulumi.String("FOR_VPC"),
Peering: pulumi.String("FOR_SELF"),
PrefixLength: pulumi.Int(24),
TargetCidrRanges: pulumi.StringArray{
pulumi.String("192.16.0.0/16"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var defaultNetwork = new Gcp.Compute.Network("default", new()
{
Name = "internal-ranges",
AutoCreateSubnetworks = false,
});
var @default = new Gcp.NetworkConnectivity.InternalRange("default", new()
{
Name = "automatic-reservation",
Network = defaultNetwork.Id,
Usage = "FOR_VPC",
Peering = "FOR_SELF",
PrefixLength = 24,
TargetCidrRanges = new[]
{
"192.16.0.0/16",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.networkconnectivity.InternalRange;
import com.pulumi.gcp.networkconnectivity.InternalRangeArgs;
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) {
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.name("internal-ranges")
.autoCreateSubnetworks(false)
.build());
var default_ = new InternalRange("default", InternalRangeArgs.builder()
.name("automatic-reservation")
.network(defaultNetwork.id())
.usage("FOR_VPC")
.peering("FOR_SELF")
.prefixLength(24)
.targetCidrRanges("192.16.0.0/16")
.build());
}
}
resources:
default:
type: gcp:networkconnectivity:InternalRange
properties:
name: automatic-reservation
network: ${defaultNetwork.id}
usage: FOR_VPC
peering: FOR_SELF
prefixLength: 24
targetCidrRanges:
- 192.16.0.0/16
defaultNetwork:
type: gcp:compute:Network
name: default
properties:
name: internal-ranges
autoCreateSubnetworks: false
Network Connectivity Internal Ranges External Ranges
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultNetwork = new gcp.compute.Network("default", {
name: "internal-ranges",
autoCreateSubnetworks: false,
});
const _default = new gcp.networkconnectivity.InternalRange("default", {
name: "external-ranges",
network: defaultNetwork.id,
usage: "EXTERNAL_TO_VPC",
peering: "FOR_SELF",
ipCidrRange: "172.16.0.0/24",
labels: {
"external-reserved-range": "on-premises",
},
});
import pulumi
import pulumi_gcp as gcp
default_network = gcp.compute.Network("default",
name="internal-ranges",
auto_create_subnetworks=False)
default = gcp.networkconnectivity.InternalRange("default",
name="external-ranges",
network=default_network.id,
usage="EXTERNAL_TO_VPC",
peering="FOR_SELF",
ip_cidr_range="172.16.0.0/24",
labels={
"external-reserved-range": "on-premises",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultNetwork, err := compute.NewNetwork(ctx, "default", &compute.NetworkArgs{
Name: pulumi.String("internal-ranges"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewInternalRange(ctx, "default", &networkconnectivity.InternalRangeArgs{
Name: pulumi.String("external-ranges"),
Network: defaultNetwork.ID(),
Usage: pulumi.String("EXTERNAL_TO_VPC"),
Peering: pulumi.String("FOR_SELF"),
IpCidrRange: pulumi.String("172.16.0.0/24"),
Labels: pulumi.StringMap{
"external-reserved-range": pulumi.String("on-premises"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var defaultNetwork = new Gcp.Compute.Network("default", new()
{
Name = "internal-ranges",
AutoCreateSubnetworks = false,
});
var @default = new Gcp.NetworkConnectivity.InternalRange("default", new()
{
Name = "external-ranges",
Network = defaultNetwork.Id,
Usage = "EXTERNAL_TO_VPC",
Peering = "FOR_SELF",
IpCidrRange = "172.16.0.0/24",
Labels =
{
{ "external-reserved-range", "on-premises" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.networkconnectivity.InternalRange;
import com.pulumi.gcp.networkconnectivity.InternalRangeArgs;
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) {
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.name("internal-ranges")
.autoCreateSubnetworks(false)
.build());
var default_ = new InternalRange("default", InternalRangeArgs.builder()
.name("external-ranges")
.network(defaultNetwork.id())
.usage("EXTERNAL_TO_VPC")
.peering("FOR_SELF")
.ipCidrRange("172.16.0.0/24")
.labels(Map.of("external-reserved-range", "on-premises"))
.build());
}
}
resources:
default:
type: gcp:networkconnectivity:InternalRange
properties:
name: external-ranges
network: ${defaultNetwork.id}
usage: EXTERNAL_TO_VPC
peering: FOR_SELF
ipCidrRange: 172.16.0.0/24
labels:
external-reserved-range: on-premises
defaultNetwork:
type: gcp:compute:Network
name: default
properties:
name: internal-ranges
autoCreateSubnetworks: false
Network Connectivity Internal Ranges Reserve With Overlap
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultNetwork = new gcp.compute.Network("default", {
name: "internal-ranges",
autoCreateSubnetworks: false,
});
const defaultSubnetwork = new gcp.compute.Subnetwork("default", {
name: "overlapping-subnet",
ipCidrRange: "10.0.0.0/24",
region: "us-central1",
network: defaultNetwork.id,
});
const _default = new gcp.networkconnectivity.InternalRange("default", {
name: "overlap-range",
description: "Test internal range",
network: defaultNetwork.id,
usage: "FOR_VPC",
peering: "FOR_SELF",
ipCidrRange: "10.0.0.0/30",
overlaps: ["OVERLAP_EXISTING_SUBNET_RANGE"],
}, {
dependsOn: [defaultSubnetwork],
});
import pulumi
import pulumi_gcp as gcp
default_network = gcp.compute.Network("default",
name="internal-ranges",
auto_create_subnetworks=False)
default_subnetwork = gcp.compute.Subnetwork("default",
name="overlapping-subnet",
ip_cidr_range="10.0.0.0/24",
region="us-central1",
network=default_network.id)
default = gcp.networkconnectivity.InternalRange("default",
name="overlap-range",
description="Test internal range",
network=default_network.id,
usage="FOR_VPC",
peering="FOR_SELF",
ip_cidr_range="10.0.0.0/30",
overlaps=["OVERLAP_EXISTING_SUBNET_RANGE"],
opts = pulumi.ResourceOptions(depends_on=[default_subnetwork]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultNetwork, err := compute.NewNetwork(ctx, "default", &compute.NetworkArgs{
Name: pulumi.String("internal-ranges"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
defaultSubnetwork, err := compute.NewSubnetwork(ctx, "default", &compute.SubnetworkArgs{
Name: pulumi.String("overlapping-subnet"),
IpCidrRange: pulumi.String("10.0.0.0/24"),
Region: pulumi.String("us-central1"),
Network: defaultNetwork.ID(),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewInternalRange(ctx, "default", &networkconnectivity.InternalRangeArgs{
Name: pulumi.String("overlap-range"),
Description: pulumi.String("Test internal range"),
Network: defaultNetwork.ID(),
Usage: pulumi.String("FOR_VPC"),
Peering: pulumi.String("FOR_SELF"),
IpCidrRange: pulumi.String("10.0.0.0/30"),
Overlaps: pulumi.StringArray{
pulumi.String("OVERLAP_EXISTING_SUBNET_RANGE"),
},
}, pulumi.DependsOn([]pulumi.Resource{
defaultSubnetwork,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var defaultNetwork = new Gcp.Compute.Network("default", new()
{
Name = "internal-ranges",
AutoCreateSubnetworks = false,
});
var defaultSubnetwork = new Gcp.Compute.Subnetwork("default", new()
{
Name = "overlapping-subnet",
IpCidrRange = "10.0.0.0/24",
Region = "us-central1",
Network = defaultNetwork.Id,
});
var @default = new Gcp.NetworkConnectivity.InternalRange("default", new()
{
Name = "overlap-range",
Description = "Test internal range",
Network = defaultNetwork.Id,
Usage = "FOR_VPC",
Peering = "FOR_SELF",
IpCidrRange = "10.0.0.0/30",
Overlaps = new[]
{
"OVERLAP_EXISTING_SUBNET_RANGE",
},
}, new CustomResourceOptions
{
DependsOn =
{
defaultSubnetwork,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.networkconnectivity.InternalRange;
import com.pulumi.gcp.networkconnectivity.InternalRangeArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.name("internal-ranges")
.autoCreateSubnetworks(false)
.build());
var defaultSubnetwork = new Subnetwork("defaultSubnetwork", SubnetworkArgs.builder()
.name("overlapping-subnet")
.ipCidrRange("10.0.0.0/24")
.region("us-central1")
.network(defaultNetwork.id())
.build());
var default_ = new InternalRange("default", InternalRangeArgs.builder()
.name("overlap-range")
.description("Test internal range")
.network(defaultNetwork.id())
.usage("FOR_VPC")
.peering("FOR_SELF")
.ipCidrRange("10.0.0.0/30")
.overlaps("OVERLAP_EXISTING_SUBNET_RANGE")
.build(), CustomResourceOptions.builder()
.dependsOn(defaultSubnetwork)
.build());
}
}
resources:
default:
type: gcp:networkconnectivity:InternalRange
properties:
name: overlap-range
description: Test internal range
network: ${defaultNetwork.id}
usage: FOR_VPC
peering: FOR_SELF
ipCidrRange: 10.0.0.0/30
overlaps:
- OVERLAP_EXISTING_SUBNET_RANGE
options:
dependson:
- ${defaultSubnetwork}
defaultNetwork:
type: gcp:compute:Network
name: default
properties:
name: internal-ranges
autoCreateSubnetworks: false
defaultSubnetwork:
type: gcp:compute:Subnetwork
name: default
properties:
name: overlapping-subnet
ipCidrRange: 10.0.0.0/24
region: us-central1
network: ${defaultNetwork.id}
Create InternalRange Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InternalRange(name: string, args: InternalRangeArgs, opts?: CustomResourceOptions);
@overload
def InternalRange(resource_name: str,
args: InternalRangeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InternalRange(resource_name: str,
opts: Optional[ResourceOptions] = None,
network: Optional[str] = None,
peering: Optional[str] = None,
usage: Optional[str] = None,
description: Optional[str] = None,
ip_cidr_range: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
overlaps: Optional[Sequence[str]] = None,
prefix_length: Optional[int] = None,
project: Optional[str] = None,
target_cidr_ranges: Optional[Sequence[str]] = None)
func NewInternalRange(ctx *Context, name string, args InternalRangeArgs, opts ...ResourceOption) (*InternalRange, error)
public InternalRange(string name, InternalRangeArgs args, CustomResourceOptions? opts = null)
public InternalRange(String name, InternalRangeArgs args)
public InternalRange(String name, InternalRangeArgs args, CustomResourceOptions options)
type: gcp:networkconnectivity:InternalRange
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InternalRangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InternalRangeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InternalRangeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InternalRangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InternalRangeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var internalRangeResource = new Gcp.NetworkConnectivity.InternalRange("internalRangeResource", new()
{
Network = "string",
Peering = "string",
Usage = "string",
Description = "string",
IpCidrRange = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Overlaps = new[]
{
"string",
},
PrefixLength = 0,
Project = "string",
TargetCidrRanges = new[]
{
"string",
},
});
example, err := networkconnectivity.NewInternalRange(ctx, "internalRangeResource", &networkconnectivity.InternalRangeArgs{
Network: pulumi.String("string"),
Peering: pulumi.String("string"),
Usage: pulumi.String("string"),
Description: pulumi.String("string"),
IpCidrRange: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Overlaps: pulumi.StringArray{
pulumi.String("string"),
},
PrefixLength: pulumi.Int(0),
Project: pulumi.String("string"),
TargetCidrRanges: pulumi.StringArray{
pulumi.String("string"),
},
})
var internalRangeResource = new InternalRange("internalRangeResource", InternalRangeArgs.builder()
.network("string")
.peering("string")
.usage("string")
.description("string")
.ipCidrRange("string")
.labels(Map.of("string", "string"))
.name("string")
.overlaps("string")
.prefixLength(0)
.project("string")
.targetCidrRanges("string")
.build());
internal_range_resource = gcp.networkconnectivity.InternalRange("internalRangeResource",
network="string",
peering="string",
usage="string",
description="string",
ip_cidr_range="string",
labels={
"string": "string",
},
name="string",
overlaps=["string"],
prefix_length=0,
project="string",
target_cidr_ranges=["string"])
const internalRangeResource = new gcp.networkconnectivity.InternalRange("internalRangeResource", {
network: "string",
peering: "string",
usage: "string",
description: "string",
ipCidrRange: "string",
labels: {
string: "string",
},
name: "string",
overlaps: ["string"],
prefixLength: 0,
project: "string",
targetCidrRanges: ["string"],
});
type: gcp:networkconnectivity:InternalRange
properties:
description: string
ipCidrRange: string
labels:
string: string
name: string
network: string
overlaps:
- string
peering: string
prefixLength: 0
project: string
targetCidrRanges:
- string
usage: string
InternalRange Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The InternalRange resource accepts the following input properties:
- Network string
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- Peering string
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - Usage string
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - Description string
- An optional description of this resource.
- Ip
Cidr stringRange - The IP range that this internal range defines.
- Labels Dictionary<string, string>
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The name of the policy based route.
- Overlaps List<string>
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - Prefix
Length int - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Target
Cidr List<string>Ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- Network string
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- Peering string
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - Usage string
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - Description string
- An optional description of this resource.
- Ip
Cidr stringRange - The IP range that this internal range defines.
- Labels map[string]string
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The name of the policy based route.
- Overlaps []string
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - Prefix
Length int - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Target
Cidr []stringRanges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- network String
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- peering String
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - usage String
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - description String
- An optional description of this resource.
- ip
Cidr StringRange - The IP range that this internal range defines.
- labels Map<String,String>
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The name of the policy based route.
- overlaps List<String>
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - prefix
Length Integer - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- target
Cidr List<String>Ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- network string
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- peering string
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - usage string
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - description string
- An optional description of this resource.
- ip
Cidr stringRange - The IP range that this internal range defines.
- labels {[key: string]: string}
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
- The name of the policy based route.
- overlaps string[]
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - prefix
Length number - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- target
Cidr string[]Ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- network str
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- peering str
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - usage str
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - description str
- An optional description of this resource.
- ip_
cidr_ strrange - The IP range that this internal range defines.
- labels Mapping[str, str]
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
- The name of the policy based route.
- overlaps Sequence[str]
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - prefix_
length int - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- target_
cidr_ Sequence[str]ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- network String
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- peering String
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - usage String
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - description String
- An optional description of this resource.
- ip
Cidr StringRange - The IP range that this internal range defines.
- labels Map<String>
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The name of the policy based route.
- overlaps List<String>
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - prefix
Length Number - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- target
Cidr List<String>Ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
Outputs
All input properties are implicitly available as output properties. Additionally, the InternalRange resource produces the following output properties:
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Users List<string>
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Users []string
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- users List<String>
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- users string[]
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- users Sequence[str]
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- users List<String>
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
Look up Existing InternalRange Resource
Get an existing InternalRange resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InternalRangeState, opts?: CustomResourceOptions): InternalRange
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
ip_cidr_range: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
network: Optional[str] = None,
overlaps: Optional[Sequence[str]] = None,
peering: Optional[str] = None,
prefix_length: Optional[int] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
target_cidr_ranges: Optional[Sequence[str]] = None,
usage: Optional[str] = None,
users: Optional[Sequence[str]] = None) -> InternalRange
func GetInternalRange(ctx *Context, name string, id IDInput, state *InternalRangeState, opts ...ResourceOption) (*InternalRange, error)
public static InternalRange Get(string name, Input<string> id, InternalRangeState? state, CustomResourceOptions? opts = null)
public static InternalRange get(String name, Output<String> id, InternalRangeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- An optional description of this resource.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Ip
Cidr stringRange - The IP range that this internal range defines.
- Labels Dictionary<string, string>
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The name of the policy based route.
- Network string
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- Overlaps List<string>
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - Peering string
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - Prefix
Length int - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Target
Cidr List<string>Ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- Usage string
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - Users List<string>
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- Description string
- An optional description of this resource.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Ip
Cidr stringRange - The IP range that this internal range defines.
- Labels map[string]string
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The name of the policy based route.
- Network string
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- Overlaps []string
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - Peering string
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - Prefix
Length int - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Target
Cidr []stringRanges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- Usage string
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - Users []string
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- description String
- An optional description of this resource.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- ip
Cidr StringRange - The IP range that this internal range defines.
- labels Map<String,String>
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The name of the policy based route.
- network String
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- overlaps List<String>
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - peering String
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - prefix
Length Integer - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- target
Cidr List<String>Ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- usage String
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - users List<String>
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- description string
- An optional description of this resource.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- ip
Cidr stringRange - The IP range that this internal range defines.
- labels {[key: string]: string}
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
- The name of the policy based route.
- network string
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- overlaps string[]
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - peering string
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - prefix
Length number - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- target
Cidr string[]Ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- usage string
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - users string[]
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- description str
- An optional description of this resource.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- ip_
cidr_ strrange - The IP range that this internal range defines.
- labels Mapping[str, str]
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
- The name of the policy based route.
- network str
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- overlaps Sequence[str]
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - peering str
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - prefix_
length int - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- target_
cidr_ Sequence[str]ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- usage str
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - users Sequence[str]
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
- description String
- An optional description of this resource.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- ip
Cidr StringRange - The IP range that this internal range defines.
- labels Map<String>
User-defined labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The name of the policy based route.
- network String
- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
- overlaps List<String>
- Optional. Types of resources that are allowed to overlap with the current internal range.
Each value may be one of:
OVERLAP_ROUTE_RANGE
,OVERLAP_EXISTING_SUBNET_RANGE
. - peering String
- The type of peering set for this internal range.
Possible values are:
FOR_SELF
,FOR_PEER
,NOT_SHARED
. - prefix
Length Number - An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- target
Cidr List<String>Ranges - Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
- usage String
- The type of usage set for this InternalRange.
Possible values are:
FOR_VPC
,EXTERNAL_TO_VPC
. - users List<String>
- Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
Import
InternalRange can be imported using any of these accepted formats:
projects/{{project}}/locations/global/internalRanges/{{name}}
{{project}}/{{name}}
{{name}}
When using the pulumi import
command, InternalRange can be imported using one of the formats above. For example:
$ pulumi import gcp:networkconnectivity/internalRange:InternalRange default projects/{{project}}/locations/global/internalRanges/{{name}}
$ pulumi import gcp:networkconnectivity/internalRange:InternalRange default {{project}}/{{name}}
$ pulumi import gcp:networkconnectivity/internalRange:InternalRange default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.