如何使用 Rest API 连接到 Oracle 对象存储

huangapple go评论66阅读模式
英文:

How to connect to oracle object storage using Rest API

问题

I am unable to connect to oracle object storage using Rest Api. when I entered the basic Authentication it shows not authenticated. I also tried using post man the same not authenticated/ un authorised error. But I wanted to connect to oracle object storage in VBCS using Rest which authentication method I need to use?

我无法使用Rest API连接到Oracle对象存储。当我使用基本身份验证时,显示为未经身份验证。我还尝试在Postman中使用相同的方式,也出现了未经身份验证/未经授权的错误。但我想要在VBCS中使用Rest连接到Oracle对象存储,我需要使用哪种身份验证方法?

I tried connecting to object storage using basic authentication, is there any headers I need to use to connect ton object storage using Rest api. I referred this blog https://blogs.oracle.com/vbcs/post/upload-download-files-from-oci-storage-visual-builder for connecting to object storage to download a file but in this blog the bucket is public, if i have my bucket as private how to connect to it.

我尝试使用基本身份验证连接到对象存储,是否需要使用任何标头来使用Rest API连接到对象存储?我参考了这篇博客https://blogs.oracle.com/vbcs/post/upload-download-files-from-oci-storage-visual-builder来连接到对象存储以下载文件,但在这篇博客中,存储桶是公开的,如果我的存储桶是私有的,如何连接到它?

This is my Rest API url : https://objectstorage.us-ashburn-1.oraclecloud.com/n/{namespaceName}/b/{bucketName}/o/{objectName}

这是我的Rest API网址:https://objectstorage.us-ashburn-1.oraclecloud.com/n/{namespaceName}/b/{bucketName}/o/{objectName}

Is this correct ot need to change anything please guide me as step by step

这是正确的,还是需要更改任何内容,请逐步指导我。

英文:

I am unable to connect to oracle object storage using Rest Api. when I entered the basic Authentication it shows not authenticated. I also tried using post man the same not authenticated/ un authorised error. But I wanted to connect to oracle object storage in VBCS using Rest which authentication method I need to use?

I tried connecting to object storage using basic authentication, is there any headers I need to use to connect ton object storage using Rest api. I referred this blog https://blogs.oracle.com/vbcs/post/upload-download-files-from-oci-storage-visual-builder
for connecting to object storage to download a file but in this blog the bucket is public, if i have my bucket as private how to connect to it.

This is my Rest API url : https://objectstorage.us-ashburn-1.oraclecloud.com/n/{namespaceName}/b/{bucketName}/o/{objectName}

Is this correct ot need to change anything please guide me as step by step

答案1

得分: 1

所有Oracle Cloud Infrastructure API请求必须进行签名以进行身份验证。更多详细信息在此

你所提到的帖子使用了一个公共存储桶,但这不被推荐。如果你不想对API请求进行签名,我建议使用PAR(预授权请求)。

英文:

All Oracle Cloud Infrastructure API requests must be signed for authentication purposes. More details here

The post you referred to uses a public bucket but is not recommended. If you do not want to sign the API request, I'd advise using a PAR (Pre-Authenticated Request).

答案2

得分: 0

Visual Builder 中有一个专门用于 OCI 的身份验证类型,它使用私钥。
查看 https://blogs.oracle.com/vbcs/post/using-oci-api-signature-authentication-from-visual-builder

英文:

There is a specific auth type for OCI in Visual Builder that uses the private key.
Check out https://blogs.oracle.com/vbcs/post/using-oci-api-signature-authentication-from-visual-builder

huangapple
  • 本文由 发表于 2023年3月7日 17:25:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/75660088.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定