-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update mist_org_inventory documentation
- Loading branch information
Showing
4 changed files
with
33 additions
and
114 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
resource "mist_org_inventory" "inventory_one" { | ||
resource "mist_org_inventory" "inventory" { | ||
org_id = mist_org.terraform_test.id | ||
devices = [ | ||
// for to claim and man devices, use the claim code | ||
{ | ||
claim_code = "<device_claim_code>" | ||
site_id = mist_site.terraform_site.id | ||
}, | ||
{ | ||
claim_code = "<device_claim_code>" | ||
}, | ||
// for adopted devices | ||
{ | ||
mac = "<device_mac_address>" | ||
devices = { | ||
# Device Claim Code | ||
"CPKL2EXXXXXXXXX" = {} | ||
"G87JHBFXXXXXXXX" = { | ||
site_id = mist_site.terraform_site.id | ||
}, | ||
{ | ||
mac = "<device_mac_address>" | ||
}, | ||
] | ||
} | ||
unclaim_when_destroyed = true | ||
} | ||
# MAC Address | ||
"2c2131000000" = { | ||
site_id = mist_site.terraform_site.id | ||
unclaim_when_destroyed = true | ||
} | ||
"2c2131000001" = { | ||
unclaim_when_destroyed = false | ||
} | ||
} | ||
} |
This file contains 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.