GitBook: [#3508] No subject

This commit is contained in:
CPol 2022-09-25 22:19:09 +00:00 committed by gitbook-bot
parent 4616b89fc7
commit 40d4d04877
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -298,12 +298,15 @@ Documentation available at [`https://metadata.packet.net/userdata`](https://meta
* Must **not** contain an `X-Forwarded-For` header
```powershell
http://169.254.169.254/metadata/instance?api-version=2017-04-02
http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text
# Powershell
Invoke-RestMethod -Headers @{"Metadata"="true"} -Method GET -NoProxy -Uri "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | ConvertTo-Json -Depth 64
# Linux
curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | jq
# Paths
/metadata/instance?api-version=2017-04-02
/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text
/metadata/instance/compute/userData?api-version=2021-01-01&format=text
```
### Azure Apps