Skip to content

[EDU-6407] fix: replaced api v3 in secure-jornada -pt-br #1670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,31 @@ Para configurar um edge firewall para proteger um domínio específico, [consult
1. Execute a seguinte requisição `GET` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) para recuperar seu `<edge_firewall_id>`:

```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. Você receberá uma resposta com todos os seus edge firewalls existentes. Copie o valor do `<id>` que você deseja configurar.
3. Execute uma requisição `PATCH` para modificar o firewall da seguinte maneira:

```bash
curl --location --request PATCH 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "My edge firewall",
"domains": [
<domains_id>
],
"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
}'
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,27 @@ Quando sua aplicação receber uma requisição gerada de um dos países na list
1. Execute a seguinte requisição `PATCH` no seu terminal, substituindo `[VALOR DO TOKEN]` pelo seu [token pessoal](/pt-br/documentacao/produtos/guias/personal-tokens/) e a variável `<edge_firewall_id>` pelo [ID do seu edge firewall](https://api.azion.com/#015cb4a3-8fa2-4625-9792-2cc271e184eb) para ativar o módulo **Edge Functions**:

```bash
curl --location --request PATCH 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [VALOR DO TOKEN]' \
--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: [VALOR DO TOKEN]' \
--header 'Content-Type: application/json' \
--data '{
"name": "string",
"modules": {
"edge_functions_enabled": true
}
}'
```

2. Você receberá uma resposta com o valor atualizado.
3. Execute a seguinte requisição `GET` para obter o `edge_function_id` da função `Recusar Geoip`:

```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. Você receberá uma resposta semelhante a esta:
Expand Down Expand Up @@ -113,14 +118,16 @@ curl --location 'https://api.azionapi.net/edge_functions' \
6. Execute a seguinte requisição `POST`, substituindo a variável `<edge_firewall_id` pelo [ID do seu edge firewall](https://api.azion.com/#015cb4a3-8fa2-4625-9792-2cc271e184eb) e o valor `<edge_function_id>` pelo valor que você recebeu na resposta anterior:

```bash
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/functions_instances' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "Recusar Geoip",
"edge_function": <edge_function_id>,
"json_args": {}
curl --request POST \
--url https://api.azion.com/v4/edge_firewall/firewalls/<edge_firewall_id>/functions \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "Deny Geoip",
"json_args": {},
"edge_function": <edge_function_id>,
"active": true
}'
```

Expand Down Expand Up @@ -149,9 +156,10 @@ curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/funct
8. Execute a seguinte requisição `GET` para obter o `id` da network list `Blocked Countries Geoip`:

```bash
curl --location 'https://api.azionapi.net/network_lists' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [VALOR DO TOKEN]'
curl --request GET \
--url https://api.azion.com/v4/workspace/network_lists \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]'
```

9. Você receberá uma resposta semelhante a esta:
Expand Down Expand Up @@ -192,10 +200,11 @@ curl --location 'https://api.azionapi.net/network_lists' \
10. Execute a seguinte requisição `POST` no seu terminal, substituindo `[VALOR DO TOKEN]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/), a variável `<edge_firewall_id>` pelo ID do seu edge firewall, o valor `<edge_function_instance_id>` pelo ID da instância da função e o valor `<network_list_id>` pelo ID da network list:

```bash
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/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/<edge_firewall_id>/rules \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "Create rule",
"is_active": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ Para criar uma regra:
1. Execute a seguinte requisição `POST` para criar uma regra, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) e a variável `<edge_firewall_id>` pelo valor do [ID do edge firewall](https://api.azion.com/#015cb4a3-8fa2-4625-9792-2cc271e184eb):

```bash
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/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/<edge_firewall_id>/rules \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "SSL Verification",
"is_active": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,21 @@ Após definir suas [main settings do Edge DNS](/pt-br/documentacao/produtos/guia
1. Execute a seguinte requisição `GET` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) para recuperar seu `<hosted_zone_id>`:

```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. Você receberá uma resposta com todas as suas zonas existentes. Copie o valor do `<id>` que você deseja usar.
3. Execute a seguinte requisição `POST`, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) e o valor `<hosted_zone_id>` pelo ID que você copiou:

```bash
curl --location 'https://api.azionapi.net/intelligent_dns/<hosted_zone_id>/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/<hosted_zone_id>/records \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data-raw '{
"record_type": "CNAME",
"entry": "www",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,17 @@ Ao hospedar seu domínio no Edge DNS da Azion, você deve alterar os servidores

<Fragment slot="panel.api">

### Criando uma nova zona


1. Execute a seguinte requisição `POST` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) para criar uma nova zona:

```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": "Nova zona",
"domain": "seudominio.com",
Expand Down Expand Up @@ -108,6 +112,40 @@ Confira a [documentação da API da Azion](https://api.azion.com/) e a [especifi
Depois de configurar suas main settings, você pode adicionar registros ao seu Edge DNS.

<LinkButton link="/pt-br/documentacao/produtos/guias/secure/adicionar-registros/" label="consulte o guia de adicionar registros" severity="secondary" />

### Editando uma zona existente

1. Execute a seguinte requisição `GET` no seu terminal, substituindo `[TOKEN VALUE]` com o seu [personal token](/en/documentation/products/guides/personal-tokens/) para buscar seu `<zoneId>`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Execute a seguinte requisição `GET` no seu terminal, substituindo `[TOKEN VALUE]` com o seu [personal token](/en/documentation/products/guides/personal-tokens/) para buscar seu `<zoneId>`:
1. Execute a seguinte requisição `GET` no seu terminal, substituindo `[TOKEN VALUE]` com o seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) para buscar seu `<zoneId>`:


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Precisa de dois espaços aqui pra esse tipo de conteúdo (119 e 120)?


```bash
curl --request GET \
--url https://api.azion.com/v4/dns/zones \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]'
```

2. Execute a seguinte requisição `PATCH` no seu terminal, substituindo `[TOKEN VALUE]` com o seu [personal token](/en/documentation/products/guides/personal-tokens/) e `<zoneId>` com o id da zona DNS para editar uma zona existente:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Execute a seguinte requisição `PATCH` no seu terminal, substituindo `[TOKEN VALUE]` com o seu [personal token](/en/documentation/products/guides/personal-tokens/) e `<zoneId>` com o id da zona DNS para editar uma zona existente:
2. Execute a seguinte requisição `PATCH` no seu terminal, substituindo `[TOKEN VALUE]` com o seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) e `<zoneId>` com o ID da zona DNS para editar uma zona existente:


```bash
curl --request PATCH \
--url https://api.azion.com/v4/dns/zones/<zoneId> \
--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
}'
```


</Fragment>

</Tabs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ Se a sua aplicação receber uma requisição gerada a partir de um IP que está
1. Execute a seguinte requisição `GET` para obter o `id` da lista **Azion IP Tor Exit Nodes**:

```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. Você receberá uma resposta semelhante a esta:
Expand Down Expand Up @@ -82,10 +83,11 @@ curl --location 'https://api.azionapi.net/network_lists' \
3. Execute a seguinte requisição `POST` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/), a variável `<edge_firewall_id>` pelo seu [ID do edge firewall](https://api.azion.com/#015cb4a3-8fa2-4625-9792-2cc271e184eb), e o valor `<network_list_id>` pelo ID da lista de nós de saída do Tor:

```bash
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/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/<edge_firewall_id>/rules \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "Block Tor Exit Nodes",
"is_active": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ Para acessar a lista do Origin Shield, você deve ter:
1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/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. Você receberá uma resposta semelhante a esta:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ Certifique-se de que o name e os SANs listados sejam iguais aos [domínios que v
1. Execute a seguinte requisição `POST` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) e os placeholder com os dados desejados:

```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": "Novo CSR",
"common_name": "dominio.net",
"country": "US",
Expand Down Expand Up @@ -159,11 +160,12 @@ Uma vez que você receber um certificado emitido pela sua CA, você deve associ
1. Execute a seguinte requisição `PATCH` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/), o `<digital_certificate_id>` pelo ID recebido na resposta anterior e o certificado na propriedade `certificate_content`:

```bash
curl --location 'https://api.azionapi.net/digital_certificates/<digital_certificate_id>' \
--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/<digital_certificate_id>\
--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-----"
}'
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ O modo **Permissive** é recomendado ao testar o acesso à sua aplicação em co
1. Execute a seguinte requisição `POST` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) e o certificado na propriedade `certificate`:

```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-----",
Expand Down Expand Up @@ -181,10 +182,11 @@ Para configurar um firewall para bloquear o acesso a um domínio usando o modo *
1. Execute a seguinte requisição `POST` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) e o `<edge_firewall_id>` pelo ID do firewall associado ao domínio mTLS:

```bash
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/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/<edge_firewall_id>/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.",
Expand Down Expand Up @@ -305,10 +307,11 @@ O uso do prefixo `X-` no nome do cabeçalho de variáveis HTTP personalizadas é
1. Execute a seguinte requisição `POST` no seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) e `<edge_application_id>` com o ID da edge application associada ao domínio com mTLS:

```bash
curl --location 'https://api.azionapi.net/edge_applications/<edge_application_id>/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/<edge_application_id>/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",
Expand Down
Loading