-
Notifications
You must be signed in to change notification settings - Fork 13
[EDU-6407] fix: replaced api v3 in secure-journey - EN #1669
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
LuizaVSantos
wants to merge
8
commits into
main
Choose a base branch
from
replace-api-v3-secure-journey
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
14a2458
fix: replaced api v3 in secure-journey
LuizaVSantos 308b723
Update add-records.mdx
LuizaVSantos 4493cff
Update add-records.mdx
LuizaVSantos 31331b6
Update block-tor-networks.mdx
LuizaVSantos 6f43e15
Update access-root-domain.mdx
LuizaVSantos d2e3c8d
Update load-balance-dns.mdx
LuizaVSantos 7927349
Update add-records.mdx
LuizaVSantos 67e8e9b
Update edit-main-settings.mdx
LuizaVSantos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -53,13 +53,16 @@ Once you host your domain on Azion Edge DNS, you must change your domain's autho | |||||
</Fragment> | ||||||
|
||||||
<Fragment slot="panel.api"> | ||||||
### 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,8 +113,42 @@ 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. | ||||||
|
||||||
<LinkButton link="/en/documentation/products/guides/secure/add-records/" label="go to add records guide" severity="secondary" /> | ||||||
|
||||||
### 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 `<zoneId>`: | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Precisa da linha extra (120 e 121)? |
||||||
|
||||||
```bash | ||||||
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 `<zoneId>` with the id of the DNS Zone to edit an existing zone: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Onde aparece id nos arquivos não deveria ser ID?
Suggested change
|
||||||
|
||||||
```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> | ||||||
|
||||||
--- | ||||||
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se a linha 134 mudou pro número 6, aqui não deveria ser 7?