From d70f6cd6073833d8990a2117fcbc9b7a74ea8c7a Mon Sep 17 00:00:00 2001 From: Luiza Vargas do Santos Date: Mon, 26 May 2025 15:07:30 -0300 Subject: [PATCH 1/3] fix: replaced api v3 in store journey --- .../storage/use-bucket-as-origin.mdx | 25 +++++++++++-------- .../storage/usar-bucket-como-origem.mdx | 25 +++++++++++-------- 2 files changed, 28 insertions(+), 22 deletions(-) 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..4202c0253d 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", @@ -290,9 +291,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 +328,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..3ae2bf57c9 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", @@ -290,9 +291,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 +328,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": [ { From 8ae961c3c217087cd62d0e4607dea0f6cec0995c Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Tue, 27 May 2025 13:38:29 -0300 Subject: [PATCH 2/3] Update use-bucket-as-origin.mdx --- .../storage/use-bucket-as-origin.mdx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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 4202c0253d..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 @@ -225,15 +225,19 @@ curl --request POST \ 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: }' ``` From 56536090949d53f8a1c81ff9160c1a213ee246d2 Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Tue, 27 May 2025 13:39:21 -0300 Subject: [PATCH 3/3] Update usar-bucket-como-origem.mdx --- .../storage/usar-bucket-como-origem.mdx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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 3ae2bf57c9..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 @@ -225,15 +225,19 @@ curl --request POST \ 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: }' ```