-
Notifications
You must be signed in to change notification settings - Fork 3
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
Initial port to nautobot 2 #17
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2fbeb7c
Initial port to nautobot 2
TobiPeterG 3c3745a
Fix API authentication
TobiPeterG 9e58ab2
Fix API auth in data source
TobiPeterG 1bca921
Fix Manufacturer creation
TobiPeterG fe48bb3
Add cluster_type resource and data source
TobiPeterG fa7ddd4
Add cluster resource and data source
TobiPeterG 487c827
Add Virtual Machine data source and resource
TobiPeterG 7645902
Add all data sources and single data sources
TobiPeterG 8ebc4cd
Add VLAN and VLANs data sources
TobiPeterG 1bf5318
Fix data source ID and add Prefix data sources
TobiPeterG 1e46843
Add VM Interface resource
TobiPeterG 2151ecd
Add available_ip and vm_primary_ip resources
TobiPeterG 5162f48
Cleanup code
TobiPeterG fdf0ee7
Switch to official go-nautobot
TobiPeterG c8771ba
Merge branch 'main' into update-2.0
TobiPeterG f3d66ae
Update to go 1.23
TobiPeterG 5f9a412
Update docs
TobiPeterG 50ac22c
Rename available_ip to available_ip_address
TobiPeterG 48773c8
Support setting dns_name in available_ip_address resource
TobiPeterG 3b3c516
Update terraform protocol
TobiPeterG e70e0ef
Fix github CI
TobiPeterG 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 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_available_ip_address Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
This data source retrieves an available IP address from a given prefix in Nautobot | ||
--- | ||
|
||
# nautobot_available_ip_address (Data Source) | ||
|
||
This data source retrieves an available IP address from a given prefix in Nautobot | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `prefix_id` (String) The ID of the prefix from which to retrieve an available IP. | ||
|
||
### Read-Only | ||
|
||
- `address` (String) The available IP address. | ||
- `id` (String) The ID of this resource. | ||
- `ip_version` (Number) The version of the IP address (4 or 6). | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_cluster Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
Retrieves information about a specific cluster in Nautobot. | ||
--- | ||
|
||
# nautobot_cluster (Data Source) | ||
|
||
Retrieves information about a specific cluster in Nautobot. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the cluster. | ||
|
||
### Read-Only | ||
|
||
- `cluster_group_id` (String) The ID of the cluster group. | ||
- `cluster_type_id` (String) The ID of the cluster type. | ||
- `comments` (String) Comments or notes about the cluster. | ||
- `created` (String) The creation date of the cluster. | ||
- `id` (String) The UUID of the cluster. | ||
- `last_updated` (String) The last update date of the cluster. | ||
- `location_id` (String) The ID of the location associated with the cluster. | ||
- `tags_ids` (List of String) The IDs of the tags associated with the cluster. | ||
- `tenant_id` (String) The ID of the tenant associated with the cluster. | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_cluster_type Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
Retrieves information about a specific cluster type in Nautobot. | ||
--- | ||
|
||
# nautobot_cluster_type (Data Source) | ||
|
||
Retrieves information about a specific cluster type in Nautobot. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the cluster type to retrieve. | ||
|
||
### Read-Only | ||
|
||
- `created` (String) The date the cluster type was created. | ||
- `description` (String) The description of the cluster type. | ||
- `display` (String) Human-friendly display value for the cluster type. | ||
- `id` (String) The UUID of the cluster type. | ||
- `last_updated` (String) The date the cluster type was last updated. | ||
- `natural_slug` (String) Natural slug for the cluster type. | ||
- `notes_url` (String) Notes URL for the cluster type. | ||
- `object_type` (String) Object type of the cluster type. | ||
- `url` (String) URL of the cluster type. | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_cluster_types Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
Retrieves information about cluster types in Nautobot. | ||
--- | ||
|
||
# nautobot_cluster_types (Data Source) | ||
|
||
Retrieves information about cluster types in Nautobot. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `cluster_types` (List of Object) (see [below for nested schema](#nestedatt--cluster_types)) | ||
- `id` (String) The ID of this resource. | ||
|
||
<a id="nestedatt--cluster_types"></a> | ||
### Nested Schema for `cluster_types` | ||
|
||
Read-Only: | ||
|
||
- `created` (String) | ||
- `description` (String) | ||
- `display` (String) | ||
- `id` (String) | ||
- `last_updated` (String) | ||
- `name` (String) | ||
- `natural_slug` (String) | ||
- `notes_url` (String) | ||
- `object_type` (String) | ||
- `url` (String) | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_clusters Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
Retrieves information about clusters in Nautobot. | ||
--- | ||
|
||
# nautobot_clusters (Data Source) | ||
|
||
Retrieves information about clusters in Nautobot. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `clusters` (List of Object) (see [below for nested schema](#nestedatt--clusters)) | ||
- `id` (String) The ID of this resource. | ||
|
||
<a id="nestedatt--clusters"></a> | ||
### Nested Schema for `clusters` | ||
|
||
Read-Only: | ||
|
||
- `cluster_group_id` (String) | ||
- `cluster_type_id` (String) | ||
- `comments` (String) | ||
- `created` (String) | ||
- `id` (String) | ||
- `last_updated` (String) | ||
- `location_id` (String) | ||
- `name` (String) | ||
- `tags_ids` (List of String) | ||
- `tenant_id` (String) | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_manufacturer Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
Retrieves information about a specific manufacturer in Nautobot. | ||
--- | ||
|
||
# nautobot_manufacturer (Data Source) | ||
|
||
Retrieves information about a specific manufacturer in Nautobot. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the manufacturer to retrieve. | ||
|
||
### Read-Only | ||
|
||
- `created` (String) Manufacturer's creation date. | ||
- `description` (String) Manufacturer's description. | ||
- `display` (String) Human friendly display value for the manufacturer. | ||
- `id` (String) Manufacturer's UUID. | ||
- `last_updated` (String) Manufacturer's last update. | ||
- `natural_slug` (String) Natural slug for the manufacturer. | ||
- `notes_url` (String) Notes URL for the manufacturer. | ||
- `object_type` (String) Object type of the manufacturer. | ||
- `url` (String) URL of the manufacturer. | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_prefix Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
Retrieves information about a Prefix in Nautobot by its associated VLAN ID. | ||
--- | ||
|
||
# nautobot_prefix (Data Source) | ||
|
||
Retrieves information about a Prefix in Nautobot by its associated VLAN ID. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `vlan_id` (String) The UUID of the VLAN to retrieve the prefix for. | ||
|
||
### Read-Only | ||
|
||
- `created` (String) The creation date of the prefix. | ||
- `description` (String) Description of the prefix. | ||
- `id` (String) The UUID of the prefix. | ||
- `last_updated` (String) The last update date of the prefix. | ||
- `namespace_id` (String) The ID of the namespace associated with the prefix. | ||
- `prefix` (String) The prefix. | ||
- `rir_id` (String) The ID of the RIR associated with the prefix. | ||
- `role_id` (String) The ID of the role associated with the prefix. | ||
- `status` (String) The status of the prefix. | ||
- `tenant_id` (String) The ID of the tenant associated with the prefix. | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_prefixes Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
Retrieves information about all prefixes in Nautobot. | ||
--- | ||
|
||
# nautobot_prefixes (Data Source) | ||
|
||
Retrieves information about all prefixes in Nautobot. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `prefixes` (List of Object) (see [below for nested schema](#nestedatt--prefixes)) | ||
|
||
<a id="nestedatt--prefixes"></a> | ||
### Nested Schema for `prefixes` | ||
|
||
Read-Only: | ||
|
||
- `created` (String) | ||
- `description` (String) | ||
- `id` (String) | ||
- `last_updated` (String) | ||
- `namespace_id` (String) | ||
- `prefix` (String) | ||
- `rir_id` (String) | ||
- `role_id` (String) | ||
- `status` (String) | ||
- `tenant_id` (String) | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nautobot_virtual_machine Data Source - terraform-provider-nautobot" | ||
subcategory: "" | ||
description: |- | ||
Retrieves information about a specific virtual machine in Nautobot. | ||
--- | ||
|
||
# nautobot_virtual_machine (Data Source) | ||
|
||
Retrieves information about a specific virtual machine in Nautobot. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the virtual machine to retrieve. | ||
|
||
### Read-Only | ||
|
||
- `cluster_id` (String) The ID of the cluster associated with the virtual machine. | ||
- `comments` (String) Comments or notes about the virtual machine. | ||
- `created` (String) The creation date of the virtual machine. | ||
- `disk` (Number) The disk size in GB. | ||
- `id` (String) The UUID of the virtual machine. | ||
- `last_updated` (String) The last update date of the virtual machine. | ||
- `memory` (Number) The amount of memory in MB. | ||
- `platform_id` (String) The ID of the platform associated with the virtual machine. | ||
- `primary_ip4_id` (String) The ID of the primary IPv4 address. | ||
- `primary_ip6_id` (String) The ID of the primary IPv6 address. | ||
- `role_id` (String) The ID of the role associated with the virtual machine. | ||
- `status` (String) The name of the status of the virtual machine. | ||
- `tags_ids` (List of String) The IDs of the tags associated with the virtual machine. | ||
- `tenant_id` (String) The ID of the tenant associated with the virtual machine. | ||
- `vcpus` (Number) The number of virtual CPUs. | ||
|
||
|
Oops, something went wrong.
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.
@TobiPeterG could you update the readme to explain how you have generated the docs. thanks
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.
This is generated with the command "go generate" if I'm not mistaken, it's documented in the main.go
It is also automatically executed in the GitHub ci afaik :)