SlideShare ist ein Scribd-Unternehmen logo
1 von 17
November 2021
OCI API & SDK –
POWERING THE AUTOMATION OF REGULAR TASKS
Phil Wilkins
Tech Evangelist & Ace Director
Phil.Wilkins@capgemini.com
uk.linkedin.com/in/philWilkins
@MP3Monster
blog.mp3monster.org / phil-wilkins.uk
Oracle-integration.cloud /
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 2
© Capgemini / Phil Wilkins. 2021. All rights reserved |
THE ABOUT ME …
https://blog.mp3monster.org/
publication-contributions/
Me in 5:
• Husband, Father, Blogger & Author
• Technical Architect, Tech Evangelist
• Work for Capgemini UK as part of a multi
award winning team
• Work with primarily open source + Oracle
middleware
• Know more – mp3monster.org
https://bit.ly/FluentdBook
https://bit.ly/ImplementingAPI
https://oracle-integration.cloud
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 3
© Capgemini / Phil Wilkins. 2021. All rights reserved |
CAPGEMINI IS ONE OF THE WORLD'S LARGEST CONSULTING, TECHNOLOGY, AND
OUTSOURCING FIRMS & A GLOBAL “FULL SERVICE” BUSINESS TRANSFORMATION PROVIDER
Group Workforce: 200,000+ Globally
Asia Pacific
Latin America
Canada
United States
Mexico
Brazil
Argentina
Europe
Morocco
Australia
People’s Republic of China
India
Chile
Guatemala
Russia
Singapore
Hong Kong
North
America
UK & Ireland
Nordics
Benelux
“It is the quality of our people, and their
capacity to deliver fitting solutions, with you
and for you, that drive real business results.”
Across 40+ countries, 100 nationalities
5Businesses
Revenue
12,8
Billion EUR (2017)
Central Europe
Morocco
Net Profit
€1,18B
 Targeting Value
 Mitigating Risk
 Optimising
Capabilities
 Aligning the
Organisation
Elements to
successful
collaboration
Application Services
Infrastructure
Services
Business Process
Outsourcing
Consulting
(Capgemini Consulting)
Local Professional
4
ORACLE OCI
APIS & SDK
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 5
© Capgemini / Phil Wilkins. 2021. All rights reserved |
OCI
APIS
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 6
© Capgemini / Phil Wilkins. 2021. All rights reserved |
API & SDK OPTIONS
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 7
© Capgemini / Phil Wilkins. 2021. All rights reserved |
RESOURCES PROVIDED
API SDKs CLI
• Oracle documentation on
payloads and endpoints -
https://docs.oracle.com/en-
us/iaas/api/#/
• Overview and example
https://docs.oracle.com/en-
us/iaas/Content/API/SDKDocs/p
ythonsdk.htm
• GitHub repository (SDKs are
open source) e.g.
https://github.com/oracle/oci-
python-sdk
• SDK Object documentation
e.g. Python https://oracle-
cloud-infrastructure-python-
sdk.readthedocs.io/en/latest/
• CLI Concepts doc
https://docs.oracle.com/en-
us/iaas/Content/API/Concepts/c
liconcepts.htm
• Predeployed in
• Cloud Shell
• Oracle Linux Cloud Developer
VM image
Can use a powerful SQL like Search (Query) Syntax
 query <resourceType> resources where <conditions> sorted by <fieldName> <order>
 query <resourceType> resources matching <keywords>
The Syntax provides all the common logical operators (e.g., > < = && ), date time templating ( y M d H etc.) and data
types (String, Integer, Boolean , Date-time)
WHY USE API/SDK…
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 9
© Capgemini / Phil Wilkins. 2021. All rights reserved |
Scenarios where using the API/SDK is a better option …
• When Terraform teardown is not an option or ideal option …
• Cleaning up / tearing down scratch / proof of concept environments – dealing with non
Terraformed content (if it’s not visible in the TF State then Terraform wont teardown)
• Configuration drift is acceptable, so using Terraform could create accidental reset (e.g.,
budgets & thresholds, user settings)
• Avoid a plan, apply cycle to ensure you’re not picking up changes
• Setting & resetting test environments (e.g., volume/performance test environments –
full DB creation over truncate and bulk insert)
• Logic needs to be functional not declarative
• Some features can’t be Terraformed
USE CASES FOR API/SDKS
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 10
© Capgemini / Phil Wilkins. 2021. All rights reserved |
Scenarios where using the API/SDK is a better option …
• Automated start and stopping of non-production environments during out of
hours
• Self service automation e.g. new API customers need API tokens that are linked
to an identity and stored in a repository & link identity to correct group
permissions based on services selected
• Replication of user adjusted thresholds (e.g., alerts) between regions (region
level DR) rather than forcing minor acceptable config changes through Terraform
USE CASES FOR API/SDKS
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 11
© Capgemini / Phil Wilkins. 2021. All rights reserved |
Our use case:
• We have a tenancy and want to give our Graduates and those we recruit without cloud experience the
chance to experiment safely, without accidentally running up a large bill
• Non production environments such as ones for Learning don’t need to be available out of hours
• This is mechanism helps us upskill client staff if needed – part of AIP
Our solution:
• We establish the more expensive solutions as a shared resource in a group compartment with limited
privileges
• Each new user gets their own compartment with admin privileges, a budget and policies controlling what
they can and cant do.
• User setup achieved with simple Python app taking user email address
• We have a scheduled job which will shutdown services that have a time element to their costing over night
• Any services not observed to have been running for a period of time are deleted – scheduled tidy up (in
development)
EXAMPLE – AGILE INNOVATION PLATFORM (AIP) NEW DEV SET UP
AIP = https://www.capgemini.com/gb-en/service/capgemini-agile-innovation-platform/
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 12
© Capgemini / Phil Wilkins. 2021. All rights reserved |
request = oci.identity.models.CreateCompartmentDetails()
request.description = app_description
request.name = compartmentname
request.compartment_id = parent_compartment_id
identity = oci.identity.IdentityClient(config_props)
compartment = identity.create_compartment(request)
oci.wait_until(identity, identity.get_compartment(compartment_id),
'lifecycle_state', 'ACTIVE', )
compartment_id = compartment.data.id
Create a new compartment Query to find polices and bulk delete them
query_dictionary = {
QRY_CONST.POLICY: {QRY_CONST.ALL :
"query policy resources where inactiveStatus = 0”},
… }
if (policyname != None):
ocid = (find(policyname, QRY_CONST.POLICY))
if (ocid != None):
delete_list.append(ocid)
…
client = oci.core.IdentityClient(config_props)
client.bulk_delete_resources(compartmentid, delete_list)
INTERESTING CODE FRAGMENTS
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
11
12
Nearly all APIs all for this pattern:
- Use a properties file with details to connect
- Populate an object
- Call operation
Query syntax …
query <resourceType> resources where <conditions>
sorted by <fieldName> <order>
OR
query <resourceType> resources matching <keywords>
My Oracle blog:
https://blogs.oracle.com/cloud-infrastructure/post/automating-developer-setup-in-oci
DEMO TIME
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 14
© Capgemini / Phil Wilkins. 2021. All rights reserved |
• Using the cloud shell, we’re going to list the compute
node in a tenancy.
• List the compute nodes using the same query Syntax
used in the API
CLI Python SDK
Create Policies for an existing user –using our utility
developed with the Python SDK
Python because …
• Capgemini Oracle DU standard
• Linux adopting deployment of Python as standard
• Very portable – platform agnostic
• Can apply the rigorous processes of a bytecode or
compiled language
• Minimal setup for PoC tasks
DEMOS
Security Classification: SEC0: Public
OCI SDK & APIs | Phil Wilkins | November 21 15
© Capgemini / Phil Wilkins. 2021. All rights reserved |
• The CLI’s default is to use JSON, can switch to tabulation
using –output table
• The results of the OCI call can be filtered in different
ways using using JMESPath syntax.
CLI Python SDK
Can develop very effective labour saving tools – for example
controlling all the Grants or driving in a set of new Policies
can be done from a predefined file.
DEMOS - OBSERVATIONS
QUESTIONS?
This presentation contains information that may be privileged or confidential and
is the property of the Capgemini Group.
Copyright © 2021 Capgemini. All rights reserved.
Capgemini is a global leader in partnering with companies to transform and manage their
business by harnessing the power of technology. The Group is guided everyday by its
purpose of unleashing human energy through technology for an inclusive and sustainable
future. It is a responsible and diverse organization of 270,000 team members in nearly 50
countries. With its strong 50 year heritage and deep industry expertise, Capgemini is
trusted by its clients to address the entire breadth of their business needs, from strategy
and design to operations, fuelled by the fast evolving and innovative world of cloud, data,
AI, connectivity, software, digital engineering and platforms. The Group reported in 2020
global revenues of €16 billion.
About Capgemini
Get the Future You Want | www.capgemini.com

Weitere ähnliche Inhalte

Was ist angesagt?

Agile Architecture
Agile Architecture Agile Architecture
Agile Architecture VMware Tanzu
 
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...Commit University
 
Business Value of CI, CD, & DevOps(Sec)
Business Value of CI, CD, & DevOps(Sec)Business Value of CI, CD, & DevOps(Sec)
Business Value of CI, CD, & DevOps(Sec)David Rico
 
Let's build Developer Portal with Backstage
Let's build Developer Portal with BackstageLet's build Developer Portal with Backstage
Let's build Developer Portal with BackstageOpsta
 
A Self-Service API Portal for Developers
A Self-Service API Portal for DevelopersA Self-Service API Portal for Developers
A Self-Service API Portal for DevelopersCA Technologies
 
Practical DevSecOps Course - Part 1
Practical DevSecOps Course - Part 1Practical DevSecOps Course - Part 1
Practical DevSecOps Course - Part 1Mohammed A. Imran
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express pptAbhinaw Kumar
 
IT4IT / DevOps Tooling Landscape 2022
IT4IT / DevOps Tooling Landscape 2022 IT4IT / DevOps Tooling Landscape 2022
IT4IT / DevOps Tooling Landscape 2022 Rob Akershoek
 
Exposing services with Azure API Management
Exposing services with Azure API ManagementExposing services with Azure API Management
Exposing services with Azure API ManagementCallon Campbell
 
Getting started with docker
Getting started with dockerGetting started with docker
Getting started with dockerSaim Safder
 
The never-ending REST API design debate
The never-ending REST API design debateThe never-ending REST API design debate
The never-ending REST API design debateRestlet
 
Microservices Architecture - Cloud Native Apps
Microservices Architecture - Cloud Native AppsMicroservices Architecture - Cloud Native Apps
Microservices Architecture - Cloud Native AppsAraf Karsh Hamid
 
Micro services Architecture
Micro services ArchitectureMicro services Architecture
Micro services ArchitectureAraf Karsh Hamid
 
DevSecOps in Baby Steps
DevSecOps in Baby StepsDevSecOps in Baby Steps
DevSecOps in Baby StepsPriyanka Aash
 
Zero Downtime Deployment
Zero Downtime DeploymentZero Downtime Deployment
Zero Downtime DeploymentJoel Dickson
 
Service discovery with Eureka and Spring Cloud
Service discovery with Eureka and Spring CloudService discovery with Eureka and Spring Cloud
Service discovery with Eureka and Spring CloudMarcelo Serpa
 
Introduction to Kong API Gateway
Introduction to Kong API GatewayIntroduction to Kong API Gateway
Introduction to Kong API GatewayYohann Ciurlik
 

Was ist angesagt? (20)

Agile Architecture
Agile Architecture Agile Architecture
Agile Architecture
 
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
 
Business Value of CI, CD, & DevOps(Sec)
Business Value of CI, CD, & DevOps(Sec)Business Value of CI, CD, & DevOps(Sec)
Business Value of CI, CD, & DevOps(Sec)
 
The State of DevSecOps
The State of DevSecOpsThe State of DevSecOps
The State of DevSecOps
 
Let's build Developer Portal with Backstage
Let's build Developer Portal with BackstageLet's build Developer Portal with Backstage
Let's build Developer Portal with Backstage
 
A Self-Service API Portal for Developers
A Self-Service API Portal for DevelopersA Self-Service API Portal for Developers
A Self-Service API Portal for Developers
 
Practical DevSecOps Course - Part 1
Practical DevSecOps Course - Part 1Practical DevSecOps Course - Part 1
Practical DevSecOps Course - Part 1
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express ppt
 
IT4IT / DevOps Tooling Landscape 2022
IT4IT / DevOps Tooling Landscape 2022 IT4IT / DevOps Tooling Landscape 2022
IT4IT / DevOps Tooling Landscape 2022
 
Exposing services with Azure API Management
Exposing services with Azure API ManagementExposing services with Azure API Management
Exposing services with Azure API Management
 
Getting started with docker
Getting started with dockerGetting started with docker
Getting started with docker
 
The never-ending REST API design debate
The never-ending REST API design debateThe never-ending REST API design debate
The never-ending REST API design debate
 
DEVSECOPS.pptx
DEVSECOPS.pptxDEVSECOPS.pptx
DEVSECOPS.pptx
 
Microservices Architecture - Cloud Native Apps
Microservices Architecture - Cloud Native AppsMicroservices Architecture - Cloud Native Apps
Microservices Architecture - Cloud Native Apps
 
Micro services Architecture
Micro services ArchitectureMicro services Architecture
Micro services Architecture
 
DevSecOps in Baby Steps
DevSecOps in Baby StepsDevSecOps in Baby Steps
DevSecOps in Baby Steps
 
Devops
DevopsDevops
Devops
 
Zero Downtime Deployment
Zero Downtime DeploymentZero Downtime Deployment
Zero Downtime Deployment
 
Service discovery with Eureka and Spring Cloud
Service discovery with Eureka and Spring CloudService discovery with Eureka and Spring Cloud
Service discovery with Eureka and Spring Cloud
 
Introduction to Kong API Gateway
Introduction to Kong API GatewayIntroduction to Kong API Gateway
Introduction to Kong API Gateway
 

Ähnlich wie Oracle OCI APIs and SDK

API Design – More than just a Payload Definition
API Design – More than just a Payload DefinitionAPI Design – More than just a Payload Definition
API Design – More than just a Payload DefinitionPhil Wilkins
 
Cloud standards interoperability: status update on OCCI and CDMI implementations
Cloud standards interoperability: status update on OCCI and CDMI implementationsCloud standards interoperability: status update on OCCI and CDMI implementations
Cloud standards interoperability: status update on OCCI and CDMI implementationsFlorian Feldhaus
 
Automate your oracle cloud infrastructure operations v2.0 - OOW19
Automate your oracle cloud infrastructure operations v2.0 - OOW19Automate your oracle cloud infrastructure operations v2.0 - OOW19
Automate your oracle cloud infrastructure operations v2.0 - OOW19Nelson Calero
 
Oracle CNCF Meetup Malaga - Build CNCF projects in OCI
Oracle CNCF Meetup Malaga - Build CNCF projects in OCIOracle CNCF Meetup Malaga - Build CNCF projects in OCI
Oracle CNCF Meetup Malaga - Build CNCF projects in OCIOracle
 
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...Sanae BEKKAR
 
Cloud Native Application Development - build fast, low TCO, scalable & agile ...
Cloud Native Application Development - build fast, low TCO, scalable & agile ...Cloud Native Application Development - build fast, low TCO, scalable & agile ...
Cloud Native Application Development - build fast, low TCO, scalable & agile ...Lucas Jellema
 
Building and Deploying Cloud Native Applications
Building and Deploying Cloud Native ApplicationsBuilding and Deploying Cloud Native Applications
Building and Deploying Cloud Native ApplicationsManish Kapur
 
Cloud Native Meetup Santa Clara 07-11-2019 by Manish Kapur
Cloud Native Meetup Santa Clara 07-11-2019 by Manish KapurCloud Native Meetup Santa Clara 07-11-2019 by Manish Kapur
Cloud Native Meetup Santa Clara 07-11-2019 by Manish KapurOracle Developers
 
London Oracle Developer Meetup April 18
London Oracle Developer Meetup April 18London Oracle Developer Meetup April 18
London Oracle Developer Meetup April 18Phil Wilkins
 
Api more than payload (2021 Update)
Api more than payload (2021 Update)Api more than payload (2021 Update)
Api more than payload (2021 Update)Phil Wilkins
 
PSOCLD 1007 Cisco Hybrid Cloud Platform for Google Cloud
PSOCLD 1007 Cisco Hybrid Cloud Platform for Google CloudPSOCLD 1007 Cisco Hybrid Cloud Platform for Google Cloud
PSOCLD 1007 Cisco Hybrid Cloud Platform for Google CloudRohit Agarwalla
 
DevOps in a multicloud environment with CloudCenter - Luca Relandini - Codemo...
DevOps in a multicloud environment with CloudCenter - Luca Relandini - Codemo...DevOps in a multicloud environment with CloudCenter - Luca Relandini - Codemo...
DevOps in a multicloud environment with CloudCenter - Luca Relandini - Codemo...Codemotion
 
OGF Cloud Standards: Current status and ongoing interoperability efforts wi...
OGF Cloud Standards: Current status and ongoing interoperability efforts wi...OGF Cloud Standards: Current status and ongoing interoperability efforts wi...
OGF Cloud Standards: Current status and ongoing interoperability efforts wi...Florian Feldhaus
 
Cisco Cloupia uic product overview and demo presentation
Cisco Cloupia uic product overview and demo presentationCisco Cloupia uic product overview and demo presentation
Cisco Cloupia uic product overview and demo presentationxKinAnx
 
PIACERE - DevSecOps Automated
PIACERE - DevSecOps AutomatedPIACERE - DevSecOps Automated
PIACERE - DevSecOps AutomatedPIACERE
 
Simplify DevOps with Microservices and Mobile Backends.pptx
Simplify DevOps with Microservices and Mobile Backends.pptxSimplify DevOps with Microservices and Mobile Backends.pptx
Simplify DevOps with Microservices and Mobile Backends.pptxssuser5faa791
 
Apic dc api deep dive
Apic dc api deep dive Apic dc api deep dive
Apic dc api deep dive Cisco DevNet
 
SUGCON: The Agile Nirvana of DevSecOps and Containerization
SUGCON: The Agile Nirvana of DevSecOps and ContainerizationSUGCON: The Agile Nirvana of DevSecOps and Containerization
SUGCON: The Agile Nirvana of DevSecOps and ContainerizationVasiliy Fomichev
 

Ähnlich wie Oracle OCI APIs and SDK (20)

API Design – More than just a Payload Definition
API Design – More than just a Payload DefinitionAPI Design – More than just a Payload Definition
API Design – More than just a Payload Definition
 
Cloud standards interoperability: status update on OCCI and CDMI implementations
Cloud standards interoperability: status update on OCCI and CDMI implementationsCloud standards interoperability: status update on OCCI and CDMI implementations
Cloud standards interoperability: status update on OCCI and CDMI implementations
 
Automate your oracle cloud infrastructure operations v2.0 - OOW19
Automate your oracle cloud infrastructure operations v2.0 - OOW19Automate your oracle cloud infrastructure operations v2.0 - OOW19
Automate your oracle cloud infrastructure operations v2.0 - OOW19
 
Oracle CNCF Meetup Malaga - Build CNCF projects in OCI
Oracle CNCF Meetup Malaga - Build CNCF projects in OCIOracle CNCF Meetup Malaga - Build CNCF projects in OCI
Oracle CNCF Meetup Malaga - Build CNCF projects in OCI
 
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
 
Cloud Native Application Development - build fast, low TCO, scalable & agile ...
Cloud Native Application Development - build fast, low TCO, scalable & agile ...Cloud Native Application Development - build fast, low TCO, scalable & agile ...
Cloud Native Application Development - build fast, low TCO, scalable & agile ...
 
Building and Deploying Cloud Native Applications
Building and Deploying Cloud Native ApplicationsBuilding and Deploying Cloud Native Applications
Building and Deploying Cloud Native Applications
 
Cloud Native Meetup Santa Clara 07-11-2019 by Manish Kapur
Cloud Native Meetup Santa Clara 07-11-2019 by Manish KapurCloud Native Meetup Santa Clara 07-11-2019 by Manish Kapur
Cloud Native Meetup Santa Clara 07-11-2019 by Manish Kapur
 
London Oracle Developer Meetup April 18
London Oracle Developer Meetup April 18London Oracle Developer Meetup April 18
London Oracle Developer Meetup April 18
 
Api more than payload (2021 Update)
Api more than payload (2021 Update)Api more than payload (2021 Update)
Api more than payload (2021 Update)
 
Cloud Foundry May 1 2014
Cloud Foundry May 1 2014Cloud Foundry May 1 2014
Cloud Foundry May 1 2014
 
PSOCLD 1007 Cisco Hybrid Cloud Platform for Google Cloud
PSOCLD 1007 Cisco Hybrid Cloud Platform for Google CloudPSOCLD 1007 Cisco Hybrid Cloud Platform for Google Cloud
PSOCLD 1007 Cisco Hybrid Cloud Platform for Google Cloud
 
DevOps in a multicloud environment with CloudCenter - Luca Relandini - Codemo...
DevOps in a multicloud environment with CloudCenter - Luca Relandini - Codemo...DevOps in a multicloud environment with CloudCenter - Luca Relandini - Codemo...
DevOps in a multicloud environment with CloudCenter - Luca Relandini - Codemo...
 
OGF Cloud Standards: Current status and ongoing interoperability efforts wi...
OGF Cloud Standards: Current status and ongoing interoperability efforts wi...OGF Cloud Standards: Current status and ongoing interoperability efforts wi...
OGF Cloud Standards: Current status and ongoing interoperability efforts wi...
 
Case Study Telefonica
Case Study TelefonicaCase Study Telefonica
Case Study Telefonica
 
Cisco Cloupia uic product overview and demo presentation
Cisco Cloupia uic product overview and demo presentationCisco Cloupia uic product overview and demo presentation
Cisco Cloupia uic product overview and demo presentation
 
PIACERE - DevSecOps Automated
PIACERE - DevSecOps AutomatedPIACERE - DevSecOps Automated
PIACERE - DevSecOps Automated
 
Simplify DevOps with Microservices and Mobile Backends.pptx
Simplify DevOps with Microservices and Mobile Backends.pptxSimplify DevOps with Microservices and Mobile Backends.pptx
Simplify DevOps with Microservices and Mobile Backends.pptx
 
Apic dc api deep dive
Apic dc api deep dive Apic dc api deep dive
Apic dc api deep dive
 
SUGCON: The Agile Nirvana of DevSecOps and Containerization
SUGCON: The Agile Nirvana of DevSecOps and ContainerizationSUGCON: The Agile Nirvana of DevSecOps and Containerization
SUGCON: The Agile Nirvana of DevSecOps and Containerization
 

Mehr von Phil Wilkins

Is 12 Factor App Right About Logging
Is 12 Factor App Right About LoggingIs 12 Factor App Right About Logging
Is 12 Factor App Right About LoggingPhil Wilkins
 
APIs, STOP Polling, lets go Streaming
APIs, STOP Polling, lets go StreamingAPIs, STOP Polling, lets go Streaming
APIs, STOP Polling, lets go StreamingPhil Wilkins
 
Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...
Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...
Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...Phil Wilkins
 
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)Phil Wilkins
 
API more than payload
API more than payloadAPI more than payload
API more than payloadPhil Wilkins
 
How fluentd fits into the modern software landscape
How fluentd fits into the modern software landscapeHow fluentd fits into the modern software landscape
How fluentd fits into the modern software landscapePhil Wilkins
 
gRPC, GraphQL, REST - Which API Tech to use - API Conference Berlin oct 20
gRPC, GraphQL, REST - Which API Tech to use - API Conference Berlin oct 20gRPC, GraphQL, REST - Which API Tech to use - API Conference Berlin oct 20
gRPC, GraphQL, REST - Which API Tech to use - API Conference Berlin oct 20Phil Wilkins
 
FluentD for end to end monitoring
FluentD for end to end monitoringFluentD for end to end monitoring
FluentD for end to end monitoringPhil Wilkins
 
Meetups - The Oracle Ace Way
Meetups - The Oracle Ace WayMeetups - The Oracle Ace Way
Meetups - The Oracle Ace WayPhil Wilkins
 
Apiary - A Developers Perspective
Apiary - A Developers PerspectiveApiary - A Developers Perspective
Apiary - A Developers PerspectivePhil Wilkins
 
Secrets of Custom API Policies on the Oracle API Platform
Secrets of Custom API Policies on the Oracle API PlatformSecrets of Custom API Policies on the Oracle API Platform
Secrets of Custom API Policies on the Oracle API PlatformPhil Wilkins
 
Oracle London Developer Meetup November 2018
Oracle London Developer Meetup November 2018Oracle London Developer Meetup November 2018
Oracle London Developer Meetup November 2018Phil Wilkins
 
London Oracle Developer Meetup - June 18 - Drones with APIs
London Oracle Developer Meetup - June 18 - Drones with APIsLondon Oracle Developer Meetup - June 18 - Drones with APIs
London Oracle Developer Meetup - June 18 - Drones with APIsPhil Wilkins
 
Oracle Developer Meetup March 2018
Oracle Developer Meetup March 2018Oracle Developer Meetup March 2018
Oracle Developer Meetup March 2018Phil Wilkins
 
OracleDeveloperMeetup - London 19-12-17
OracleDeveloperMeetup - London 19-12-17OracleDeveloperMeetup - London 19-12-17
OracleDeveloperMeetup - London 19-12-17Phil Wilkins
 
Look at Oracle Integration Cloud – its relationship to ICS. Customer use Case...
Look at Oracle Integration Cloud – its relationship to ICS. Customer use Case...Look at Oracle Integration Cloud – its relationship to ICS. Customer use Case...
Look at Oracle Integration Cloud – its relationship to ICS. Customer use Case...Phil Wilkins
 
API Platform Cloud Service best practice - OOW17
API Platform Cloud Service best practice - OOW17API Platform Cloud Service best practice - OOW17
API Platform Cloud Service best practice - OOW17Phil Wilkins
 
Oracle integration cloud service (ICS) best practices learned from the field ...
Oracle integration cloud service (ICS) best practices learned from the field ...Oracle integration cloud service (ICS) best practices learned from the field ...
Oracle integration cloud service (ICS) best practices learned from the field ...Phil Wilkins
 
Oracle ICS Best Practises - 1st Presented at Oracle Partner PaaS Forum by Phi...
Oracle ICS Best Practises - 1st Presented at Oracle Partner PaaS Forum by Phi...Oracle ICS Best Practises - 1st Presented at Oracle Partner PaaS Forum by Phi...
Oracle ICS Best Practises - 1st Presented at Oracle Partner PaaS Forum by Phi...Phil Wilkins
 

Mehr von Phil Wilkins (20)

Is 12 Factor App Right About Logging
Is 12 Factor App Right About LoggingIs 12 Factor App Right About Logging
Is 12 Factor App Right About Logging
 
APIs, STOP Polling, lets go Streaming
APIs, STOP Polling, lets go StreamingAPIs, STOP Polling, lets go Streaming
APIs, STOP Polling, lets go Streaming
 
Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...
Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...
Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...
 
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
 
API more than payload
API more than payloadAPI more than payload
API more than payload
 
How fluentd fits into the modern software landscape
How fluentd fits into the modern software landscapeHow fluentd fits into the modern software landscape
How fluentd fits into the modern software landscape
 
gRPC, GraphQL, REST - Which API Tech to use - API Conference Berlin oct 20
gRPC, GraphQL, REST - Which API Tech to use - API Conference Berlin oct 20gRPC, GraphQL, REST - Which API Tech to use - API Conference Berlin oct 20
gRPC, GraphQL, REST - Which API Tech to use - API Conference Berlin oct 20
 
FluentD for end to end monitoring
FluentD for end to end monitoringFluentD for end to end monitoring
FluentD for end to end monitoring
 
Meetups - The Oracle Ace Way
Meetups - The Oracle Ace WayMeetups - The Oracle Ace Way
Meetups - The Oracle Ace Way
 
Apiary - A Developers Perspective
Apiary - A Developers PerspectiveApiary - A Developers Perspective
Apiary - A Developers Perspective
 
Secrets of Custom API Policies on the Oracle API Platform
Secrets of Custom API Policies on the Oracle API PlatformSecrets of Custom API Policies on the Oracle API Platform
Secrets of Custom API Policies on the Oracle API Platform
 
Terraform
TerraformTerraform
Terraform
 
Oracle London Developer Meetup November 2018
Oracle London Developer Meetup November 2018Oracle London Developer Meetup November 2018
Oracle London Developer Meetup November 2018
 
London Oracle Developer Meetup - June 18 - Drones with APIs
London Oracle Developer Meetup - June 18 - Drones with APIsLondon Oracle Developer Meetup - June 18 - Drones with APIs
London Oracle Developer Meetup - June 18 - Drones with APIs
 
Oracle Developer Meetup March 2018
Oracle Developer Meetup March 2018Oracle Developer Meetup March 2018
Oracle Developer Meetup March 2018
 
OracleDeveloperMeetup - London 19-12-17
OracleDeveloperMeetup - London 19-12-17OracleDeveloperMeetup - London 19-12-17
OracleDeveloperMeetup - London 19-12-17
 
Look at Oracle Integration Cloud – its relationship to ICS. Customer use Case...
Look at Oracle Integration Cloud – its relationship to ICS. Customer use Case...Look at Oracle Integration Cloud – its relationship to ICS. Customer use Case...
Look at Oracle Integration Cloud – its relationship to ICS. Customer use Case...
 
API Platform Cloud Service best practice - OOW17
API Platform Cloud Service best practice - OOW17API Platform Cloud Service best practice - OOW17
API Platform Cloud Service best practice - OOW17
 
Oracle integration cloud service (ICS) best practices learned from the field ...
Oracle integration cloud service (ICS) best practices learned from the field ...Oracle integration cloud service (ICS) best practices learned from the field ...
Oracle integration cloud service (ICS) best practices learned from the field ...
 
Oracle ICS Best Practises - 1st Presented at Oracle Partner PaaS Forum by Phi...
Oracle ICS Best Practises - 1st Presented at Oracle Partner PaaS Forum by Phi...Oracle ICS Best Practises - 1st Presented at Oracle Partner PaaS Forum by Phi...
Oracle ICS Best Practises - 1st Presented at Oracle Partner PaaS Forum by Phi...
 

Kürzlich hochgeladen

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Kürzlich hochgeladen (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Oracle OCI APIs and SDK

  • 1. November 2021 OCI API & SDK – POWERING THE AUTOMATION OF REGULAR TASKS Phil Wilkins Tech Evangelist & Ace Director Phil.Wilkins@capgemini.com uk.linkedin.com/in/philWilkins @MP3Monster blog.mp3monster.org / phil-wilkins.uk Oracle-integration.cloud /
  • 2. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 2 © Capgemini / Phil Wilkins. 2021. All rights reserved | THE ABOUT ME … https://blog.mp3monster.org/ publication-contributions/ Me in 5: • Husband, Father, Blogger & Author • Technical Architect, Tech Evangelist • Work for Capgemini UK as part of a multi award winning team • Work with primarily open source + Oracle middleware • Know more – mp3monster.org https://bit.ly/FluentdBook https://bit.ly/ImplementingAPI https://oracle-integration.cloud
  • 3. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 3 © Capgemini / Phil Wilkins. 2021. All rights reserved | CAPGEMINI IS ONE OF THE WORLD'S LARGEST CONSULTING, TECHNOLOGY, AND OUTSOURCING FIRMS & A GLOBAL “FULL SERVICE” BUSINESS TRANSFORMATION PROVIDER Group Workforce: 200,000+ Globally Asia Pacific Latin America Canada United States Mexico Brazil Argentina Europe Morocco Australia People’s Republic of China India Chile Guatemala Russia Singapore Hong Kong North America UK & Ireland Nordics Benelux “It is the quality of our people, and their capacity to deliver fitting solutions, with you and for you, that drive real business results.” Across 40+ countries, 100 nationalities 5Businesses Revenue 12,8 Billion EUR (2017) Central Europe Morocco Net Profit €1,18B  Targeting Value  Mitigating Risk  Optimising Capabilities  Aligning the Organisation Elements to successful collaboration Application Services Infrastructure Services Business Process Outsourcing Consulting (Capgemini Consulting) Local Professional 4
  • 5. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 5 © Capgemini / Phil Wilkins. 2021. All rights reserved | OCI APIS
  • 6. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 6 © Capgemini / Phil Wilkins. 2021. All rights reserved | API & SDK OPTIONS
  • 7. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 7 © Capgemini / Phil Wilkins. 2021. All rights reserved | RESOURCES PROVIDED API SDKs CLI • Oracle documentation on payloads and endpoints - https://docs.oracle.com/en- us/iaas/api/#/ • Overview and example https://docs.oracle.com/en- us/iaas/Content/API/SDKDocs/p ythonsdk.htm • GitHub repository (SDKs are open source) e.g. https://github.com/oracle/oci- python-sdk • SDK Object documentation e.g. Python https://oracle- cloud-infrastructure-python- sdk.readthedocs.io/en/latest/ • CLI Concepts doc https://docs.oracle.com/en- us/iaas/Content/API/Concepts/c liconcepts.htm • Predeployed in • Cloud Shell • Oracle Linux Cloud Developer VM image Can use a powerful SQL like Search (Query) Syntax  query <resourceType> resources where <conditions> sorted by <fieldName> <order>  query <resourceType> resources matching <keywords> The Syntax provides all the common logical operators (e.g., > < = && ), date time templating ( y M d H etc.) and data types (String, Integer, Boolean , Date-time)
  • 9. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 9 © Capgemini / Phil Wilkins. 2021. All rights reserved | Scenarios where using the API/SDK is a better option … • When Terraform teardown is not an option or ideal option … • Cleaning up / tearing down scratch / proof of concept environments – dealing with non Terraformed content (if it’s not visible in the TF State then Terraform wont teardown) • Configuration drift is acceptable, so using Terraform could create accidental reset (e.g., budgets & thresholds, user settings) • Avoid a plan, apply cycle to ensure you’re not picking up changes • Setting & resetting test environments (e.g., volume/performance test environments – full DB creation over truncate and bulk insert) • Logic needs to be functional not declarative • Some features can’t be Terraformed USE CASES FOR API/SDKS
  • 10. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 10 © Capgemini / Phil Wilkins. 2021. All rights reserved | Scenarios where using the API/SDK is a better option … • Automated start and stopping of non-production environments during out of hours • Self service automation e.g. new API customers need API tokens that are linked to an identity and stored in a repository & link identity to correct group permissions based on services selected • Replication of user adjusted thresholds (e.g., alerts) between regions (region level DR) rather than forcing minor acceptable config changes through Terraform USE CASES FOR API/SDKS
  • 11. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 11 © Capgemini / Phil Wilkins. 2021. All rights reserved | Our use case: • We have a tenancy and want to give our Graduates and those we recruit without cloud experience the chance to experiment safely, without accidentally running up a large bill • Non production environments such as ones for Learning don’t need to be available out of hours • This is mechanism helps us upskill client staff if needed – part of AIP Our solution: • We establish the more expensive solutions as a shared resource in a group compartment with limited privileges • Each new user gets their own compartment with admin privileges, a budget and policies controlling what they can and cant do. • User setup achieved with simple Python app taking user email address • We have a scheduled job which will shutdown services that have a time element to their costing over night • Any services not observed to have been running for a period of time are deleted – scheduled tidy up (in development) EXAMPLE – AGILE INNOVATION PLATFORM (AIP) NEW DEV SET UP AIP = https://www.capgemini.com/gb-en/service/capgemini-agile-innovation-platform/
  • 12. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 12 © Capgemini / Phil Wilkins. 2021. All rights reserved | request = oci.identity.models.CreateCompartmentDetails() request.description = app_description request.name = compartmentname request.compartment_id = parent_compartment_id identity = oci.identity.IdentityClient(config_props) compartment = identity.create_compartment(request) oci.wait_until(identity, identity.get_compartment(compartment_id), 'lifecycle_state', 'ACTIVE', ) compartment_id = compartment.data.id Create a new compartment Query to find polices and bulk delete them query_dictionary = { QRY_CONST.POLICY: {QRY_CONST.ALL : "query policy resources where inactiveStatus = 0”}, … } if (policyname != None): ocid = (find(policyname, QRY_CONST.POLICY)) if (ocid != None): delete_list.append(ocid) … client = oci.core.IdentityClient(config_props) client.bulk_delete_resources(compartmentid, delete_list) INTERESTING CODE FRAGMENTS 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 11 12 Nearly all APIs all for this pattern: - Use a properties file with details to connect - Populate an object - Call operation Query syntax … query <resourceType> resources where <conditions> sorted by <fieldName> <order> OR query <resourceType> resources matching <keywords> My Oracle blog: https://blogs.oracle.com/cloud-infrastructure/post/automating-developer-setup-in-oci
  • 14. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 14 © Capgemini / Phil Wilkins. 2021. All rights reserved | • Using the cloud shell, we’re going to list the compute node in a tenancy. • List the compute nodes using the same query Syntax used in the API CLI Python SDK Create Policies for an existing user –using our utility developed with the Python SDK Python because … • Capgemini Oracle DU standard • Linux adopting deployment of Python as standard • Very portable – platform agnostic • Can apply the rigorous processes of a bytecode or compiled language • Minimal setup for PoC tasks DEMOS
  • 15. Security Classification: SEC0: Public OCI SDK & APIs | Phil Wilkins | November 21 15 © Capgemini / Phil Wilkins. 2021. All rights reserved | • The CLI’s default is to use JSON, can switch to tabulation using –output table • The results of the OCI call can be filtered in different ways using using JMESPath syntax. CLI Python SDK Can develop very effective labour saving tools – for example controlling all the Grants or driving in a set of new Policies can be done from a predefined file. DEMOS - OBSERVATIONS
  • 17. This presentation contains information that may be privileged or confidential and is the property of the Capgemini Group. Copyright © 2021 Capgemini. All rights reserved. Capgemini is a global leader in partnering with companies to transform and manage their business by harnessing the power of technology. The Group is guided everyday by its purpose of unleashing human energy through technology for an inclusive and sustainable future. It is a responsible and diverse organization of 270,000 team members in nearly 50 countries. With its strong 50 year heritage and deep industry expertise, Capgemini is trusted by its clients to address the entire breadth of their business needs, from strategy and design to operations, fuelled by the fast evolving and innovative world of cloud, data, AI, connectivity, software, digital engineering and platforms. The Group reported in 2020 global revenues of €16 billion. About Capgemini Get the Future You Want | www.capgemini.com

Hinweis der Redaktion

  1. 83 API services … Amazon S3 Compatibility (storage) Analytics Announcement Service Anomaly Detection (AI) API Gateway Application Migration (OCI-C  OCI for PaaS) Application Performance Monitoring – Control Plane Application Performance Monitoring Synthetic Monitoring Application Performance Monitoring Trace Explorer Artifacts and Container Images Audit (monitoring of the tenancy) Autoscaling Bastion Big Data Service Blockchain Platform Control Plane Budgets Certificates Service Retrieval Cloud Advisor Cloud Guard Container Engine for Kubernetes Core Services (VCNs, Networking, Compute, Block Volume) Data Catalog Data Flow (Apache Spark) Data Integration Data Labeling Data Labeling Management Data Safe Data Science Database Management Database Migration Database Service DevOps Digital Assistant Service Instance DNS Email Delivery Events File Storage Functions Service Generic Artifacts Content GoldenGate Health Checks Identity and Access Management (users, groups, compartments & policies) Java Management (Fleet management) Languages (AI) Load Balancing Log analytics Logging Ingestion Logging Management Logging Search Management Agent Management Dashboard (tailoring dashboard and other services) Marketplace Service Monitoring MySQL Database Network Load Balancer NoSQL Database Notifications Object Storage Operations Insights Operator Access Control (manage support access to cloud@customer) Cloud Agent Cloud My Services Cloud VMWare Content and Experience Integration Organizations (consolidate OCI tenancies) OS Management Resource Manager Roving Edge (rugged mobile cloud edge devices) Scanning (Vulnerability Scanner) Search Service (search for resources) Service Catalog Service Connector Hub Service Limits Streaming Support Management Usage Vault Key Management Vault Secret Management Vault Secret Retrieval Web Application Acceleration and Security (part of WAF) Web Application Firewall Work Requests (track long running tasks)
  2. Support for CLI Python Java JavaSript / TypeScript Go .Net Ruby PL/SQL And your direct calls
  3. Several factors that will influence your approach Where are you running the calls – CLI for cloud shell or an Oracle VM Is it a repeatable process Is a query or an update
  4. Features that cant be Terraformed …
  5. Features that cant be Terraformed … - When you’re trying things out for the 1st time – often create services, policies etc then need to teardown. But UI deletion will fail if there are dependencies – a API driven util to clean up is ideal – can embody
  6. CLI Build up query oci iam compartment list oci iam compartment list --output table oci iam compartment list --output table --query "data[*].{label:name, desc:description}" Call passing query expression oci search resource structured-search --query-text "QUERY compartment resources" oci search resource structured-search --query-text "QUERY compartment resources where name=paas" Run utility: python3 addUser.py user=phil.wilkins@capgemini.com actiondesc="run by Phil" team=paas config=./connection.properties oci search resource structured-search --query-text "QUERY compartment resources where name=\"paas\""