Compare commits

...

1 Commits

Author SHA1 Message Date
laiweijian
2da36e73e2 modelarts api delete gif 2024-02-07 16:30:03 +08:00
12 changed files with 5 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -46,11 +46,11 @@ Content-Type: application/json
<p id="modelarts_03_0004__en-us_topic_0129435566_p1694154793314">If you do not need the demo project, visit the following URL to download the API Gateway signing SDK:</p>
<p id="modelarts_03_0004__en-us_topic_0129435566_p19866332181318">Obtain the API Gateway signing SDK from the enterprise administrator.</p>
<p id="modelarts_03_0004__en-us_topic_0129435566_p146941947123310">Decompress the downloaded package and reference the obtained JAR files as dependencies, as highlighted in the following figure.</p>
<p id="modelarts_03_0004__en-us_topic_0129435566_p12389340338"><span><img id="modelarts_03_0004__en-us_topic_0129435566_image12154257173317" src="en-us_image_0000001404504698.gif"></span></p>
<div class="fignone" id="modelarts_03_0004__fig1682017613919"><span class="figcap"><b>Figure 1 </b>JAR Files</span><br><span><img id="modelarts_03_0004__image2820066396" src="en-us_image_0000001838380189.png"></span></div>
<ol id="modelarts_03_0004__en-us_topic_0129435566_en-us_topic_0094388456_ol11139503184055"><li id="modelarts_03_0004__en-us_topic_0129435566_en-us_topic_0094388456_li33146668184055"><span>Generate an AK/SK. (If an AK/SK file has already been obtained, skip this step and locate the downloaded AK/SK file. Generally, the file name will be <strong id="modelarts_03_0004__en-us_topic_0129435566_b104721755202315">credentials.csv</strong>.)</span><p><ol type="a" id="modelarts_03_0004__ol193132193414"><li id="modelarts_03_0004__li83732143415">Log in to the console, enter the <strong id="modelarts_03_0004__b13143293410">My Credentials</strong> page, and choose <strong id="modelarts_03_0004__b12363213348">Access Keys</strong> &gt; <strong id="modelarts_03_0004__b133143293410">Create Access Key</strong>.</li><li id="modelarts_03_0004__li1039320343">In the <span class="wintitle" id="modelarts_03_0004__wintitle1331232153415"><b>Create Access Key</b></span> dialog box that is displayed, use the login password for verification.</li><li id="modelarts_03_0004__li13113214345">Click <strong id="modelarts_03_0004__b1030328344">OK</strong>, open the <strong id="modelarts_03_0004__b43193273413">credentials.csv</strong> file, and save the key file as prompted. The access key file is saved in the default downloads folder of the browser. Then, the access key (<strong id="modelarts_03_0004__b831432133415">Access Key Id</strong> and <strong id="modelarts_03_0004__b193193213344">Secret Access Key</strong>) is obtained.</li></ol>
</p></li><li id="modelarts_03_0004__en-us_topic_0129435566_li157891312153613"><span>Download and decompress the demo project.</span></li><li id="modelarts_03_0004__en-us_topic_0129435566_li94791126103617"><a name="modelarts_03_0004__en-us_topic_0129435566_li94791126103617"></a><a name="en-us_topic_0129435566_li94791126103617"></a><span>Import the demo project to Eclipse.</span><p><div class="fignone" id="modelarts_03_0004__en-us_topic_0129435566_fig10881944183710"><span class="figcap"><b>Figure 1 </b>Selecting Existing Projects into Workspace</span><br><span><img id="modelarts_03_0004__en-us_topic_0129435566_image1269313653714" src="en-us_image_0000001404664602.gif"></span></div>
<div class="fignone" id="modelarts_03_0004__en-us_topic_0129435566_fig15961458113717"><span class="figcap"><b>Figure 2 </b>Selecting the demo project</span><br><span><img id="modelarts_03_0004__en-us_topic_0129435566_image2701239376" src="en-us_image_0000001455264277.gif"></span></div>
<div class="fignone" id="modelarts_03_0004__en-us_topic_0129435566_fig74501929113815"><span class="figcap"><b>Figure 3 </b>Structure of the demo project</span><br><span><img id="modelarts_03_0004__en-us_topic_0129435566_image16819131113720" src="en-us_image_0000001454864609.gif"></span></div>
</p></li><li id="modelarts_03_0004__en-us_topic_0129435566_li157891312153613"><span>Download and decompress the demo project.</span></li><li id="modelarts_03_0004__en-us_topic_0129435566_li94791126103617"><a name="modelarts_03_0004__en-us_topic_0129435566_li94791126103617"></a><a name="en-us_topic_0129435566_li94791126103617"></a><span>Import the demo project to Eclipse.</span><p><div class="fignone" id="modelarts_03_0004__fig126185494010"><span class="figcap"><b>Figure 2 </b>Selecting Existing Projects into Workspace</span><br><span><img id="modelarts_03_0004__image19645414403" src="en-us_image_0000001791625782.png"></span></div>
<div class="fignone" id="modelarts_03_0004__fig192514235413"><span class="figcap"><b>Figure 3 </b>Selecting the demo project</span><br><span><img id="modelarts_03_0004__image7251152384120" src="en-us_image_0000001838385153.png"></span></div>
<div class="fignone" id="modelarts_03_0004__fig1620863824118"><span class="figcap"><b>Figure 4 </b>Structure of the demo project</span><br><span><img id="modelarts_03_0004__image1520863816417" src="en-us_image_0000001838385445.png"></span></div>
</p></li><li id="modelarts_03_0004__en-us_topic_0129435566_en-us_topic_0094388456_li55824361184055"><span>Sign the request.</span><p><p id="modelarts_03_0004__en-us_topic_0129435566_en-us_topic_0094388456_p32657207184055">The request signing method is integrated in the JAR files imported in <a href="#modelarts_03_0004__en-us_topic_0129435566_li94791126103617">3</a>. The request needs to be signed before it is sent. The signature will then be added as part of the HTTP header to the request.</p>
<p id="modelarts_03_0004__en-us_topic_0129435566_p48653222398">The demo code is classified into the following classes to demonstrate signing and sending the HTTP request:</p>
<ul id="modelarts_03_0004__en-us_topic_0129435566_ul1486512220397"><li id="modelarts_03_0004__en-us_topic_0129435566_li38651222193913"><strong id="modelarts_03_0004__en-us_topic_0129435566_b474718717244">AccessService</strong>: abstract class that merges the GET, POST, PUT, and DELETE methods into the <strong id="modelarts_03_0004__en-us_topic_0129435566_b4906511279">access</strong> method</li><li id="modelarts_03_0004__en-us_topic_0129435566_li586517224394"><strong id="modelarts_03_0004__en-us_topic_0129435566_b1794013111117">Demo</strong>: execution entry used to simulate the sending of GET, POST, PUT, and DELETE requests</li><li id="modelarts_03_0004__en-us_topic_0129435566_li1786522203918"><strong id="modelarts_03_0004__en-us_topic_0129435566_b27821111172414">AccessServiceImpl</strong>: implementation of the <strong id="modelarts_03_0004__en-us_topic_0129435566_b1851311365283">access</strong> method, which contains the code required for communication with API Gateway</li></ul>

View File

@ -5,7 +5,7 @@
</li><li id="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li1564913617106">Region<p id="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_p10588103711107"><a name="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li1564913617106"></a><a name="en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li1564913617106"></a>A region is a physical location where a cloud service is deployed. Availability zones (AZ) in the same region can communicate with each other over an intranet but AZs in different regions cannot communicate with each other. By creating cloud resources in different regions, you can design applications to better meet customer requirements and comply with local laws and regulations.</p>
</li><li id="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li1183783919109">AZ<p id="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_p061084051014"><a name="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li1183783919109"></a><a name="en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li1183783919109"></a>An AZ contains one or more physical data centers. It has independent cooling, fire extinguishing, moisture-proof, and electricity facilities. Within an AZ, computing, network, storage, and other resources are logically divided into multiple clusters. AZs within a region are interconnected using high-speed optical fibers to allow users to build cross-AZ high-availability systems.</p>
</li><li id="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li3896216123113">Project<p id="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_p10896181643118"><a name="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li3896216123113"></a><a name="en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_li3896216123113"></a>Projects group and isolate compute, storage, and network resources across physical regions. A default project is provided for each region, and subprojects can be created under each default project. Users can be granted permissions to access all resources in a specific project. For more refined access control, create subprojects under a project and purchase resources in the subprojects. Users can then be assigned permissions to access only specific resources in the subprojects.</p>
<div class="fignone" id="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_fig1189614168311"><span class="figcap"><b>Figure 1 </b>Project isolation model</span><br><span><img id="modelarts_03_0143__en-us_topic_0171316292_en-us_topic_0170640577_en-us_topic_0169294976_image689661615316" src="en-us_image_0000001455264321.gif"></span></div>
<div class="fignone" id="modelarts_03_0143__fig189771917154318"><span class="figcap"><b>Figure 1 </b>Project isolation model</span><br><span><img id="modelarts_03_0143__image20977317204313" src="en-us_image_0000001791627286.png"></span></div>
</li></ul>
</div>
<div>