Stay organized with collectionsSave and categorize content based on your preferences.
This page describes how to view details of an ODB Network and
ODB Subnets.
Before you begin
Make sure that you have the required Identity and Access Management (IAM) roles and
permissions to view details of an ODB Network and ODB Subnets
as described inDeploy Oracle Database@Google Cloud environment.
List ODB Network and ODB Subnets
To list ODB Network and its ODB Subnets in a project, do
the following:
To view ODB Subnets of an ODB Network, click the
ODB Network name, and go to theSubnetssection.
gcloud
Use thegcloud oracle-database odb-networks listcommand to list your
ODB Networks.
gcloud oracle-database odb-networks list \
--project=PROJECT_ID\
--location=REGION
Replace the following:
PROJECT_ID: the ID of your Google Cloud project. If
you're using a Shared VPC, then this is the ID of your host project.
REGION: the region of the ODB Network.
Use thegcloud oracle-database odb-networks odb-subnets listcommand to
list the ODB Subnets of an ODB Network.
gcloud oracle-database odb-networks odb-subnets list \
--project=PROJECT_ID\
--location=REGION\
--odb-network=ODB_NETWORK_ID
Replace the following:
PROJECT_ID: the ID of your Google Cloud project
which contains the ODB Network. If you're using a
Shared VPC, then this is the ID of your host project.
REGION: the region of the ODB Network.
ODB_NETWORK_ID: the ID of the ODB Network to
which the ODB Subnet belongs.
API
To list ODB Networks, run the followingcurlcommand:
PROJECT_ID: the ID of your Google Cloud project
which contains the ODB Network. If you're using a Shared VPC,
then this is the ID of your host project.
REGION: the region of your ODB Network.
ODB_NETWORK_ID: the ID of your ODB Network.
View ODB Network and ODB Subnet details
To view details of an ODB Network and its ODB Subnets, do
the following:
PROJECT_ID: the ID of your Google Cloud project
which contains the ODB Network. If you're using a
Shared VPC, then this is the ID of your host project.
REGION: the region of the ODB Network.
Use thegcloud oracle-database odb-networks odb-subnets getcommand to
view details of an ODB Subnet.
PROJECT_ID: the ID of your Google Cloud project
which contains the ODB Network. If you're using a
Shared VPC, then this is the ID of your host project.
REGION: the region of the ODB Network.
ODB_NETWORK_ID: the ID of the ODB Network to
which the ODB Subnet belongs.
API
To view details of an ODB Network, run the followingcurlcommand:
PROJECT_ID: the ID of your Google Cloud project
which contains the ODB Network. If you're using a Shared VPC,
then this is the ID of your host project.
REGION: the region of your ODB Network.
ODB_NETWORK_ID: the ID of your ODB Network.
To view details of an ODB Subnet, run the followingcurlcommand:
PROJECT_ID: the ID of your Google Cloud project
which contains the ODB Network. If you're using a Shared VPC,
then this is the ID of your host project.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# View ODB Network and ODB Subnet details\n\nThis page describes how to view details of an ODB Network and\nODB Subnets.\n\nBefore you begin\n----------------\n\n- Make sure that you have the required Identity and Access Management (IAM) roles and permissions to view details of an ODB Network and ODB Subnets as described in [Deploy Oracle Database@Google Cloud environment](/oracle/database/docs/setup-oracle-database-environment#deploy-odb-environment).\n\nList ODB Network and ODB Subnets\n--------------------------------\n\nTo list ODB Network and its ODB Subnets in a project, do\nthe following: \n\n### Console\n\n1. Go to the **ODB Network** page.\n\n [Go to ODB Network](https://console.cloud.google.com/oracle/autonomous-databases/)\n\n You can view the list of your ODB Networks.\n2. To view ODB Subnets of an ODB Network, click the\n ODB Network name, and go to the **Subnets** section.\n\n### gcloud\n\nUse the `gcloud oracle-database odb-networks list` command to list your\nODB Networks. \n\n gcloud oracle-database odb-networks list \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of the ODB Network.\n\nUse the `gcloud oracle-database odb-networks odb-subnets list` command to\nlist the ODB Subnets of an ODB Network. \n\n gcloud oracle-database odb-networks odb-subnets list \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e \\\n --odb-network=\u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project which contains the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of the ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of the ODB Network to which the ODB Subnet belongs.\n\n### API\n\nTo list ODB Networks, run the following `curl` command: \n\n```\ncurl -X GET \\\n-H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n-H \"Content-Type: application/json\" \\\n\"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/odbNetworks\"\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of your ODB Network.\n\nTo list ODB Subnets of an ODB Network, run the following\n`curl` command: \n\n```\ncurl -X GET \\\n-H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n-H \"Content-Type: application/json\" \\\n\"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/odbNetworks/ODB_NETWORK_ID/odbSubnets\"\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project which contains the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of your ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of your ODB Network.\n\nView ODB Network and ODB Subnet details\n---------------------------------------\n\nTo view details of an ODB Network and its ODB Subnets, do\nthe following: \n\n### Console\n\n1. Go to the **ODB Network** page.\n\n [Go to ODB Network](https://console.cloud.google.com/oracle/autonomous-databases/)\n2. Click the ODB Network for which you want to view the details.\n\n3. On the **ODB Network details** page, you can view the details of\n the ODB Network.\n\n4. To view the details of the subnets, go to the **Subnets** section.\n\n5. To view change logs, select the **Operations** tab.\n\n### gcloud\n\nUse the `gcloud oracle-database odb-networks get` command to view details\nof an ODB Network. \n\n gcloud oracle-database odb-networks get \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of your ODB Network.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project which contains the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of the ODB Network.\n\nUse the `gcloud oracle-database odb-networks odb-subnets get` command to\nview details of an ODB Subnet. \n\n gcloud oracle-database odb-networks odb-subnets get \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e \\\n --odb-network=\u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e: the ID of the ODB Subnet.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project which contains the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of the ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of the ODB Network to which the ODB Subnet belongs.\n\n### API\n\nTo view details of an ODB Network, run the following `curl` command: \n\n```\ncurl -X GET \\\n-H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n-H \"Content-Type: application/json\" \\\n\"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/odbNetworks/ODB_NETWORK_ID\"\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project which contains the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of your ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of your ODB Network.\n\nTo view details of an ODB Subnet, run the following `curl` command: \n\n```\ncurl -X GET \\\n-H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n-H \"Content-Type: application/json\" \\\n\"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/odbNetworks/ODB_NETWORK_ID/odbSubnets/ODB_SUBNET_ID\"\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project which contains the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of your ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of your ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e: the ID of the ODB Subnet."]]