Suitable users and groups to create and access API gateway and network resources might exist already. If so, skip forward to the next task. If not, log in to the Console as a tenancy administrator and under Governance and Administration, go to Identity, and then:
See documentation for more details.
A suitable compartment in which to create API Gateway resources and network resources might already exist. If so, skip forward to the next task. If not, log in to the Console as a tenancy administrator and under Governance and Administration, go to Identity, and then:
See documentation for more details.
To ensure high availability, API gateways can only be created in regional subnets (not AD-specific subnets). A suitable VCN with a regional public subnet might already exist. If so, skip forward to the next task. If not, log in to the Console as a tenancy administrator and under Core Infrastructure, go to Networking, and then:
Click Next to review the details you entered for the new VCN, and click Create to create it. When the VCN has been created, click View Virtual Cloud Network to see the new VCN and the subnets that have been created.
The API Gateway communicates on port 443, which is not open by default. You have to add a new stateful ingress rule for the public regional subnet to allow traffic on port 443.
Click the name of the public regional subnet, then the name of the default security list, and then click Add Ingress Rules. Specify:
Click Add Ingress Rules to add the new rule to the default security list.
See documentation for more details.
Log in to the Console as a tenancy administrator and under Governance and Administration, go to Identity and click Policies, and then:
Create policies to give API developers access:
Select the compartment that will own API Gateway-related resources and create a policy with one policy statement to enable API developers to access all API Gateway-related resources in that compartment:
Allow group <group-name> to manage api-gateway-family in compartment <compartment-name>
Select the compartment that owns the network resources to use with API Gateway and create a policy with one policy statement to enable API developers to access those network resources when creating API gateways:
Allow group <group-name> to manage virtual-network-family in compartment <compartment-name>
Note: The above policies are sufficient to enable you to create an API deployment with an HTTP back end, as suggested in this QuickStart. To enable API developers to create API deployments with Oracle Functions functions as back ends, you enter additional policies (as described in the documentation).
See documentation for more details.
Log in to the Console as an API Gateway developer and under Solutions and Platform, go to Developer Services and click API Gateway, and then:
Click Create Gateway and specify:
Click Create.
When the new API gateway has been created, it is shown as Active in the list on the Gateways page.
See documentation for more details.
Click From Scratch and in the Basic Information section, specify:
Click Next and in the Route 1 section, specify:
Click Next to review the details you entered for the new API deployment, and click Create to create it.
When the new API deployment has been created, it is shown as Active in the list of API deployments.
See documentation for more details.
Open a terminal window and call the API by entering:
$ curl -k -X GET <deployment-endpoint>
where <deployment-endpoint> is the endpoint that you copied in the previous step. For example, https://lak...sjd.apigateway.us-phoenix-1.oci.customer-oci.com/v1/hello
Congratulations! You've just created your first API gateway and API deployment, and called your first API using the API Gateway service!
See documentation for more details.
Now that you've created, deployed, and called an API, read the documentation to find out more about:
See: User Guide (HTML and PDF), cloud.oracle.com
See events.oracle.com, blogs.oracle.com
See Customer Community, Forums
About Oracle | Contact Us | Legal Notices | Terms of Use | Your Privacy Rights | Sustainability
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.