gcp.oracledatabase.OdbSubnet
Explore with Pulumi AI
An OdbSubnet resource which represents a subnet under an OdbNetwork.
To get more information about OdbSubnet, see:
- How-to Guides
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:
- Cidr
Range 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. - Odb
Subnet stringId - 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
- Deletion
Protection 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.
- Cidr
Range 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. - Odb
Subnet stringId - 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
- Deletion
Protection 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.
- cidr
Range 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. - odb
Subnet StringId - 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
- deletion
Protection 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.
- cidr
Range 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. - odb
Subnet stringId - 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
- deletion
Protection 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_ strid - 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.
- cidr
Range 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. - odb
Subnet StringId - 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
- deletion
Protection 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:
- Create
Time string - The date and time that the OdbNetwork was created.
- 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.
- Name string
- Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
- Pulumi
Labels 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
- Create
Time string - The date and time that the OdbNetwork was created.
- 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.
- Name string
- Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
- Pulumi
Labels 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
- create
Time String - The date and time that the OdbNetwork was created.
- 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.
- name String
- Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
- pulumi
Labels 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
- create
Time string - The date and time that the OdbNetwork was created.
- 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.
- name string
- Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
- pulumi
Labels {[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
- create
Time String - The date and time that the OdbNetwork was created.
- 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.
- name String
- Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
- pulumi
Labels 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.
- Cidr
Range string - The CIDR range of the subnet.
- Create
Time string - The date and time that the OdbNetwork was created.
- Deletion
Protection bool - 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.
- 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}
- Odb
Subnet stringId - 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.
- Pulumi
Labels 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
- Cidr
Range string - The CIDR range of the subnet.
- Create
Time string - The date and time that the OdbNetwork was created.
- Deletion
Protection bool - 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.
- 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}
- Odb
Subnet stringId - 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.
- Pulumi
Labels 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
- cidr
Range String - The CIDR range of the subnet.
- create
Time String - The date and time that the OdbNetwork was created.
- deletion
Protection Boolean - 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.
- 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}
- odb
Subnet StringId - 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.
- pulumi
Labels 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
- cidr
Range string - The CIDR range of the subnet.
- create
Time string - The date and time that the OdbNetwork was created.
- deletion
Protection boolean - 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.
- 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}
- odb
Subnet stringId - 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.
- pulumi
Labels {[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_ strid - 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
- cidr
Range String - The CIDR range of the subnet.
- create
Time String - The date and time that the OdbNetwork was created.
- deletion
Protection Boolean - 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.
- 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}
- odb
Subnet StringId - 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.
- pulumi
Labels 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.