Skip to content

Commit

Permalink
fix IpamIPAddressCreate mutation in getting started tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
wvandeun committed Sep 25, 2024
1 parent d2f5a69 commit f45ae05
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/docs/tutorials/getting-started/graphql-mutation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ mutation {
ok
object {
id
hfid
name {
value
}
Expand All @@ -65,16 +66,14 @@ mutation {
}
```

Copy the ID of the newly created interface, we'll need it for the next query.

Add a new IP address connected to the new interface.

```graphql
# Endpoint : http://127.0.0.1:8000/graphql/cr1234
mutation {
InfraIPAddressCreate(
IpamIPAddressCreate(
data: {
interface: { id: "<INTERFACE Ethernet0 UUID>" },
interface: { hfid: ["ord1-edge1", "Ethernet0"]},
address: { value: "192.168.0.2/24" }
}
) {
Expand Down

0 comments on commit f45ae05

Please sign in to comment.