How OSS obtains the bucket and endpoint of Alibaba Cloud

How to obtain the bucket and endpoint required by Alibaba Cloud oss?

Regarding the use of Alibaba Cloud oss, this article mainly describes how to obtain the parameters we need to obtain: bucket and endpoint. These two parameters are relatively easy to obtain.
In fact, these two parameters determine: the final access address of your uploaded files. This address is: http://./, and the sum in it can be set and replaced with your own actual parameters.

The bucket is actually the name of your oss project on Alibaba Cloud, and the scope is the oss of all Alibaba Cloud users, so everyone's bucket names are in competition.

The endpoint is actually the oss project you applied for, and the actual storage address is the physical server where it is. Different regions are selected, and there will be different endpoints. These concepts are relatively easy to understand, as shown in the figure below.
insert image description here

insert image description here
Different regions have different endpoints. That is to say: different endpoints represent different server locations.
insert image description here
In this way, the key parameters bucket and endpoint can be obtained.

tip Tips

In "File Management", you can see the final uploaded files and directory structure, which can be used to judge whether the final upload is successful.
In "Domain Name Management", you can modify the final access address of the oss file, which is http://., and you can modify it to your own domain name through cname. However..., the domain name must be filed first. Therefore, students who have registered domain names can try it.
insert image description here

Guess you like

Origin blog.csdn.net/qq_29757467/article/details/129850366