ListPublicIps

get

/20160918/publicIps

List the PublicIp objects in the specified compartment. You can filter the list by using query parameters.

To list your reserved public IPs:

  • Set scope = REGION (required)
  • Leave the availabilityDomain parameter empty
  • Set lifetime = RESERVED

    To list the ephemeral public IPs assigned to a regional entity such as a NAT gateway:

  • Set scope = REGION (required)
  • Leave the availabilityDomain parameter empty
  • Set lifetime = EPHEMERAL

    To list the ephemeral public IPs assigned to private IPs:

  • Set scope = AVAILABILITY_DOMAIN (required)
  • Set the availabilityDomain parameter to AD-1 (required)
  • Set lifetime = EPHEMERAL

    Note: An ephemeral public IP assigned to a private IP is always in the same availability domain and compartment as the private IP.

  • Request

    Supported Media Types
    Query Parameters
    • The availability domain of the pod shape.
    • Minimum Length: 1
      Maximum Length: 255
      The OCID of the compartment.
    • A filter to return only public IPs that match given lifetime.
      Allowed Values: [ "EPHEMERAL", "RESERVED" ]
    • 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
    • Minimum Length: 1
      Maximum Length: 255
      A filter to return only resources that belong to the given public IP pool.
    • Whether the public IP is regional or specific to a particular availability domain. A regional (REGION) public IP exists within a region and is assigned to a regional entity such as a NatGateway or to a private IP in any availability domain in the region. Reserved public IPs have scope = REGION, as do ephemeral public IPs assigned to a regional entity. An AVAILABILITY_DOMAIN public IP exists within the availability domain of the entity it's assigned to, which is specified by the availabilityDomain property of the public IP object. Ephemeral public IPs that are assigned to private IPs have scope = AVAILABILITY_DOMAIN. Each Private Cloud Appliance has a single availability domain: AD-1.
      Allowed Values: [ "REGION", "AVAILABILITY_DOMAIN" ]
    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
    • PublicIp
      A public IP is a conceptual term that refers to a public IP address and related properties. The publicIp object is the API representation of a public IP. There are two types of public IPs: 1. Ephemeral 2. Reserved
    Nested Schema : PublicIp
    Type: object
    A public IP is a conceptual term that refers to a public IP address and related properties. The publicIp object is the API representation of a public IP. There are two types of public IPs: 1. Ephemeral 2. Reserved
    Show Source
    • Minimum Length: 1
      Maximum Length: 255
      The OCID of the entity the public IP is assigned to, or in the process of being assigned to.
    • Allowed Values: [ "PRIVATE_IP", "NAT_GATEWAY" ]
      The type of entity the public IP is assigned to, or in the process of being assigned to.
    • Minimum Length: 1
      Maximum Length: 255
      The public IP's availability domain. This property is set only for ephemeral public IPs that are assigned to a private IP (when the scope of the public IP is set to AVAILABILITY_DOMAIN). The value is the availability domain of the assigned private IP. Example: AD-1
    • Minimum Length: 1
      Maximum Length: 255
      The OCID of the compartment containing the public IP. For an ephemeral public IP, this is the compartment of its assigned entity (which can be a private IP or a regional entity such as a NAT gateway). For a reserved public IP that is currently assigned, its compartment can be different from the assigned private IP's.
    • definedTags
      Additional Properties Allowed: additionalProperties
      Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations": {"CostCenter": "42"}}
    • Minimum Length: 1
      Maximum Length: 255
      A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    • 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 public IP's OCID.
    • The public IP address of the publicIp object. Example: 203.0.113.2
    • Allowed Values: [ "PROVISIONING", "AVAILABLE", "ASSIGNING", "ASSIGNED", "UNASSIGNING", "UNASSIGNED", "TERMINATING", "TERMINATED" ]
      The public IP's current state.
    • Allowed Values: [ "EPHEMERAL", "RESERVED" ]
      Defines when the public IP is deleted and released back to the public IP pool. EPHEMERAL: The lifetime is tied to the lifetime of its assigned entity. An ephemeral public IP must always be assigned to an entity. If the assigned entity is a private IP, the ephemeral public IP is automatically deleted when the private IP is deleted, when the VNIC is terminated, or when the instance is terminated. If the assigned entity is a NatGateway, the ephemeral public IP is automatically deleted when the NAT gateway is terminated. RESERVED: You control the public IP's lifetime. You can delete a reserved public IP whenever you like. It does not need to be assigned to a private IP at all times.
    • Minimum Length: 1
      Maximum Length: 255
      Deprecated. Use assignedEntityId instead. The OCID of the private IP that the public IP is currently assigned to, or in the process of being assigned to. Note: This is null if the public IP is not assigned to a private IP, or is in the process of being assigned to one.
    • Minimum Length: 1
      Maximum Length: 255
      The OCID of the pool object created in the current tenancy.
    • Allowed Values: [ "REGION", "AVAILABILITY_DOMAIN" ]
      Whether the public IP is regional or specific to a particular availability domain. REGION - The public IP exists within a region and is assigned to a regional entity (such as a NatGateway), or can be assigned to a private IP in any availability domain in the region. Reserved public IPs and ephemeral public IPs assigned to a regional entity have scope = REGION. AVAILABILITY_DOMAIN - The public IP exists within the availability domain of the entity it's assigned to, which is specified by the availabilityDomain property of the public IP object. Ephemeral public IPs that are assigned to private IPs have scope = AVAILABILITY_DOMAIN.
    • The date and time the public IP was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
    Nested Schema : definedTags
    Type: object
    Additional Properties Allowed
    Show Source
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations": {"CostCenter": "42"}}
    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 : additionalProperties
    Type: object
    Additional Properties Allowed
    Show Source
    Key-value pair representing a defined tag key and value, scoped to a namespace. Example: {"CostCenter": "42"}
    Nested Schema : additionalProperties
    Type: object
    The value of the tag. Only the String type is supported.

    400 Response

    Bad Request
    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

    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