ListVcns

get

/20160918/vcns

List the virtual cloud networks (VCNs) in the specified compartment.

Request

Supported Media Types
Query Parameters
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the compartment.
  • Minimum Length: 1
    Maximum Length: 255
    A filter to return only resources that match the entire display name given.
  • A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
  • Minimum Value: 1
    Maximum Value: 1000
    For list pagination. The maximum number of results per page, or items to return in a paginated List call. 1 is the minimum, 1000 is the maximum.
    Default Value: 100
  • Minimum Length: 1
    Maximum Length: 512
    For list pagination. The value of the opc-next-page response header from the previous List call.
    Default Value: oracle.doceng.json.BetterJsonNull@2c07545f
  • The optional field to sort the results by.
    Default Value: NAME
    Allowed Values: [ "ID", "NAME", "TIME_CREATED" ]
  • The sort order to use, either ascending (ASC) or descending (DESC).
    Allowed Values: [ "ASC", "DESC" ]
Back to Top

Response

Supported Media Types

200 Response

The list is being retrieved.
Headers
  • For list pagination. When this header appears in the response, additional pages of results remain. Use this value as the page parameter to get the next page of items.
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : Vcn
Type: object
A virtual cloud network (VCN).
Show Source
  • byoipv6CidrBlocks
    Unique Items Required: true
    The list of BYOIPv6 CIDR blocks required to create a VCN that uses BYOIPv6 ranges.
  • Minimum Length: 1
    Maximum Length: 32
    Deprecated. The first CIDR IP address from cidrBlocks. Example: 172.16.0.0/16
  • cidrBlocks
    Maximum Number of Items: 5
    Unique Items Required: true
    The list of IPv4 CIDR blocks the VCN will use.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the compartment containing the VCN.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID for the VCN's default set of DHCP options.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID for the VCN's default route table.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID for the VCN's default security list.
  • definedTags
    Additional Properties Allowed: additionalProperties
    Defined tags for this resource. Each key is predefined and scoped to a namespace.
  • Minimum Length: 1
    Maximum Length: 255
    A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information.
  • Minimum Length: 1
    Maximum Length: 15
    A DNS label for the VCN, used in conjunction with the VNIC's hostname and subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC within this subnet (for example, bminstance-1.subnet123.vcn1.oraclevcn.com). Must be an alphanumeric string that begins with a letter. The value cannot be changed. The absence of this parameter means the Internet and VCN Resolver will not work for this VCN. Example: vcn1
  • freeformTags
    Additional Properties Allowed: additionalProperties
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
  • Minimum Length: 1
    Maximum Length: 255
    The VCN's OCID.
  • Minimum Length: 1
    Maximum Length: 45
    To be deprecated.
  • ipv6CidrBlocks
    Maximum Number of Items: 1
    Unique Items Required: true
    For an IPv6-enabled VCN, this is the list of IPv6 CIDR blocks for the VCN's IP address space. The CIDRs are provided by Oracle and the sizes are always /56.
  • ipv6PrivateCidrBlocks
    Unique Items Required: true
    For an IPv6-enabled VCN, this is the list of Private IPv6 CIDR blocks for the VCN's IP address space.
  • Minimum Length: 1
    Maximum Length: 45
    To be deprecated.
  • Allowed Values: [ "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING" ]
    The VCN's current state.
  • The date and time the VCN was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
  • Minimum Length: 1
    Maximum Length: 253
    The VCN's domain name, which consists of the VCN's DNS label, and the domain. Example: vcn1.oraclevcn.com
Nested Schema : byoipv6CidrBlocks
Type: array
Unique Items Required: true
The list of BYOIPv6 CIDR blocks required to create a VCN that uses BYOIPv6 ranges.
Show Source
Nested Schema : cidrBlocks
Type: array
Maximum Number of Items: 5
Unique Items Required: true
The list of IPv4 CIDR blocks the VCN will use.
Show Source
Nested Schema : definedTags
Type: object
Additional Properties Allowed
Show Source
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Nested Schema : freeformTags
Type: object
Additional Properties Allowed
Show Source
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
Nested Schema : ipv6CidrBlocks
Type: array
Maximum Number of Items: 1
Unique Items Required: true
For an IPv6-enabled VCN, this is the list of IPv6 CIDR blocks for the VCN's IP address space. The CIDRs are provided by Oracle and the sizes are always /56.
Show Source
Nested Schema : ipv6PrivateCidrBlocks
Type: array
Unique Items Required: true
For an IPv6-enabled VCN, this is the list of Private IPv6 CIDR blocks for the VCN's IP address space.
Show Source
Nested Schema : additionalProperties
Type: object
Additional Properties Allowed
Show Source
Key-value pair representing a defined tag key and value, scoped to a namespace.
Nested Schema : additionalProperties
Type: object
The value of the tag. Only the String type is supported.

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

Default Response

An error has occurred.
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
Back to Top