Skip to content

Commit d38be41

Browse files
committed
fix: replaced api v3 in secure-jornada
1 parent 9249f98 commit d38be41

File tree

12 files changed

+176
-111
lines changed

12 files changed

+176
-111
lines changed

src/content/docs/pt-br/pages/secure-jornada/editar-edge-firewall/editar-main-settings.mdx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,29 +71,31 @@ Para configurar um edge firewall para proteger um domínio específico, [consult
7171
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>`:
7272

7373
```bash
74-
curl --location 'https://api.azionapi.net/edge_firewall \
75-
--header 'Accept: application/json; version=3' \
76-
--header 'Authorization: Token [TOKEN VALUE]'
74+
curl --request GET \
75+
--url https://api.azion.com/v4/edge_firewall/firewalls \
76+
--header 'Accept: application/json' \
77+
--header 'Authorization: [TOKEN VALUE]'
7778
```
7879

7980
2. Você receberá uma resposta com todos os seus edge firewalls existentes. Copie o valor do `<id>` que você deseja configurar.
8081
3. Execute uma requisição `PATCH` para modificar o firewall da seguinte maneira:
8182

8283
```bash
83-
curl --location --request PATCH 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>' \
84-
--header 'Accept: application/json; version=3' \
85-
--header 'Authorization: Token [TOKEN VALUE]' \
86-
--header 'Content-Type: application/json' \
87-
--data '{
88-
"name": "My edge firewall",
89-
"domains": [
90-
<domains_id>
91-
],
92-
"is_active": true,
93-
"edge_functions_enabled": true,
94-
"network_protection_enabled": true,
95-
"waf_enabled": true,
96-
"debug_rules": true
84+
curl --request PATCH \
85+
--url https://api.azion.com/v4/edge_firewall/firewalls/<id>\
86+
--header 'Accept: application/json' \
87+
--header 'Authorization: [TOKEN VALUE]' \
88+
--header 'Content-Type: application/json' \
89+
--data '{
90+
"name": "string",
91+
"modules": {
92+
"ddos_protection_enabled": true,
93+
"edge_functions_enabled": true,
94+
"network_protection_enabled": true,
95+
"waf_enabled": true
96+
},
97+
"debug_rules": false,
98+
"active": true
9799
}'
98100
```
99101

src/content/docs/pt-br/pages/secure-jornada/editar-edge-firewall/instanciar-edge-functions.mdx

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,27 @@ Quando sua aplicação receber uma requisição gerada de um dos países na list
5959
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**:
6060

6161
```bash
62-
curl --location --request PATCH 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>' \
63-
--header 'Accept: application/json; version=3' \
64-
--header 'Authorization: Token [VALOR DO TOKEN]' \
65-
--header 'Content-Type: application/json' \
66-
--data '{
67-
"edge_functions_enabled": true
68-
}'
62+
curl --request PATCH \
63+
--url https://api.azion.com/v4/edge_firewall/firewalls/<id> \
64+
--header 'Accept: application/json' \
65+
--header 'Authorization: [VALOR DO TOKEN]' \
66+
--header 'Content-Type: application/json' \
67+
--data '{
68+
"name": "string",
69+
"modules": {
70+
"edge_functions_enabled": true
71+
}
72+
}'
6973
```
7074

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

7478
```bash
75-
curl --location 'https://api.azionapi.net/edge_functions' \
76-
--header 'Accept: application/json; version=3' \
77-
--header 'Authorization: Token [TOKEN VALUE]'
79+
curl --request GET \
80+
--url https://api.azion.com/v4/edge_functions/functions \
81+
--header 'Accept: application/json' \
82+
--header 'Authorization: [TOKEN VALUE]'
7883
```
7984

8085
4. Você receberá uma resposta semelhante a esta:
@@ -113,14 +118,16 @@ curl --location 'https://api.azionapi.net/edge_functions' \
113118
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:
114119

115120
```bash
116-
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/functions_instances' \
117-
--header 'Accept: application/json; version=3' \
118-
--header 'Authorization: Token [TOKEN VALUE]' \
119-
--header 'Content-Type: application/json' \
120-
--data '{
121-
"name": "Recusar Geoip",
122-
"edge_function": <edge_function_id>,
123-
"json_args": {}
121+
curl --request POST \
122+
--url https://api.azion.com/v4/edge_firewall/firewalls/<edge_firewall_id>/functions \
123+
--header 'Accept: application/json' \
124+
--header 'Authorization: [TOKEN VALUE]' \
125+
--header 'Content-Type: application/json' \
126+
--data '{
127+
"name": "Deny Geoip",
128+
"json_args": {},
129+
"edge_function": <edge_function_id>,
130+
"active": true
124131
}'
125132
```
126133

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

151158
```bash
152-
curl --location 'https://api.azionapi.net/network_lists' \
153-
--header 'Accept: application/json; version=3' \
154-
--header 'Authorization: Token [VALOR DO TOKEN]'
159+
curl --request GET \
160+
--url https://api.azion.com/v4/workspace/network_lists \
161+
--header 'Accept: application/json' \
162+
--header 'Authorization: [TOKEN VALUE]'
155163
```
156164

157165
9. Você receberá uma resposta semelhante a esta:
@@ -192,10 +200,11 @@ curl --location 'https://api.azionapi.net/network_lists' \
192200
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:
193201

194202
```bash
195-
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/rules_engine' \
196-
--header 'Accept: application/json; version=3' \
197-
--header 'Authorization: Token [TOKEN VALUE]' \
198-
--header 'Content-Type: application/json' \
203+
curl --request POST \
204+
--url https://api.azion.com/v4/edge_firewall/firewalls/<edge_firewall_id>/rules \
205+
--header 'Accept: application/json' \
206+
--header 'Authorization: [TOKEN VALUE]' \
207+
--header 'Content-Type: application/json' \
199208
--data '{
200209
"name": "Create rule",
201210
"is_active": true,

src/content/docs/pt-br/pages/secure-jornada/editar-edge-firewall/trabalhar-com-rules-engine.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ Para criar uma regra:
5050
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):
5151

5252
```bash
53-
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/rules_engine' \
54-
--header 'Accept: application/json; version=3' \
55-
--header 'Authorization: Token [TOKEN VALUE]' \
56-
--header 'Content-Type: application/json' \
53+
curl --request POST \
54+
--url https://api.azion.com/v4/edge_firewall/firewalls/<edge_firewall_id>/rules \
55+
--header 'Accept: application/json' \
56+
--header 'Authorization: [TOKEN VALUE]' \
57+
--header 'Content-Type: application/json' \
5758
--data '{
5859
"name": "SSL Verification",
5960
"is_active": true,

src/content/docs/pt-br/pages/secure-jornada/editar-zona/adicionar-registros.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,21 @@ Após definir suas [main settings do Edge DNS](/pt-br/documentacao/produtos/guia
4040
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>`:
4141

4242
```bash
43-
curl --location 'https://api.azionapi.net/intelligent_dns' \
44-
--header 'Authorization: Token [TOKEN VALUE]' \
45-
--header 'Accept: application/json; version=3'
43+
curl --request GET \
44+
--url https://api.azion.com/v4/dns/zones \
45+
--header 'Accept: application/json' \
46+
--header 'Authorization: [TOKEN VALUE]'
4647
```
4748

4849
2. Você receberá uma resposta com todas as suas zonas existentes. Copie o valor do `<id>` que você deseja usar.
4950
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:
5051

5152
```bash
52-
curl --location 'https://api.azionapi.net/intelligent_dns/<hosted_zone_id>/records' \
53-
--header 'Content-Type: application/json' \
54-
--header 'Authorization: Token [TOKEN VALUE]' \
55-
--header 'Accept: application/json; version=3' \
53+
curl --request POST \
54+
--url https://api.azion.com/v4/dns/zones/<hosted_zone_id>/records \
55+
--header 'Accept: application/json' \
56+
--header 'Authorization: [TOKEN VALUE]' \
57+
--header 'Content-Type: application/json' \
5658
--data-raw '{
5759
"record_type": "CNAME",
5860
"entry": "www",

src/content/docs/pt-br/pages/secure-jornada/editar-zona/editar-main-settings.mdx

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,17 @@ Ao hospedar seu domínio no Edge DNS da Azion, você deve alterar os servidores
5151

5252
<Fragment slot="panel.api">
5353

54+
### Criando uma nova zona
55+
56+
5457
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:
5558

5659
```bash
57-
curl --location 'https://api.azionapi.net/intelligent_dns' \
58-
--header 'Authorization: Token [TOKEN VALUE]' \
59-
--header 'Accept: application/json; version=3' \
60-
--header 'Content-Type: application/json' \
60+
curl --request POST \
61+
--url https://api.azion.com/v4/dns/zones \
62+
--header 'Accept: application/json' \
63+
--header 'Authorization: [TOKEN VALUE]' \
64+
--header 'Content-Type: application/json' \
6165
--data '{
6266
"name": "Nova zona",
6367
"domain": "seudominio.com",
@@ -108,6 +112,39 @@ Confira a [documentação da API da Azion](https://api.azion.com/) e a [especifi
108112
Depois de configurar suas main settings, você pode adicionar registros ao seu Edge DNS.
109113

110114
<LinkButton link="/pt-br/documentacao/produtos/guias/secure/adicionar-registros/" label="consulte o guia de adicionar registros" severity="secondary" />
115+
116+
### Editando uma zona existente
117+
118+
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>`:
119+
120+
121+
```bash
122+
curl --location 'https://api.azionapi.net/intelligent_dns' \
123+
--header 'Authorization: Token [TOKEN VALUE]' \
124+
--header 'Accept: application/json; version=3'
125+
```
126+
127+
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:
128+
129+
```bash
130+
curl --request PATCH \
131+
--url https://api.azion.com/v4/dns/zones/<zoneId> \
132+
--header 'Accept: application/json' \
133+
--header 'Authorization: [TOKEN VALUE]' \
134+
--header 'Content-Type: application/json' \
135+
--data '{
136+
"name": "string",
137+
"domain": "string",
138+
"active": true,
139+
"soa_ttl": 1,
140+
"refresh": 1,
141+
"retry": 1,
142+
"expiry": 1,
143+
"nx_ttl": 1
144+
}'
145+
```
146+
147+
111148
</Fragment>
112149

113150
</Tabs>

src/content/docs/pt-br/pages/secure-jornada/firewall-configuracoes-avancadas/bloquear-redes-tor.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ Se a sua aplicação receber uma requisição gerada a partir de um IP que está
4747
1. Execute a seguinte requisição `GET` para obter o `id` da lista **Azion IP Tor Exit Nodes**:
4848

4949
```bash
50-
curl --location 'https://api.azionapi.net/network_lists' \
51-
--header 'Accept: application/json; version=3' \
52-
--header 'Authorization: Token [TOKEN VALUE]'
50+
curl --request GET \
51+
--url https://api.azion.com/v4/workspace/network_lists \
52+
--header 'Accept: application/json' \
53+
--header 'Authorization: [TOKEN VALUE]'
5354
```
5455

5556
2. Você receberá uma resposta semelhante a esta:
@@ -82,10 +83,11 @@ curl --location 'https://api.azionapi.net/network_lists' \
8283
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:
8384

8485
```bash
85-
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/rules_engine' \
86-
--header 'Accept: application/json; version=3' \
87-
--header 'Authorization: Token [TOKEN VALUE]' \
88-
--header 'Content-Type: application/json' \
86+
curl --request POST \
87+
--url https://api.azion.com/v4/edge_firewall/firewalls/<edge_firewall_id>/rules \
88+
--header 'Accept: application/json' \
89+
--header 'Authorization: [TOKEN VALUE]' \
90+
--header 'Content-Type: application/json' \
8991
--data '{
9092
"name": "Block Tor Exit Nodes",
9193
"is_active": true,

src/content/docs/pt-br/pages/secure-jornada/proteja-infraestrutura.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ Para acessar a lista do Origin Shield, você deve ter:
4343
1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/):
4444

4545
```bash
46-
curl --location 'https://api.azionapi.net/network_lists' \
47-
--header 'Accept: application/json; version=3' \
48-
--header 'Authorization: Token [TOKEN VALUE]'
46+
curl --request GET \
47+
--url https://api.azion.com/v4/workspace/network_lists \
48+
--header 'Accept: application/json' \
49+
--header 'Authorization: [TOKEN VALUE]'
4950
```
5051

5152
2. Você receberá uma resposta semelhante a esta:

src/content/docs/pt-br/pages/secure-jornada/transport-layer-security/digital-certificates.mdx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ Certifique-se de que o name e os SANs listados sejam iguais aos [domínios que v
5252
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:
5353

5454
```bash
55-
curl --location 'https://api.azionapi.net/digital_certificates/csr' \
56-
--header 'Accept: application/json; version=3' \
57-
--header 'Authorization: Token [TOKEN VALUE]' \
58-
--header 'Content-Type: application/json' \
59-
--data-raw '{
55+
curl --request POST \
56+
--url https://api.azion.com/v4/digital_certificates/csr \
57+
--header 'Accept: application/json' \
58+
--header 'Authorization: [TOKEN VALUE]' \
59+
--header 'Content-Type: application/json' \
60+
--data '{
6061
"name": "Novo CSR",
6162
"common_name": "dominio.net",
6263
"country": "US",
@@ -159,11 +160,12 @@ Uma vez que você receber um certificado emitido pela sua CA, você deve associ
159160
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`:
160161

161162
```bash
162-
curl --location 'https://api.azionapi.net/digital_certificates/<digital_certificate_id>' \
163-
--header 'Accept: application/json; version=3' \
164-
--header 'Authorization: Token [TOKEN VALUE]' \
165-
--header 'Content-Type: application/json' \
166-
--data-raw '{
163+
curl --request PATCH \
164+
--url https://api.azion.com/v4/digital_certificates/certificates/<digital_certificate_id>\
165+
--header 'Accept: application/json' \
166+
--header 'Authorization: [TOKEN VALUE]' \
167+
--header 'Content-Type: application/json' \
168+
--data '{
167169
"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-----"
168170
}'
169171
```

src/content/docs/pt-br/pages/secure-jornada/transport-layer-security/mtls.mdx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ O modo **Permissive** é recomendado ao testar o acesso à sua aplicação em co
5858
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`:
5959

6060
```bash
61-
curl --location 'https://api.azionapi.net/digital_certificates' \
62-
--header 'Accept: application/json; version=3' \
63-
--header 'Authorization: Token [TOKEN VALUE]' \
64-
--header 'Content-Type: application/json' \
61+
curl --request POST \
62+
--url https://api.azion.com/v4/digital_certificates/certificates \
63+
--header 'Accept: application/json' \
64+
--header 'Authorization: [TOKEN VALUE]' \
65+
--header 'Content-Type: application/json' \
6566
--data '{
6667
"name": "Trusted CA - mydomain.com",
6768
"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-----",
@@ -181,10 +182,11 @@ Para configurar um firewall para bloquear o acesso a um domínio usando o modo *
181182
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:
182183

183184
```bash
184-
curl --location 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>/rules_engine' \
185-
--header 'Accept: application/json; version=3' \
186-
--header 'Authorization: Token [TOKEN VALUE]' \
187-
--header 'Content-Type: application/json' \
185+
curl --request POST \
186+
--url https://api.azion.com/v4/edge_firewall/firewalls/<edge_firewall_id>/rules \
187+
--header 'Accept: application/json' \
188+
--header 'Authorization: [TOKEN VALUE]' \
189+
--header 'Content-Type: application/json' \
188190
--data '{
189191
"name": "403 Host=mydomain.com and CCV!=true",
190192
"description": "Delivers a 403 if the hostname does not match mydomain.com and if the certificate validation fails.",
@@ -305,10 +307,11 @@ O uso do prefixo `X-` no nome do cabeçalho de variáveis HTTP personalizadas é
305307
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:
306308

307309
```bash
308-
curl --location 'https://api.azionapi.net/edge_applications/<edge_application_id>/rules_engine/request/rules' \
309-
--header 'Accept: application/json; version=3' \
310-
--header 'Content-Type: application/json' \
311-
--header 'Authorization: Token [TOKEN VALUE]' \
310+
curl --request POST \
311+
--url https://api.azion.com/v4/edge_application/applications/<edge_application_id>/rules \
312+
--header 'Accept: application/json' \
313+
--header 'Authorization: [TOKEN VALUE]' \
314+
--header 'Content-Type: application/json' \
312315
--data '{
313316
"name": "mTLS variables",
314317
"description": "Adds certificate values according to Open Banking standards",

0 commit comments

Comments
 (0)