Skip to content
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

Update docs with link to import-state how-to #163

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/resources/port_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ subcategory: ""
description: |-
Integration resource
NOTE: This resource manages existing integration and integration mappings, not for creating new integrations.
Docs about integration and be found here https://docs.getport.io/integrations-index/.
Docs about integrations can be found here https://docs.getport.io/integrations-index/.
Docs about how to import existing integrations and manage their mappings can be found here https://docs.getport.io/build-your-software-catalog/custom-integration/iac/terraform/examples/import-and-manage-integration.
```hcl
resource "portintegration" "mycustomintegration" {
installationid = "my-custom-integration-id"
Expand Down Expand Up @@ -46,7 +47,9 @@ description: |-

**NOTE:** This resource manages existing integration and integration mappings, not for creating new integrations.

Docs about integration and be found [here](https://docs.getport.io/integrations-index/).
Docs about integrations can be found [here](https://docs.getport.io/integrations-index/).

Docs about how to import existing integrations and manage their mappings can be found [here](https://docs.getport.io/build-your-software-catalog/custom-integration/iac/terraform/examples/import-and-manage-integration).


```hcl
Expand Down
8 changes: 4 additions & 4 deletions docs/resources/port_page.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ page_title: "port_page Resource - terraform-provider-port-labs"
subcategory: ""
description: |-
Page resource
Docs about the different page types can be found here https://docs.getport.io/customize-pages-dashboards-and-plugins/page/catalog-page.
Docs about the different widget types can be found here https://docs.getport.io/customize-pages-dashboards-and-plugins/dashboards/#widget-type-identifiers-terraform.
A full list of the available page types and their identifiers can be found here https://docs.getport.io/customize-pages-dashboards-and-plugins/page/catalog-page.
A full list of widget types and their identifiers can be found here https://docs.getport.io/customize-pages-dashboards-and-plugins/dashboards/#widget-type-identifiers-terraform.
~> WARNING
The page resource is currently in beta and is subject to change in future versions.
Use it by setting the Environment Variable PORT_BETA_FEATURES_ENABLED=true.
Expand Down Expand Up @@ -215,9 +215,9 @@ description: |-

# Page resource

Docs about the different page types can be found [here](https://docs.getport.io/customize-pages-dashboards-and-plugins/page/catalog-page).
A full list of the available page types and their identifiers can be found [here](https://docs.getport.io/customize-pages-dashboards-and-plugins/page/catalog-page).

Docs about the different widget types can be found [here](https://docs.getport.io/customize-pages-dashboards-and-plugins/dashboards/#widget-type-identifiers-terraform).
A full list of widget types and their identifiers can be found [here](https://docs.getport.io/customize-pages-dashboards-and-plugins/dashboards/#widget-type-identifiers-terraform).

~> **WARNING**
The page resource is currently in beta and is subject to change in future versions.
Expand Down
7 changes: 4 additions & 3 deletions examples/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ terraform {
}
}
provider "port" {
client_id = "60EsooJtOqimlekxrNh7nfr2iOgTcyLZ" # or set the environment variable PORT_CLIENT_ID
secret = "35D7Hw4ZpjdHW0u1lNS0cE5UXvevhlGQWeXuwkIX91s6UjgLzO44GSBG9yNBdehr" # or set the environment variable PORT_CLIENT_SECRET
base_url = "http://localhost:3000"
client_id = "" # or set the environment variable PORT_CLIENT_ID
secret = "" # or set the environment variable PORT_CLIENT_SECRET
base_url = "https://api.getport.io"

}
4 changes: 3 additions & 1 deletion port/integration/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ var IntegrationResourceMarkdownDescription = `

**NOTE:** This resource manages existing integration and integration mappings, not for creating new integrations.

Docs about integration and be found [here](https://docs.getport.io/integrations-index/).
Docs about integrations can be found [here](https://docs.getport.io/integrations-index/).

Docs about how to import existing integrations and manage their mappings can be found [here](https://docs.getport.io/build-your-software-catalog/custom-integration/iac/terraform/examples/import-and-manage-integration).


` + "```hcl" + `
Expand Down
4 changes: 2 additions & 2 deletions port/page/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ var PageResourceMarkdownDescription = `

# Page resource

Docs about the different page types can be found [here](https://docs.getport.io/customize-pages-dashboards-and-plugins/page/catalog-page).
A full list of the available page types and their identifiers can be found [here](https://docs.getport.io/customize-pages-dashboards-and-plugins/page/catalog-page).

Docs about the different widget types can be found [here](https://docs.getport.io/customize-pages-dashboards-and-plugins/dashboards/#widget-type-identifiers-terraform).
A full list of widget types and their identifiers can be found [here](https://docs.getport.io/customize-pages-dashboards-and-plugins/dashboards/#widget-type-identifiers-terraform).

~> **WARNING**
The page resource is currently in beta and is subject to change in future versions.
Expand Down
Loading