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

gcp.oracledatabase.OdbNetwork

Explore with Pulumi AI

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

    An OdbNetwork resource which represents a private network providing connectivity between OracleDatabase resources and Google Cloud VPC network.

    To get more information about OdbNetwork, see:

    Example Usage

    Oracledatabase Odbnetwork

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = gcp.compute.getNetwork({
        name: "new",
        project: "my-project",
    });
    const my_odbnetwork = new gcp.oracledatabase.OdbNetwork("my-odbnetwork", {
        odbNetworkId: "my-odbnetwork",
        location: "us-west3",
        project: "my-project",
        network: _default.then(_default => _default.id),
        labels: {
            terraform_created: "true",
        },
        deletionProtection: true,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.get_network(name="new",
        project="my-project")
    my_odbnetwork = gcp.oracledatabase.OdbNetwork("my-odbnetwork",
        odb_network_id="my-odbnetwork",
        location="us-west3",
        project="my-project",
        network=default.id,
        labels={
            "terraform_created": "true",
        },
        deletion_protection=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
    	"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 {
    		_default, err := compute.LookupNetwork(ctx, &compute.LookupNetworkArgs{
    			Name:    "new",
    			Project: pulumi.StringRef("my-project"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = oracledatabase.NewOdbNetwork(ctx, "my-odbnetwork", &oracledatabase.OdbNetworkArgs{
    			OdbNetworkId: pulumi.String("my-odbnetwork"),
    			Location:     pulumi.String("us-west3"),
    			Project:      pulumi.String("my-project"),
    			Network:      pulumi.String(_default.Id),
    			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 @default = Gcp.Compute.GetNetwork.Invoke(new()
        {
            Name = "new",
            Project = "my-project",
        });
    
        var my_odbnetwork = new Gcp.OracleDatabase.OdbNetwork("my-odbnetwork", new()
        {
            OdbNetworkId = "my-odbnetwork",
            Location = "us-west3",
            Project = "my-project",
            Network = @default.Apply(@default => @default.Apply(getNetworkResult => getNetworkResult.Id)),
            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.compute.ComputeFunctions;
    import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
    import com.pulumi.gcp.oracledatabase.OdbNetwork;
    import com.pulumi.gcp.oracledatabase.OdbNetworkArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var default = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
                .name("new")
                .project("my-project")
                .build());
    
            var my_odbnetwork = new OdbNetwork("my-odbnetwork", OdbNetworkArgs.builder()
                .odbNetworkId("my-odbnetwork")
                .location("us-west3")
                .project("my-project")
                .network(default_.id())
                .labels(Map.of("terraform_created", "true"))
                .deletionProtection(true)
                .build());
    
        }
    }
    
    resources:
      my-odbnetwork:
        type: gcp:oracledatabase:OdbNetwork
        properties:
          odbNetworkId: my-odbnetwork
          location: us-west3
          project: my-project
          network: ${default.id}
          labels:
            terraform_created: 'true'
          deletionProtection: 'true'
    variables:
      default:
        fn::invoke:
          function: gcp:compute:getNetwork
          arguments:
            name: new
            project: my-project
    

    Create OdbNetwork Resource

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

    Constructor syntax

    new OdbNetwork(name: string, args: OdbNetworkArgs, opts?: CustomResourceOptions);
    @overload
    def OdbNetwork(resource_name: str,
                   args: OdbNetworkArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def OdbNetwork(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   location: Optional[str] = None,
                   network: Optional[str] = None,
                   odb_network_id: Optional[str] = None,
                   deletion_protection: Optional[bool] = None,
                   labels: Optional[Mapping[str, str]] = None,
                   project: Optional[str] = None)
    func NewOdbNetwork(ctx *Context, name string, args OdbNetworkArgs, opts ...ResourceOption) (*OdbNetwork, error)
    public OdbNetwork(string name, OdbNetworkArgs args, CustomResourceOptions? opts = null)
    public OdbNetwork(String name, OdbNetworkArgs args)
    public OdbNetwork(String name, OdbNetworkArgs args, CustomResourceOptions options)
    
    type: gcp:oracledatabase:OdbNetwork
    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 OdbNetworkArgs
    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 OdbNetworkArgs
    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 OdbNetworkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OdbNetworkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OdbNetworkArgs
    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 odbNetworkResource = new Gcp.OracleDatabase.OdbNetwork("odbNetworkResource", new()
    {
        Location = "string",
        Network = "string",
        OdbNetworkId = "string",
        DeletionProtection = false,
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
    });
    
    example, err := oracledatabase.NewOdbNetwork(ctx, "odbNetworkResource", &oracledatabase.OdbNetworkArgs{
    	Location:           pulumi.String("string"),
    	Network:            pulumi.String("string"),
    	OdbNetworkId:       pulumi.String("string"),
    	DeletionProtection: pulumi.Bool(false),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    var odbNetworkResource = new OdbNetwork("odbNetworkResource", OdbNetworkArgs.builder()
        .location("string")
        .network("string")
        .odbNetworkId("string")
        .deletionProtection(false)
        .labels(Map.of("string", "string"))
        .project("string")
        .build());
    
    odb_network_resource = gcp.oracledatabase.OdbNetwork("odbNetworkResource",
        location="string",
        network="string",
        odb_network_id="string",
        deletion_protection=False,
        labels={
            "string": "string",
        },
        project="string")
    
    const odbNetworkResource = new gcp.oracledatabase.OdbNetwork("odbNetworkResource", {
        location: "string",
        network: "string",
        odbNetworkId: "string",
        deletionProtection: false,
        labels: {
            string: "string",
        },
        project: "string",
    });
    
    type: gcp:oracledatabase:OdbNetwork
    properties:
        deletionProtection: false
        labels:
            string: string
        location: string
        network: string
        odbNetworkId: string
        project: string
    

    OdbNetwork 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 OdbNetwork resource accepts the following input properties:

    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.
    Network string
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    OdbNetworkId string
    The ID of the OdbNetwork 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.
    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.
    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.
    Network string
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    OdbNetworkId string
    The ID of the OdbNetwork 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.
    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.
    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.
    network String
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    odbNetworkId String
    The ID of the OdbNetwork 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.
    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.
    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.
    network string
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    odbNetworkId string
    The ID of the OdbNetwork 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.
    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.
    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.
    network str
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    odb_network_id str
    The ID of the OdbNetwork 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.
    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.
    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.
    network String
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    odbNetworkId String
    The ID of the OdbNetwork 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.
    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 OdbNetwork 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.
    EntitlementId string
    The ID of the subscription entitlement associated with the OdbNetwork.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    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 Network. 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.
    EntitlementId string
    The ID of the subscription entitlement associated with the OdbNetwork.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    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 Network. 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.
    entitlementId String
    The ID of the subscription entitlement associated with the OdbNetwork.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    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 Network. 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.
    entitlementId string
    The ID of the subscription entitlement associated with the OdbNetwork.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    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 Network. 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.
    entitlement_id str
    The ID of the subscription entitlement associated with the OdbNetwork.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    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 Network. 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.
    entitlementId String
    The ID of the subscription entitlement associated with the OdbNetwork.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    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 Network. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED

    Look up Existing OdbNetwork Resource

    Get an existing OdbNetwork 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?: OdbNetworkState, opts?: CustomResourceOptions): OdbNetwork
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            deletion_protection: Optional[bool] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            entitlement_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            network: Optional[str] = None,
            odb_network_id: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            state: Optional[str] = None) -> OdbNetwork
    func GetOdbNetwork(ctx *Context, name string, id IDInput, state *OdbNetworkState, opts ...ResourceOption) (*OdbNetwork, error)
    public static OdbNetwork Get(string name, Input<string> id, OdbNetworkState? state, CustomResourceOptions? opts = null)
    public static OdbNetwork get(String name, Output<String> id, OdbNetworkState state, CustomResourceOptions options)
    resources:  _:    type: gcp:oracledatabase:OdbNetwork    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:
    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.
    EntitlementId string
    The ID of the subscription entitlement associated with the OdbNetwork.
    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 OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    Network string
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    OdbNetworkId string
    The ID of the OdbNetwork 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.
    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.
    State string
    State of the ODB Network. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    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.
    EntitlementId string
    The ID of the subscription entitlement associated with the OdbNetwork.
    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 OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    Network string
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    OdbNetworkId string
    The ID of the OdbNetwork 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.
    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.
    State string
    State of the ODB Network. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    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.
    entitlementId String
    The ID of the subscription entitlement associated with the OdbNetwork.
    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 OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    network String
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    odbNetworkId String
    The ID of the OdbNetwork 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.
    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.
    state String
    State of the ODB Network. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    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.
    entitlementId string
    The ID of the subscription entitlement associated with the OdbNetwork.
    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 OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    network string
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    odbNetworkId string
    The ID of the OdbNetwork 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.
    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.
    state string
    State of the ODB Network. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    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.
    entitlement_id str
    The ID of the subscription entitlement associated with the OdbNetwork.
    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 OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    network str
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    odb_network_id str
    The ID of the OdbNetwork 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.
    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.
    state str
    State of the ODB Network. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED
    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.
    entitlementId String
    The ID of the subscription entitlement associated with the OdbNetwork.
    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 OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
    network String
    The name of the VPC network in the following format: projects/{project}/global/networks/{network}
    odbNetworkId String
    The ID of the OdbNetwork 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.
    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.
    state String
    State of the ODB Network. Possible values: PROVISIONING AVAILABLE TERMINATING FAILED

    Import

    OdbNetwork can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/odbNetworks/{{odb_network_id}}

    • {{project}}/{{location}}/{{odb_network_id}}

    • {{location}}/{{odb_network_id}}

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

    $ pulumi import gcp:oracledatabase/odbNetwork:OdbNetwork default projects/{{project}}/locations/{{location}}/odbNetworks/{{odb_network_id}}
    
    $ pulumi import gcp:oracledatabase/odbNetwork:OdbNetwork default {{project}}/{{location}}/{{odb_network_id}}
    
    $ pulumi import gcp:oracledatabase/odbNetwork:OdbNetwork default {{location}}/{{odb_network_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