You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oci-java-sdkand oci-python-sdk are dual-licensed to you under the Universal Permissive License (UPL) 1.0 or Apache License 2.0. See below for license terms. You may choose either license.
7
+
oci-java-sdk, oci-python-sdk, oci-go-sdk and oci-ruby-sdk are dual-licensed to you under the Universal Permissive License (UPL) 1.0 or Apache License 2.0. See below for license terms. You may choose either license.
8
8
Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
9
9
License: Copies of the Apache License V2 and the Universal Permissive License 1.0 are included at the end of this file.
# Function that creates an object in a bucket in Object Storage using the OCI Java SDK with custom certificate
2
+
3
+
This function uses Resource Principals to securely authorize a function to make
4
+
API calls to OCI services using the [OCI Go SDK](hhttps://docs.oracle.com/en-us/iaas/tools/go/46.1.0/).
5
+
It creates an object in a bucket in Object Storage and returns a message with a status.
6
+
7
+
The function calls the following OCI Go SDK classes:
8
+
*[ResourcePrincipalConfigurationProvider](https://docs.oracle.com/en-us/iaas/tools/go/47.1.0/common/auth/index.html#ResourcePrincipalConfigurationProvider) to authenticate
9
+
*[NewObjectStorageClientWithConfigurationProvider](https://docs.oracle.com/en-us/iaas/tools/go/47.1.0/objectstorage/index.html#NewObjectStorageClientWithConfigurationProvider) to interact with Object Storage
10
+
11
+
As you make your way through this tutorial, look out for this icon .
12
+
Whenever you see it, it's time for you to perform an action.
13
+
14
+
15
+
## Prerequisites
16
+
17
+
1. Before you deploy this sample function, make sure you have run steps A, B
18
+
and C of the [Oracle Functions Quick Start Guide for Cloud Shell](https://www.oracle.com/webfolder/technetwork/tutorials/infographics/oci_functions_cloudshell_quickview/functions_quickview_top/functions_quickview/index.html)
19
+
* A - Set up your tenancy
20
+
* B - Create application
21
+
* C - Set up your Cloud Shell dev environment
22
+
23
+
2. Have your Oracle Object Storage Namespace available. This can be found by
24
+
logging into your [cloud account](https://console.us-ashburn-1.oraclecloud.com/),
25
+
under your user profile, click on your Tenancy. Your Object Storage Namespace
26
+
is shown there.
27
+
28
+
29
+
## List Applications
30
+
31
+
Assuming you have successfully completed the prerequisites, you should see your
32
+
application in the list of applications.
33
+
34
+
```
35
+
fn ls apps
36
+
```
37
+
38
+
39
+
## Create or Update your Dynamic Group
40
+
41
+
In order to use other OCI Services, your function must be part of a dynamic
42
+
group. For information on how to create a dynamic group, refer to the
0 commit comments