---
title: "POST /v1/{+parent}/odbSubnets"
method: POST
path: "/v1/{+parent}/odbSubnets"
tags: ["projects"]
---

# POST /v1/{+parent}/odbSubnets

`POST /v1/{+parent}/odbSubnets`

Creates a new ODB Subnet in a given ODB Network.

## Path parameters

- `parent` string, required

## Query parameters

- `odbSubnetId` string
- `requestId` string

## Request body

- OdbSubnet — Represents OdbSubnet resource.
  - `name` string — Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
  - `cidrRange` string — Required. The CIDR range of the subnet.
  - `labels` object — Optional. Labels or tags associated with the resource.
  - `state` 'STATE_UNSPECIFIED' | 'PROVISIONING' | 'AVAILABLE' | 'TERMINATING' | 'FAILED' — Output only. State of the ODB Subnet.
  - `purpose` 'PURPOSE_UNSPECIFIED' | 'CLIENT_SUBNET' | 'BACKUP_SUBNET' — Required. Purpose of the subnet.
  - `createTime` string, google-datetime — Output only. The date and time that the OdbNetwork was created.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/oracledatabase.md) · [All operations](https://skmtc.net/google/apis/oracledatabase/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/oracledatabase/versions/120ce7891e09/schema)
