-
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
19 changed files
with
773 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_sp_profile Data Source - terraform-provider-catalystcenter" | ||
subcategory: "Network Settings" | ||
description: |- | ||
This data source can read the SP Profile. | ||
--- | ||
|
||
# catalystcenter_sp_profile (Data Source) | ||
|
||
This data source can read the SP Profile. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "catalystcenter_sp_profile" "example" { | ||
id = "Profile1" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The id of the object | ||
|
||
### Read-Only | ||
|
||
- `model` (String) The model | ||
- `name` (String) The name of the SP profile | ||
- `wan_provider` (String) The WAN provider |
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,43 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_sp_profile Resource - terraform-provider-catalystcenter" | ||
subcategory: "Network Settings" | ||
description: |- | ||
This resource can manage a SP Profile. | ||
--- | ||
|
||
# catalystcenter_sp_profile (Resource) | ||
|
||
This resource can manage a SP Profile. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "catalystcenter_sp_profile" "example" { | ||
name = "Profile1" | ||
model = "4-class-model" | ||
wan_provider = "Provider1" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `model` (String) The model | ||
- Choices: `4-class-model`, `5-class-model`, `6-class-model`, `8-class-model` | ||
- `name` (String) The name of the SP profile | ||
- `wan_provider` (String) The WAN provider | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import catalystcenter_sp_profile.example "Profile1" | ||
``` |
3 changes: 3 additions & 0 deletions
3
examples/data-sources/catalystcenter_sp_profile/data-source.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,3 @@ | ||
data "catalystcenter_sp_profile" "example" { | ||
id = "Profile1" | ||
} |
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 @@ | ||
terraform import catalystcenter_sp_profile.example "Profile1" |
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,5 @@ | ||
resource "catalystcenter_sp_profile" "example" { | ||
name = "Profile1" | ||
model = "4-class-model" | ||
wan_provider = "Provider1" | ||
} |
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,33 @@ | ||
--- | ||
name: SP Profile | ||
rest_endpoint: /dna/intent/api/v2/service-provider | ||
delete_rest_endpoint: /dna/intent/api/v2/sp-profile | ||
get_from_all: true | ||
id_from_query_path: response.0.value | ||
id_from_attribute: true | ||
doc_category: Network Settings | ||
attributes: | ||
- model_name: profileName | ||
response_model_name: spProfileName | ||
tf_name: name | ||
data_path: settings.qos.0 | ||
response_data_path: spProfileName | ||
type: String | ||
id: true | ||
description: The name of the SP profile | ||
example: Profile1 | ||
- model_name: model | ||
data_path: settings.qos.0 | ||
response_data_path: slaProfileName | ||
type: String | ||
enum_values: [4-class-model, 5-class-model, 6-class-model, 8-class-model] | ||
mandatory: true | ||
description: The model | ||
example: 4-class-model | ||
- model_name: wanProvider | ||
data_path: settings.qos.0 | ||
response_data_path: wanProvider | ||
type: String | ||
mandatory: true | ||
description: The WAN provider | ||
example: Provider1 |
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.
120 changes: 120 additions & 0 deletions
120
internal/provider/data_source_catalystcenter_sp_profile.go
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.