From 14a2458620c2bcb2eeb0b2c9fde95f5fdca42898 Mon Sep 17 00:00:00 2001 From: Luiza Vargas do Santos Date: Mon, 26 May 2025 13:33:37 -0300 Subject: [PATCH 1/8] fix: replaced api v3 in secure-journey --- .../edit-edge-firewall/edit-main-settings.mdx | 36 +++++----- .../instantiate-edge-functions.mdx | 66 +++++++++++-------- .../work-with-rules-engine.mdx | 9 +-- .../secure-journey/edit-zone/add-records.mdx | 15 +++-- .../edit-zone/edit-main-settings.mdx | 44 +++++++++++-- .../block-tor-networks.mdx | 16 +++-- .../secure-journey/secure-infrastructure.mdx | 7 +- .../digital-certificates.mdx | 22 ++++--- .../transport-layer-security/mtls.mdx | 27 ++++---- .../access-root-domain.mdx | 15 +++-- .../add-lets-encrypt-txt-record.mdx | 16 +++-- .../load-balance-dns.mdx | 18 ++--- 12 files changed, 177 insertions(+), 114 deletions(-) diff --git a/src/content/docs/en/pages/secure-journey/edit-edge-firewall/edit-main-settings.mdx b/src/content/docs/en/pages/secure-journey/edit-edge-firewall/edit-main-settings.mdx index 3906a9b296..89d37d748c 100644 --- a/src/content/docs/en/pages/secure-journey/edit-edge-firewall/edit-main-settings.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-edge-firewall/edit-main-settings.mdx @@ -70,29 +70,31 @@ To configure an edge firewall to protect an specific domain, [go to the Protect 1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your ``: ```bash -curl --location 'https://api.azionapi.net/edge_firewall \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url https://api.azion.com/v4/edge_firewall/firewalls \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. You'll receive a response with all your existing edge firewalls. Copy the value of the `` that you want to configure. 3. Run a `PATCH` request to modify the firewall as follows: ```bash -curl --location --request PATCH 'https://api.azionapi.net/edge_firewall/' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ ---data '{ - "name": "My edge firewall", - "domains": [ - - ], - "is_active": true, - "edge_functions_enabled": true, - "network_protection_enabled": true, - "waf_enabled": true, - "debug_rules": true +curl --request PATCH \ + --url https://api.azion.com/v4/edge_firewall/firewalls/{id}\ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ + --data '{ + "name": "string", + "modules": { + "ddos_protection_enabled": true, + "edge_functions_enabled": true, + "network_protection_enabled": true, + "waf_enabled": true + }, + "debug_rules": false, + "active": true }' ``` diff --git a/src/content/docs/en/pages/secure-journey/edit-edge-firewall/instantiate-edge-functions.mdx b/src/content/docs/en/pages/secure-journey/edit-edge-firewall/instantiate-edge-functions.mdx index cff32eacdd..9289de6073 100644 --- a/src/content/docs/en/pages/secure-journey/edit-edge-firewall/instantiate-edge-functions.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-edge-firewall/instantiate-edge-functions.mdx @@ -58,22 +58,27 @@ Once your application receives a request generated from one of the countries in 1. Run the following `PATCH` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` variable with [your edge firewall ID](https://api.azion.com/#090fa5b0-3d68-4521-9a90-f4d93773f6d9) to activate the **Edge Functions** module: ```bash -curl --location --request PATCH 'https://api.azionapi.net/edge_firewall/' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ ---data '{ - "edge_functions_enabled": true -}' +curl --request PATCH \ + --url https://api.azion.com/v4/edge_firewall/firewalls/{id} \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ + --data '{ + "name": "string", + "modules": { + "edge_functions_enabled": true + } + }' ``` -2. You'll receive a response with the updated value. -3. Run the following `GET` request to retrieve the `edge_function_id` of the `Deny Geoip function` function: +1. You'll receive a response with the updated value. +2. Run the following `GET` request to retrieve the `edge_function_id` of the `Deny Geoip function` function: ```bash -curl --location 'https://api.azionapi.net/edge_functions' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url https://api.azion.com/v4/edge_functions/functions \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 4. You'll receive a response similar to this: @@ -112,18 +117,21 @@ curl --location 'https://api.azionapi.net/edge_functions' \ 6. Run the following `POST` request, replacing the `` variable with [your edge firewall ID](https://api.azion.com/#090fa5b0-3d68-4521-9a90-f4d93773f6d9) and the `` value with the value you received in the previous response: ```bash -curl --location 'https://api.azionapi.net/edge_firewall//functions_instances' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ ---data '{ - "name": "Deny Geoip", - "edge_function": , - "json_args": {} +curl --request POST \ + --url https://api.azion.com/v4/edge_firewall/firewalls/edgeFirewallId/functions \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ + --data '{ + "name": "Deny Geoip", + "json_args": {}, + "edge_function": , + "active": true }' + ``` -7. You'll receive a response similar to this: +6. You'll receive a response similar to this: ```json { @@ -148,9 +156,10 @@ curl --location 'https://api.azionapi.net/edge_firewall//funct 8. Run the following `GET` to retrieve the `id` of the `Blocked Countries Geoip` network list: ```bash -curl --location 'https://api.azionapi.net/network_lists' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url https://api.azion.com/v4/workspace/network_lists \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 9. You'll receive a response similar to this: @@ -191,10 +200,11 @@ curl --location 'https://api.azionapi.net/network_lists' \ 10. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/), the `` variable with your edge firewall ID, the `` value with the function instance ID, and the `<>` value with the network list ID: ```bash -curl --location 'https://api.azionapi.net/edge_firewall//rules_engine' \ ---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_firewall/firewalls//rules \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "Create rule", "is_active": true, diff --git a/src/content/docs/en/pages/secure-journey/edit-edge-firewall/work-with-rules-engine.mdx b/src/content/docs/en/pages/secure-journey/edit-edge-firewall/work-with-rules-engine.mdx index bef0b520f8..0737caf8e4 100644 --- a/src/content/docs/en/pages/secure-journey/edit-edge-firewall/work-with-rules-engine.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-edge-firewall/work-with-rules-engine.mdx @@ -49,10 +49,11 @@ To create a rule: 1. Run the following `POST` request to create a rule, replacing `[TOKEN VALUE]` with with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` variable with your [edge firewall id](https://api.azion.com/#090fa5b0-3d68-4521-9a90-f4d93773f6d9) value: ```bash -curl --location 'https://api.azionapi.net/edge_firewall//rules_engine' \ ---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_firewall/firewalls//rules \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "SSL Verification", "is_active": true, diff --git a/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx b/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx index bec6dd957f..98a4598460 100644 --- a/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx @@ -45,15 +45,16 @@ curl --location 'https://api.azionapi.net/intelligent_dns' \ --header 'Accept: application/json; version=3' ``` -2. You'll receive a response with all your existing edge firewalls. Copy the value of the `` that you want to use. -3. Run the following `POST` request, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` value you copied: +1. You'll receive a response with all your existing DNS Zones Copy the value of the `` that you want to use. +2. Run the following `POST` request, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` value you copied: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns//records' \ ---header 'Content-Type: application/json' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' \ ---data-raw '{ +curl --request POST \ + --url https://api.azion.com/v4/dns/zones/zoneId/records \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ +--data '{ "record_type": "CNAME", "entry": "www", "answers_list": [ diff --git a/src/content/docs/en/pages/secure-journey/edit-zone/edit-main-settings.mdx b/src/content/docs/en/pages/secure-journey/edit-zone/edit-main-settings.mdx index 8aa860ec63..df281b4ab7 100644 --- a/src/content/docs/en/pages/secure-journey/edit-zone/edit-main-settings.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-zone/edit-main-settings.mdx @@ -53,13 +53,16 @@ Once you host your domain on Azion Edge DNS, you must change your domain's autho +### Creating a new zone + 1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to create a new zone: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/dns/zones \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "New zone", "domain": "yourdomain.com", @@ -110,6 +113,39 @@ Check the [Azion API documentation](https://api.azion.com/) and the [OpenAPI spe Once you're done configuring your main settings, you can add records to your Edge DNS. + +### Editing an existing zone + +1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your ``: + + +```bash +curl --location 'https://api.azionapi.net/intelligent_dns' \ +--header 'Authorization: Token [TOKEN VALUE]' \ +--header 'Accept: application/json; version=3' +``` + +2. Run the following `PATCH` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and `` with the id of the DNS Zone to edit an existing zone: + +```bash +curl --request PATCH \ + --url https://api.azion.com/v4/dns/zones/ \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ + --data '{ + "name": "string", + "domain": "string", + "active": true, + "soa_ttl": 1, + "refresh": 1, + "retry": 1, + "expiry": 1, + "nx_ttl": 1 +}' +``` + + diff --git a/src/content/docs/en/pages/secure-journey/firewall-advanced-configurations/block-tor-networks.mdx b/src/content/docs/en/pages/secure-journey/firewall-advanced-configurations/block-tor-networks.mdx index 0500934c93..12355d4dd9 100644 --- a/src/content/docs/en/pages/secure-journey/firewall-advanced-configurations/block-tor-networks.mdx +++ b/src/content/docs/en/pages/secure-journey/firewall-advanced-configurations/block-tor-networks.mdx @@ -46,9 +46,10 @@ If your application receives a request generated from an IP that is in the list, 1. Run the following `GET` request to retrieve the `id` of the **Azion IP Tor Exit Nodes** list: ```bash -curl --location 'https://api.azionapi.net/network_lists' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url https://api.azion.com/v4/workspace/network_lists \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. You'll receive a response similar to this: @@ -81,10 +82,11 @@ curl --location 'https://api.azionapi.net/network_lists' \ 3. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/), the `` variable with your [edge firewall ID](https://api.azion.com/#58376993-e0dd-4b51-9cd3-41d86122728f), and the `` value with the IP Tor Exit Nodes list ID: ```bash -curl --location 'https://api.azionapi.net/edge_firewall//rules_engine' \ ---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_firewall/firewalls/edgeFirewallId/rules \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "Block Tor Exit Nodes", "is_active": true, diff --git a/src/content/docs/en/pages/secure-journey/secure-infrastructure.mdx b/src/content/docs/en/pages/secure-journey/secure-infrastructure.mdx index 82e9bcdc2d..1365ed656e 100644 --- a/src/content/docs/en/pages/secure-journey/secure-infrastructure.mdx +++ b/src/content/docs/en/pages/secure-journey/secure-infrastructure.mdx @@ -43,9 +43,10 @@ To access the Origin Shield list, you must have: 1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) ```bash -curl --location 'https://api.azionapi.net/network_lists' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url https://api.azion.com/v4/workspace/network_lists \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. You'll receive a response similar to this: diff --git a/src/content/docs/en/pages/secure-journey/transport-layer-security/digital-certificates.mdx b/src/content/docs/en/pages/secure-journey/transport-layer-security/digital-certificates.mdx index a89eb5731b..6a8a75094f 100644 --- a/src/content/docs/en/pages/secure-journey/transport-layer-security/digital-certificates.mdx +++ b/src/content/docs/en/pages/secure-journey/transport-layer-security/digital-certificates.mdx @@ -53,11 +53,12 @@ Ensure that the subject name and the subject alternate names (SAN) listed are th 1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the placeholders in the body with the desired values: ```bash -curl --location 'https://api.azionapi.net/digital_certificates/csr' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token {{[TOKEN VALUE]}}' \ ---header 'Content-Type: application/json' \ ---data-raw '{ +curl --request POST \ + --url https://api.azion.com/v4/digital_certificates/csr \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ +--data '{ "name": "New CSR", "common_name": "domain.net", "country": "US", @@ -161,11 +162,12 @@ Once you receive a certificate issued by your CA, you must associate it with the 1. Run the following `PATCH` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/), the `` with the ID you got in the previous response and the certificate in the `certificate_content` key: ```bash -curl --location 'https://api.azionapi.net/digital_certificates/' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token {{[TOKEN VALUE]}}' \ ---header 'Content-Type: application/json' \ ---data-raw '{ +curl --request PATCH \ + --url https://api.azion.com/v4/digital_certificates/certificates/\ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ +--data '{ "certificate_content": "-----BEGIN CERTIFICATE——\nADgPIWMQBAKIAMSACGAgI3fGBMTHXI0bDTCIGIVCGuMgNAEGABQsBApCBqMJUwSx\nA2RFjv0gdbMhM0MA0hzAbAIHE53WMwwBMHpjwNwj35MzgNtTbIiywTMOWdcMWcje\gaBkDAkjQcGi0bB9WI0A1IdRjDA3bQlBXkqwWFOD4B2wwh3I2hMMVtu9YuYbNkBT\AQEFAAOCAQ8AMIIBCgKCAQEAt25cziDBsHbZzZhy9BPLApPf9OmE67k9pr7VezsR\nkIw4trY2xtJXFB7itT1p7HxbLBoL5u8FGmMKssB+XTmztmgty43ogor1KSjUgfZg\nrpAqyXtrbSM5g+14c0VO9S0LkkePlHvul0UiblJj7K+gkvc6sZqXZY+TI1BPqeuO\ns9A4LLCUGziyNv0qJfIL5RZm07Yy35BEBTTxUWVL2msfaUH2uPM5XN5eFC7oKN0/\n3NuYIboRmyk+P7CDC99M8Mp/wOjiB+yVGZVTjeqGPI8nFWJl2waXkc54VvW84xQP\njwtid1v1KENK/ixMAAXi2cQ9gNRX+/USoneuWj5n4QUj6QIDAQABo1AwTjAdBgNV\nHQ4EFgQU2sDgtyYMDXvw79OhdvAFqcLmcwkwHwYDVR0jBBgwFoAU2sDgtyYMDXvw\n79OhdvAFqcLmcwkwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAKzCM\niG67IPwJK6MIJ31N734AofnjLf+fffxNtfYmH0XGORHPYUxCxsLxXiSFgPvubWh+\Lahvmz0plDObtDb8DnqbDP8OnxKxBIsNT1WJdlS9dgB4+0YOhmpfQXM3nDuP06v7m+fnK8bF6lW0jwIA87/u5b/RVOz1htMNLoF8BvLi6\7ODLTv5oZ6Wwhf1tNADmSHz3l\n6ra9d8oa6jK1fe2/5A7LY41acjbbNrLbFDYP7hcx02TmCfSMut+ysaZ/blay4Sbb\nwNlt92KhJw07UEKgXXbgyXGoFQkU8V+r2AZcgt0XM9jvwTc01Sbq/gegd2GMAj3x\nrTwkn5UNzFs56FCgNg==\n-----END CERTIFICATE-----" }' ``` diff --git a/src/content/docs/en/pages/secure-journey/transport-layer-security/mtls.mdx b/src/content/docs/en/pages/secure-journey/transport-layer-security/mtls.mdx index 4d19ebfcba..9133a7bad5 100644 --- a/src/content/docs/en/pages/secure-journey/transport-layer-security/mtls.mdx +++ b/src/content/docs/en/pages/secure-journey/transport-layer-security/mtls.mdx @@ -57,10 +57,11 @@ The **Permissive** mode is recommended when testing access to your application u 1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the certificate in the `certificate` property: ```bash -curl --location 'https://api.azionapi.net/digital_certificates' \ ---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/digital_certificates/certificates \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "Trusted CA - mydomain.com", "certificate": "-----BEGIN CERTIFICATE-----\nMIIDCTCCAfGgAwIBAgIJAPpKHOLMIGuAMA0GCSqGSIb3DQEBBQUAMBsxGTAXBgNV\nBAMMEHd3dy5teWRvbWFpbi5jb20wHhcNMTgwMzI3MjAwOTA0WhcNMjgwMzI0MjAw\nOTA0WjAbMRkwFwYDVQQDDBB3d3cubXlkb21haW4uY29tMIIBIjANBgkqhkiG9w0B\nAQEFAAOCAQ8AMIIBCgKCAQEAt25cziDBsHbZzZhy9BPLApPf9OmE67k9pr7VezsR\nkIw4trY2xtJXFB7itT1p7HxbLBoL5u8FGmMKssB+XTmztmgty43ogor1KSjUgfZg\nrpAqyXtrbSM5g+14c0VO9S0LkkePlHvul0UiblJj7K+gkvc6sZqXZY+TI1BPqeuO\ns9A4LLCUGziyNv0qJfIL5RZm07Yy35BEBTTxUWVL2msfaUH2uPM5XN5eFC7oKN0/\n3NuYIboRmyk+P7CDC99M8Mp/wOjiB+yVGZVTjeqGPI8nFWJl2wtyuiZ4VvW84xQP\njwtid1v1KENK/ixMAAXi2cQ9gNRX+/USoneuWj5n4QUj6QIDAQABo1AwTjAdBgNV\nHQ4EFgQU2sDgtyYMDXvw79OhdvAFqcLmcwkwHwYDVR0jBBgwFoAU2sDgtyYMDXvw\n79OhdvAFqcLmcwkwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAKzCM\niG67IPwJK6MIJ31N734AofjkOf+fffxNtfYmH0XGORHPYUxCxsLxXiSFgPvubWh+\n7vLsKAm67bflMWbn982aiOR0O/LJhLvhj6F+wgv0aDYup181Hm8Ob/88ldbF6ND1\nTqzVATS0WDfl+z1QBKtNdDm3Nv45IZ83ob7OhIzD9MwL6tflBPDpWOYtmBDn0xSP\n6ra9d8oa6jK1fe2/5A7LY41acjbbNrLbFDYP7hcx02TmCfSMut+ysaZ/blay4Sbb\nwNlt92KhJw07UEKgXXbgyXGoFQkU8V+r2AZcgt0XM9jvwTc01Sbq/gegd2GMAj3x\nrTwkn5UNzFs56FCgNg==\n-----END CERTIFICATE-----", @@ -180,10 +181,11 @@ To configure a firewall to block access to a domain using the **Permissive** mod 1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` with the ID of the firewall associated with the mTLS domain: ```bash -curl --location 'https://api.azionapi.net/edge_firewall//rules_engine' \ ---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_firewall/firewalls//rules \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "403 Host=mydomain.com and CCV!=true", "description": "Delivers a 403 if the hostname does not match mydomain.com and if the certificate validation fails.", @@ -304,10 +306,11 @@ The use of the prefix `X-` in the header name of custom HTTP variables is discou 1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` with the ID of the application associated with the mTLS domain: ```bash -curl --location '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 POST \ + --url https://api.azion.com/v4/edge_application/applications//rules \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "mTLS variables", "description": "Adds certificate values according to Open Banking standards", diff --git a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/access-root-domain.mdx b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/access-root-domain.mdx index 444ee2cfdf..3e8650c4f4 100644 --- a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/access-root-domain.mdx +++ b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/access-root-domain.mdx @@ -36,19 +36,20 @@ For this guide, assume you're configuring a record for a zone with the `domain.c 1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your ``: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' +curl --request GET \ + --url https://api.azion.com/v4/dns/zones \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. You'll receive a response with all your existing zones. Copy the value of the `` that you want to use. 3. Run the following `POST` request, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` value you copied: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns//records' \ ---header 'Content-Type: application/json' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' \ + --url https://api.azion.com/v4/dns/zones//records \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data-raw '{ "record_type": "ANAME", "answers_list": [ diff --git a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/add-lets-encrypt-txt-record.mdx b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/add-lets-encrypt-txt-record.mdx index def212e201..848112a967 100644 --- a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/add-lets-encrypt-txt-record.mdx +++ b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/add-lets-encrypt-txt-record.mdx @@ -43,19 +43,21 @@ If you've chosen Azion's **Domain** feature to create a Let's Encrypt certificat 1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your ``: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' +curl --request GET \ + --url https://api.azion.com/v4/dns/zones \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. You'll receive a response with all your existing zones. Copy the value of the `` that you want to use. 3. Run the following `POST` request, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` value you copied: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns//records' \ ---header 'Content-Type: application/json' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' \ +curl --request POST \ + --url https://api.azion.com/v4/dns/zones//records \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data-raw '{ "record_type": "TXT", "entry": "_acme-challenge.", diff --git a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/load-balance-dns.mdx b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/load-balance-dns.mdx index 4ef6981316..c5aa659efa 100644 --- a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/load-balance-dns.mdx +++ b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/load-balance-dns.mdx @@ -44,20 +44,22 @@ If you add 3 records, you can, for example, specify a weight of **50** for the f 1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your ``: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' +curl --request GET \ + --url https://api.azion.com/v4/dns/zones \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. You'll receive a response with all your existing zones. Copy the value of the `` that you want to use. 3. Run the following `POST` request, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` value you copied: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns//records' \ ---header 'Content-Type: application/json' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' \ ---data-raw '{ +curl --request POST \ + --url https://api.azion.com/v4/dns/zones/zoneId/records \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ +--data '{ "record_type": "A", "entry": "lbexample", "answers_list": [ From 308b723eafc4c8b70cdd7b34b942254878ecfb29 Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Mon, 26 May 2025 14:01:53 -0300 Subject: [PATCH 2/8] Update add-records.mdx --- .../docs/en/pages/secure-journey/edit-zone/add-records.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx b/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx index 98a4598460..93fe7345e0 100644 --- a/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx @@ -40,9 +40,10 @@ After defining your [Edge DNS main settings](/en/documentation/products/guides/s 1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your ``: ```bash -curl --location 'https://api.azionapi.net/intelligent_dns' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' +curl --request GET \ + --url https://api.azion.com/v4/dns/zones \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 1. You'll receive a response with all your existing DNS Zones Copy the value of the `` that you want to use. From 4493cffaa01844c72ece113bcde3e7626a1fe611 Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Mon, 26 May 2025 14:02:31 -0300 Subject: [PATCH 3/8] Update add-records.mdx --- .../docs/en/pages/secure-journey/edit-zone/add-records.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx b/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx index 93fe7345e0..77445ed02e 100644 --- a/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx @@ -51,7 +51,7 @@ curl --request GET \ ```bash curl --request POST \ - --url https://api.azion.com/v4/dns/zones/zoneId/records \ + --url https://api.azion.com/v4/dns/zones//records \ --header 'Accept: application/json' \ --header 'Authorization: [TOKEN VALUE]' \ --header 'Content-Type: application/json' \ From 31331b6f045f0241d25e6125855151d3fad6adc0 Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Mon, 26 May 2025 14:07:44 -0300 Subject: [PATCH 4/8] Update block-tor-networks.mdx --- .../firewall-advanced-configurations/block-tor-networks.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/pages/secure-journey/firewall-advanced-configurations/block-tor-networks.mdx b/src/content/docs/en/pages/secure-journey/firewall-advanced-configurations/block-tor-networks.mdx index 12355d4dd9..f49c94ca8d 100644 --- a/src/content/docs/en/pages/secure-journey/firewall-advanced-configurations/block-tor-networks.mdx +++ b/src/content/docs/en/pages/secure-journey/firewall-advanced-configurations/block-tor-networks.mdx @@ -83,7 +83,7 @@ curl --request GET \ ```bash curl --request POST \ - --url https://api.azion.com/v4/edge_firewall/firewalls/edgeFirewallId/rules \ + --url https://api.azion.com/v4/edge_firewall/firewalls//rules \ --header 'Accept: application/json' \ --header 'Authorization: [TOKEN VALUE]' \ --header 'Content-Type: application/json' \ From 6f43e155d776313e9e024e25e13d76a57f9eb78f Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Mon, 26 May 2025 14:14:24 -0300 Subject: [PATCH 5/8] Update access-root-domain.mdx --- .../zone-advanced-configurations/access-root-domain.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/access-root-domain.mdx b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/access-root-domain.mdx index 3e8650c4f4..0d5b4e06c7 100644 --- a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/access-root-domain.mdx +++ b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/access-root-domain.mdx @@ -46,6 +46,7 @@ curl --request GET \ 3. Run the following `POST` request, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` value you copied: ```bash +curl --request POST \ --url https://api.azion.com/v4/dns/zones//records \ --header 'Accept: application/json' \ --header 'Authorization: [TOKEN VALUE]' \ @@ -87,4 +88,4 @@ Check the [Azion API documentation](https://api.azion.com/) and the [OpenAPI spe ---- \ No newline at end of file +--- From d2e3c8d4f2c6a78091dfdaff23fe4147a6d28fe1 Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Mon, 26 May 2025 14:16:41 -0300 Subject: [PATCH 6/8] Update load-balance-dns.mdx --- .../zone-advanced-configurations/load-balance-dns.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/load-balance-dns.mdx b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/load-balance-dns.mdx index c5aa659efa..613ee7798b 100644 --- a/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/load-balance-dns.mdx +++ b/src/content/docs/en/pages/secure-journey/zone-advanced-configurations/load-balance-dns.mdx @@ -55,7 +55,7 @@ curl --request GET \ ```bash curl --request POST \ - --url https://api.azion.com/v4/dns/zones/zoneId/records \ + --url https://api.azion.com/v4/dns/zones//records \ --header 'Accept: application/json' \ --header 'Authorization: [TOKEN VALUE]' \ --header 'Content-Type: application/json' \ From 7927349a4e974a3555a1bb6eb0c3b78603a5c325 Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Mon, 26 May 2025 16:12:35 -0300 Subject: [PATCH 7/8] Update add-records.mdx --- .../docs/en/pages/secure-journey/edit-zone/add-records.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx b/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx index 77445ed02e..729c817985 100644 --- a/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-zone/add-records.mdx @@ -46,8 +46,8 @@ curl --request GET \ --header 'Authorization: [TOKEN VALUE]' ``` -1. You'll receive a response with all your existing DNS Zones Copy the value of the `` that you want to use. -2. Run the following `POST` request, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` value you copied: +2. You'll receive a response with all your existing DNS Zones. Copy the value of the `` that you want to use. +3. Run the following `POST` request, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and the `` value you copied: ```bash curl --request POST \ From 67e8e9b9b3ea673f5076eac9c9aca791f5f004c8 Mon Sep 17 00:00:00 2001 From: LuizaVSantos Date: Tue, 27 May 2025 17:10:46 -0300 Subject: [PATCH 8/8] Update edit-main-settings.mdx --- .../secure-journey/edit-zone/edit-main-settings.mdx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/content/docs/en/pages/secure-journey/edit-zone/edit-main-settings.mdx b/src/content/docs/en/pages/secure-journey/edit-zone/edit-main-settings.mdx index df281b4ab7..11d62fe9e6 100644 --- a/src/content/docs/en/pages/secure-journey/edit-zone/edit-main-settings.mdx +++ b/src/content/docs/en/pages/secure-journey/edit-zone/edit-main-settings.mdx @@ -120,9 +120,10 @@ Once you're done configuring your main settings, you can add records to your Edg ```bash -curl --location 'https://api.azionapi.net/intelligent_dns' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Accept: application/json; version=3' +curl --request GET \ + --url https://api.azion.com/v4/dns/zones \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. Run the following `PATCH` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and `` with the id of the DNS Zone to edit an existing zone: @@ -150,4 +151,4 @@ curl --request PATCH \ ---- \ No newline at end of file +---