-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
907 additions
and
8 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
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,69 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_device_claim_site Resource - terraform-provider-catalystcenter" | ||
subcategory: "Plug and Play" | ||
description: |- | ||
This resource can manage a Device Claim Site. | ||
--- | ||
|
||
# catalystcenter_device_claim_site (Resource) | ||
|
||
This resource can manage a Device Claim Site. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "catalystcenter_device_claim_site" "example" { | ||
device_id = "12345678-1234-1234-1234-123456789012" | ||
site_id = "12345678-1234-1234-1234-123456789012" | ||
type = "Default" | ||
image_id = "" | ||
image_skip = true | ||
config_id = "template1" | ||
config_parameters = [ | ||
{ | ||
name = "HOSTNAME" | ||
value = "switch1" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `device_id` (String) The device ID | ||
- `site_id` (String) The site ID | ||
- `type` (String) The device type | ||
- Choices: `Default`, `StackSwitch`, `AccessPoint`, `Sensor`, `CatalystWLC`, `MobilityExpress` | ||
|
||
### Optional | ||
|
||
- `config_id` (String) Config (temaplate) ID. Required if `type` is `Default` or `StackSwitch`. | ||
- `config_parameters` (Attributes List) List of config (temaplate) parameters. (see [below for nested schema](#nestedatt--config_parameters)) | ||
- `gateway` (String) Gateway IP. Required if `type` is `CatalystWLC` or `MobilityExpress`. | ||
- `image_id` (String) Image ID. Required if `type` is `Default` or `StackSwitch`. | ||
- `image_skip` (Boolean) Skip image provisioning. | ||
- `ip_interface_name` (String) IP interface name. Required for Catalyst 9800 WLC. | ||
- `rf_profile` (String) RF profile. Required if `type` is `AccessPoint`. | ||
- `sensor_profile` (String) Sensor profile. Required if `type` is `Sensor`. | ||
- `static_ip` (String) Static IP address. Required if `type` is `CatalystWLC` or `MobilityExpress`. | ||
- `subnet_mask` (String) Subnet mask. Required if `type` is `CatalystWLC` or `MobilityExpress`. | ||
- `vlan_id` (String) Vlan ID. Required for Catalyst 9800 WLC. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
<a id="nestedatt--config_parameters"></a> | ||
### Nested Schema for `config_parameters` | ||
|
||
Required: | ||
|
||
- `name` (String) Name of config parameter. | ||
|
||
Optional: | ||
|
||
- `value` (String) Value of config parameter. |
14 changes: 14 additions & 0 deletions
14
examples/resources/catalystcenter_device_claim_site/resource.tf
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,14 @@ | ||
resource "catalystcenter_device_claim_site" "example" { | ||
device_id = "12345678-1234-1234-1234-123456789012" | ||
site_id = "12345678-1234-1234-1234-123456789012" | ||
type = "Default" | ||
image_id = "" | ||
image_skip = true | ||
config_id = "template1" | ||
config_parameters = [ | ||
{ | ||
name = "HOSTNAME" | ||
value = "switch1" | ||
} | ||
] | ||
} |
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,96 @@ | ||
--- | ||
name: Device Claim Site | ||
rest_endpoint: /dna/intent/api/v1/onboarding/pnp-device/site-claim | ||
no_data_source: true | ||
no_read: true | ||
no_delete: true | ||
no_import: true | ||
post_update: true | ||
skip_minimum_test: true | ||
doc_category: Plug and Play | ||
test_tags: [PNP] | ||
attributes: | ||
- model_name: deviceId | ||
type: String | ||
mandatory: true | ||
id: true | ||
description: The device ID | ||
example: 12345678-1234-1234-1234-123456789012 | ||
- model_name: siteId | ||
type: String | ||
mandatory: true | ||
description: The site ID | ||
example: 12345678-1234-1234-1234-123456789012 | ||
- model_name: type | ||
type: String | ||
mandatory: true | ||
enum_values: [Default, StackSwitch, AccessPoint, Sensor, CatalystWLC, MobilityExpress] | ||
description: The device type | ||
example: Default | ||
- model_name: imageId | ||
data_path: imageInfo | ||
type: String | ||
description: Image ID. Required if `type` is `Default` or `StackSwitch`. | ||
example: "" | ||
- model_name: skip | ||
data_path: imageInfo | ||
tf_name: image_skip | ||
type: Bool | ||
description: Skip image provisioning. | ||
example: true | ||
- model_name: configId | ||
data_path: configInfo | ||
type: String | ||
description: Config (temaplate) ID. Required if `type` is `Default` or `StackSwitch`. | ||
example: template1 | ||
- model_name: configParameters | ||
data_path: configInfo | ||
type: List | ||
description: List of config (temaplate) parameters. | ||
attributes: | ||
- model_name: key | ||
tf_name: name | ||
id: true | ||
type: String | ||
description: Name of config parameter. | ||
example: HOSTNAME | ||
- model_name: value | ||
type: String | ||
description: Value of config parameter. | ||
example: switch1 | ||
- model_name: rfProfile | ||
type: String | ||
description: RF profile. Required if `type` is `AccessPoint`. | ||
example: profile1 | ||
exclude_test: true | ||
- model_name: staticIP | ||
tf_name: static_ip | ||
type: String | ||
description: Static IP address. Required if `type` is `CatalystWLC` or `MobilityExpress`. | ||
example: 1.2.3.4 | ||
exclude_test: true | ||
- model_name: subnetMask | ||
type: String | ||
description: Subnet mask. Required if `type` is `CatalystWLC` or `MobilityExpress`. | ||
example: 255.255.255.0 | ||
exclude_test: true | ||
- model_name: gateway | ||
type: String | ||
description: Gateway IP. Required if `type` is `CatalystWLC` or `MobilityExpress`. | ||
example: 1.2.3.1 | ||
exclude_test: true | ||
- model_name: vlanId | ||
type: String | ||
description: Vlan ID. Required for Catalyst 9800 WLC. | ||
example: "100" | ||
exclude_test: true | ||
- model_name: ipInterfaceName | ||
type: String | ||
description: IP interface name. Required for Catalyst 9800 WLC. | ||
example: GigabitEthernet1 | ||
exclude_test: true | ||
- model_name: sensorProfile | ||
type: String | ||
description: Sensor profile. Required if `type` is `Sensor`. | ||
example: profile1 | ||
exclude_test: true |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.