1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. oracledatabase
  5. OdbSubnet
Google Cloud v8.40.0 published on Monday, Aug 11, 2025 by Pulumi

gcp.oracledatabase.OdbSubnet

Explore with Pulumi AI

gcp logo
Google Cloud v8.40.0 published on Monday, Aug 11, 2025 by Pulumi

    An OdbSubnet resource which represents a subnet under an OdbNetwork.

    To get more information about OdbSubnet, see:

    Example Usage

    Oracledatabase Odbsubnet

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const my_odbsubnet = new gcp.oracledatabase.OdbSubnet("my-odbsubnet", {
        odbSubnetId: "my-odbsubnet",
        location: "europe-west2",
        project: "my-project",
        odbnetwork: "my-odbnetwork",
        cidrRange: "10.1.1.0/24",
        purpose: "CLIENT_SUBNET",
        labels: {
            terraform_created: "true",
        },
        deletionProtection: true,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_odbsubnet = gcp.oracledatabase.OdbSubnet("my-odbsubnet",
        odb_subnet_id="my-odbsubnet",
        location="europe-west2",
        project="my-project",
        odbnetwork="my-odbnetwork",
        cidr_range="10.1.1.0/24",
        purpose="CLIENT_SUBNET",
        labels={
            "terraform_created": "true",
        },
        deletion_protection=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/oracledatabase"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oracledatabase.NewOdbSubnet(ctx, "my-odbsubnet", &oracledatabase.OdbSubnetArgs{
    			OdbSubnetId: pulumi.String("my-odbsubnet"),
    			Location:    pulumi.String("europe-west2"),
    			Project:     pulumi.String("my-project"),
    			Odbnetwork:  pulumi.String("my-odbnetwork"),
    			CidrRange:   pulumi.String("10.1.1.0/24"),
    			Purpose:     pulumi.String("CLIENT_SUBNET"),
    			Labels: pulumi.StringMap{
    				"terraform_created": pulumi.String("true"),
    			},
    			DeletionProtection: pulumi.Bool(true),
    		})
    		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 my_odbsubnet = new Gcp.OracleDatabase.OdbSubnet("my-odbsubnet", new()
        {
            OdbSubnetId = "my-odbsubnet",
            Location = "europe-west2",
            Project = "my-project",
            Odbnetwork = "my-odbnetwork",
            CidrRange = "10.1.1.0/24",
            Purpose = "CLIENT_SUBNET",
            Labels = 
            {
                { "terraform_created", "true" },
            },
            DeletionProtection = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.oracledatabase.OdbSubnet;
    import com.pulumi.gcp.oracledatabase.OdbSubnetArgs;
    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 my_odbsubnet = new OdbSubnet("my-odbsubnet", OdbSubnetArgs.builder()
                .odbSubnetId("my-odbsubnet")
                .location("europe-west2")
                .project("my-project")
                .odbnetwork("my-odbnetwork")
                .cidrRange("10.1.1.0/24")
                .purpose("CLIENT_SUBNET")
                .labels(Map.of("terraform_created", "true"))
                .deletionProtection(true)
                .build());
    
        }
    }
    
    resources:
      my-odbsubnet:
        type: gcp:oracledatabase:OdbSubnet
        properties:
          odbSubnetId: my-odbsubnet
          location: europe-west2
          project: my-project
          odbnetwork: my-odbnetwork
          cidrRange: 10.1.1.0/24
          purpose: CLIENT_SUBNET
          labels:
            terraform_created: 'true'
          deletionProtection: 'true'
    

    Create OdbSubnet Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OdbSubnet(name: string, args: OdbSubnetArgs, opts?: CustomResourceOptions);
    @overload
    def OdbSubnet(resource_name: str,
                  args: OdbSubnetArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def OdbSubnet(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  cidr_range: Optional[str] = None,
                  location: Optional[str] = None,
                  odb_subnet_id: Optional[str] = None,
                  odbnetwork: Optional[str] = None,
                  purpose: Optional[str] = None,
                  deletion_protection: Optional[bool] = None,
                  labels: Optional[Mapping[str, str]] = None,
                  project: Optional[str] = None)
    func NewOdbSubnet(ctx *Context, name string, args OdbSubnetArgs, opts ...ResourceOption) (*OdbSubnet, error)
    public OdbSubnet(string name, OdbSubnetArgs args, CustomResourceOptions? opts = null)
    public OdbSubnet(String name, OdbSubnetArgs args)
    public OdbSubnet(String name, OdbSubnetArgs args, CustomResourceOptions options)
    
    type: gcp:oracledatabase:OdbSubnet
    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 OdbSubnetArgs
    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 OdbSubnetArgs
    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 OdbSubnetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OdbSubnetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OdbSubnetArgs
    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 odbSubnetResource = new Gcp.OracleDatabase.OdbSubnet("odbSubnetResource", new()
    {
        CidrRange = "string",
        Location = "string",
        OdbSubnetId = "string",
        Odbnetwork = "string",
        Purpose = "string",
        DeletionProtection = false,
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
    });
    
    example, err := oracledatabase.NewOdbSubnet(ctx, "odbSubnetResource", &oracledatabase.OdbSubnetArgs{
    	CidrRange:          pulumi.String("string"),
    	Location:           pulumi.String("string"),
    	OdbSubnetId:        pulumi.String("string"),
    	Odbnetwork:         pulumi.String("string"),
    	Purpose:            pulumi.String("string"),
    	DeletionProtection: pulumi.Bool(false),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    var odbSubnetResource = new OdbSubnet("odbSubnetResource", OdbSubnetArgs.builder()
        .cidrRange("string")
        .location("string")
        .odbSubnetId("string")
        .odbnetwork("string")
        .purpose("string")
        .deletionProtection(false)
        .labels(Map.of("string", "string"))
        .project("string")
        .build());
    
    odb_subnet_resource = gcp.oracledatabase.OdbSubnet("odbSubnetResource",
        cidr_range="string",
        location="string",
        odb_subnet_id="string",
        odbnetwork="string",
        purpose="string",
        deletion_protection=False,
        labels={
            "string": "string",
        },
        project="string")
    
    const odbSubnetResource = new gcp.oracledatabase.OdbSubnet("odbSubnetResource", {
        cidrRange: "string",
        location: "string",
        odbSubnetId: "string",
        odbnetwork: "string",
        purpose: "string",
        deletionProtection: false,
        labels: {
            string: "string",
        },
        project: "string",
    });
    
    type: gcp:oracledatabase:OdbSubnet
    properties:
        cidrRange: string
        deletionProtection: false
        labels:
            string: string
        location: string
        odbSubnetId: string
        odbnetwork: string
        project: string
        purpose: string
    

    OdbSubnet Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The OdbSubnet resource accepts the following input properties:

    CidrRange string
    The CIDR range of the subnet.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    OdbSubnetId string
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    Odbnetwork string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Purpose string
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    DeletionProtection bool
    Labels Dictionary<string, string>
    Labels or tags associated with the resource. 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.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    CidrRange string
    The CIDR range of the subnet.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    OdbSubnetId string
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    Odbnetwork string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Purpose string
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    DeletionProtection bool
    Labels map[string]string
    Labels or tags associated with the resource. 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.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    cidrRange String
    The CIDR range of the subnet.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    odbSubnetId String
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    odbnetwork String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    purpose String
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    deletionProtection Boolean
    labels Map<String,String>
    Labels or tags associated with the resource. 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.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    cidrRange string
    The CIDR range of the subnet.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    odbSubnetId string
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    odbnetwork string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    purpose string
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    deletionProtection boolean
    labels {[key: string]: string}
    Labels or tags associated with the resource. 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.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    cidr_range str
    The CIDR range of the subnet.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    odb_subnet_id str
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    odbnetwork str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    purpose str
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    deletion_protection bool
    labels Mapping[str, str]
    Labels or tags associated with the resource. 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.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    cidrRange String
    The CIDR range of the subnet.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    odbSubnetId String
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    odbnetwork String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    purpose String
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    deletionProtection Boolean
    labels Map<String>
    Labels or tags associated with the resource. 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.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OdbSubnet resource produces the following output properties:

    CreateTime string
    The date and time that the OdbNetwork was created.
    EffectiveLabels 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.
    Name string
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    CreateTime string
    The date and time that the OdbNetwork was created.
    EffectiveLabels 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.
    Name string
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    createTime String
    The date and time that the OdbNetwork was created.
    effectiveLabels 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.
    name String
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    createTime string
    The date and time that the OdbNetwork was created.
    effectiveLabels {[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.
    name string
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state string
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    create_time str
    The date and time that the OdbNetwork was created.
    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.
    name str
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state str
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    createTime String
    The date and time that the OdbNetwork was created.
    effectiveLabels 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.
    name String
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED

    Look up Existing OdbSubnet Resource

    Get an existing OdbSubnet 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?: OdbSubnetState, opts?: CustomResourceOptions): OdbSubnet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr_range: Optional[str] = None,
            create_time: Optional[str] = None,
            deletion_protection: Optional[bool] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            odb_subnet_id: Optional[str] = None,
            odbnetwork: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            purpose: Optional[str] = None,
            state: Optional[str] = None) -> OdbSubnet
    func GetOdbSubnet(ctx *Context, name string, id IDInput, state *OdbSubnetState, opts ...ResourceOption) (*OdbSubnet, error)
    public static OdbSubnet Get(string name, Input<string> id, OdbSubnetState? state, CustomResourceOptions? opts = null)
    public static OdbSubnet get(String name, Output<String> id, OdbSubnetState state, CustomResourceOptions options)
    resources:  _:    type: gcp:oracledatabase:OdbSubnet    get:      id: ${id}
    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.
    The following state arguments are supported:
    CidrRange string
    The CIDR range of the subnet.
    CreateTime string
    The date and time that the OdbNetwork was created.
    DeletionProtection bool
    EffectiveLabels 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.
    Labels Dictionary<string, string>
    Labels or tags associated with the resource. 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.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    OdbSubnetId string
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    Odbnetwork string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Purpose string
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    State string
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    CidrRange string
    The CIDR range of the subnet.
    CreateTime string
    The date and time that the OdbNetwork was created.
    DeletionProtection bool
    EffectiveLabels 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.
    Labels map[string]string
    Labels or tags associated with the resource. 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.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    OdbSubnetId string
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    Odbnetwork string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Purpose string
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    State string
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    cidrRange String
    The CIDR range of the subnet.
    createTime String
    The date and time that the OdbNetwork was created.
    deletionProtection Boolean
    effectiveLabels 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.
    labels Map<String,String>
    Labels or tags associated with the resource. 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.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    odbSubnetId String
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    odbnetwork String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    purpose String
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    state String
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    cidrRange string
    The CIDR range of the subnet.
    createTime string
    The date and time that the OdbNetwork was created.
    deletionProtection boolean
    effectiveLabels {[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.
    labels {[key: string]: string}
    Labels or tags associated with the resource. 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.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name string
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    odbSubnetId string
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    odbnetwork string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    purpose string
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    state string
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    cidr_range str
    The CIDR range of the subnet.
    create_time str
    The date and time that the OdbNetwork was created.
    deletion_protection bool
    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.
    labels Mapping[str, str]
    Labels or tags associated with the resource. 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.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name str
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    odb_subnet_id str
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    odbnetwork str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    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.
    purpose str
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    state str
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    cidrRange String
    The CIDR range of the subnet.
    createTime String
    The date and time that the OdbNetwork was created.
    deletionProtection Boolean
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<String>
    Labels or tags associated with the resource. 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.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
    odbSubnetId String
    The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
    odbnetwork String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    purpose String
    Purpose of the subnet. Possible values: CLIENT_SUBNET BACKUP_SUBNET
    state String
    State of the ODB Subnet. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED

    Import

    OdbSubnet can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/odbNetworks/{{odbnetwork}}/odbSubnets/{{odb_subnet_id}}

    • {{project}}/{{location}}/{{odbnetwork}}/{{odb_subnet_id}}

    • {{location}}/{{odbnetwork}}/{{odb_subnet_id}}

    When using the pulumi import command, OdbSubnet can be imported using one of the formats above. For example:

    $ pulumi import gcp:oracledatabase/odbSubnet:OdbSubnet default projects/{{project}}/locations/{{location}}/odbNetworks/{{odbnetwork}}/odbSubnets/{{odb_subnet_id}}
    
    $ pulumi import gcp:oracledatabase/odbSubnet:OdbSubnet default {{project}}/{{location}}/{{odbnetwork}}/{{odb_subnet_id}}
    
    $ pulumi import gcp:oracledatabase/odbSubnet:OdbSubnet default {{location}}/{{odbnetwork}}/{{odb_subnet_id}}
    

    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.
    gcp logo
    Google Cloud v8.40.0 published on Monday, Aug 11, 2025 by Pulumi