diff --git a/src/content/docs/en/pages/store-journey/storage/use-bucket-as-origin.mdx b/src/content/docs/en/pages/store-journey/storage/use-bucket-as-origin.mdx index 963c4521fc..0d154f4f87 100644 --- a/src/content/docs/en/pages/store-journey/storage/use-bucket-as-origin.mdx +++ b/src/content/docs/en/pages/store-journey/storage/use-bucket-as-origin.mdx @@ -187,10 +187,11 @@ Once the changes have been made, access `http://xxxxxxxxxx.map.azionedge.net/ind 1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/): ```bash -curl --location 'https://api.azionapi.net/edge_applications' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/edge_application/applications \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "edge storage app", "delivery_protocol": "http", @@ -224,15 +225,19 @@ curl --location 'https://api.azionapi.net/edge_applications' \ 4. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and `` with the ID of the edge application you created: ```bash -curl --location 'https://api.azionapi.net/domains' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/workspace/workloads \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ - "name": "edge storage domain", - "cname_access_only": false, - "digital_certificate_id": null, - "edge_application_id": + "name": "edge storage domain" + "domains": [ + { + "domain": "string", + "allow_access": true + } + "edge_application: }' ``` @@ -290,9 +295,10 @@ curl --location 'https://api.azionapi.net/edge_applications/` variable with the edge application ID you copied previously: ```bash -curl --location 'https://api.azionapi.net/edge_applications//rules_engine/request/rules' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url "https://api.azion.com/v4/edge_application/applications//rules?search=phase:request" \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 11. You should receive a response similar to: @@ -326,10 +332,11 @@ curl --location 'https://api.azionapi.net/edge_applications/` with the ID of the rule you retrieved in the previous step, leaving the `set_cache_policy` object the same as received in the response: ```bash -curl --location --request PATCH 'https://api.azionapi.net/edge_applications//rules_engine/request/rules/' \ ---header 'Accept: application/json; version=3' \ ---header 'Content-Type: application/json' \ ---header 'Authorization: Token [TOKEN VALUE]' \ +curl --request PATCH \ + --url https://api.azion.com/v4/edge_application/applications//rules/ \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "behaviors": [ { diff --git a/src/content/docs/pt-br/pages/store-jornada/storage/usar-bucket-como-origem.mdx b/src/content/docs/pt-br/pages/store-jornada/storage/usar-bucket-como-origem.mdx index 4bc89a6ecf..a38382a3aa 100644 --- a/src/content/docs/pt-br/pages/store-jornada/storage/usar-bucket-como-origem.mdx +++ b/src/content/docs/pt-br/pages/store-jornada/storage/usar-bucket-como-origem.mdx @@ -187,10 +187,11 @@ Uma vez que as alterações tenham sido feitas, acesse `http://xxxxxxxxxx.map.az 1. Execute a seguinte requisição `POST` no seu terminal, substituindo `[VALOR DO TOKEN]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/): ```bash -curl --location 'https://api.azionapi.net/edge_applications' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/edge_application/applications \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "edge storage app", "delivery_protocol": "http", @@ -224,15 +225,19 @@ curl --location 'https://api.azionapi.net/edge_applications' \ 4. Execute a seguinte requisição `POST` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) e `` pelo ID da edge application que você criou: ```bash -curl --location 'https://api.azionapi.net/domains' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/workspace/workloads \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ - "name": "edge storage domain", - "cname_access_only": false, - "digital_certificate_id": null, - "edge_application_id": + "name": "edge storage domain" + "domains": [ + { + "domain": "string", + "allow_access": true + } + "edge_application: }' ``` @@ -290,9 +295,10 @@ curl --location 'https://api.azionapi.net/edge_applications/` pelo ID da edge application que você copiou anteriormente: ```bash -curl --location 'https://api.azionapi.net/edge_applications//rules_engine/request/rules' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url "https://api.azion.com/v4/edge_application/applications//rules?search=phase:request" \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 11. Você deve receber uma resposta semelhante a esta: @@ -326,10 +332,11 @@ curl --location 'https://api.azionapi.net/edge_applications/` pelo ID da regra que você recuperou no passo anterior, mantendo o objeto `set_cache_policy` igual ao recebido na resposta: ```bash -curl --location --request PATCH 'https://api.azionapi.net/edge_applications//rules_engine/request/rules/' \ ---header 'Accept: application/json; version=3' \ ---header 'Content-Type: application/json' \ ---header 'Authorization: Token [TOKEN VALUE]' \ +curl --request PATCH \ + --url https://api.azion.com/v4/edge_application/applications//rules/ \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "behaviors": [ {