Create an IP Reservation
/paas/api/v1.1/network/{identityDomainId}/services/SOA/ipreservations
Creates an IP reservation for Oracle SOA Cloud Service in the identity domain. Only one IP reservation can be created at a time. If a create activity is already in progress, you cannot initiate another create request.
Request
- application/json
-
identityDomainId: string
Identity domain ID for the Oracle SOA Cloud Service account.
-
X-ID-TENANT-NAME: string
Identity domain ID for the Oracle SOA Cloud Service account.
object
-
ipResName:
string
Name of the IP reservation to create.
-
networkType(optional):
string
Indicates whether the IP reservation is for instances attached to IP networks or the shared network.
- If you intend to assign this reservation to an instance attached to an IP network, then specify
IPNetwork
. - If you intend to use this reservation for an instance attached to the shared network, then omit this parameter.
- If you intend to assign this reservation to an instance attached to an IP network, then specify
-
region:
string
Name of the region to create the IP reservation in.
Response
202 Response
The Location
header returns a URI that can be used to view the job status, as described in View the Status of an Operation by Job Id.
object
-
computeSite:
string
Location of the IP reservation.
-
ipResName:
string
Name of the IP reservation.
-
jobId:
string
Job ID of the create operation.
Examples
The following example shows how to create an IP reservation by submitting a POST request on the REST resource using cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the REST server to contact for your identity domain (or Cloud account). See Send Requests.
cURL Command
curl -i -X POST -u username:Password! -d @createip.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/network/ExampleIdentityDomain/services/soa/ipreservations
Example of Request Body
The following example shows the contents of the request body in JSON format. Both attributes are mandatory.
{
"ipResName":"ipres03",
"region":"uscom-central-1"
}
Example of Response Header
The following example shows the response header. The Location
header returns the URI that can be used to view the job status. See View the Status of an Operation by Job Id.
HTTP/1.1 202 Accepted
Date: Wed, 22 Nov 2021 21:23:23 GMT
Location: https://rest_server_url/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/1450657
Content-Type: application/json
Example of Response Body
The following example shows the response body in JSON format.
{
"jobId":"1450657",
"ipResName":"ipres03",
"computeSite":"uscom-central-1"
}