-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into gsharpe/documentation-changes-service-accoun…
…t-token
- Loading branch information
Showing
17 changed files
with
1,024 additions
and
39 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,63 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "grafana_cloud_provider_azure_credential Data Source - terraform-provider-grafana" | ||
subcategory: "Cloud Provider" | ||
description: |- | ||
--- | ||
|
||
# grafana_cloud_provider_azure_credential (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "grafana_cloud_provider_azure_credential" "test" { | ||
stack_id = "1" | ||
name = "test-name" | ||
client_id = "my-client-id" | ||
client_secret = "my-client-secret" | ||
tenant_id = "my-tenant-id" | ||
resource_discovery_tag_filter { | ||
key = "key-1" | ||
value = "value-1" | ||
} | ||
resource_discovery_tag_filter { | ||
key = "key-2" | ||
value = "value-2" | ||
} | ||
} | ||
data "grafana_cloud_provider_azure_credential" "test" { | ||
stack_id = grafana_cloud_provider_azure_credential.test.stack_id | ||
resource_id = grafana_cloud_provider_azure_credential.test.resource_id | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `resource_id` (String) The ID given by the Grafana Cloud Provider API to this Azure Credential resource. | ||
- `stack_id` (String) The StackID of the Grafana Cloud instance. Part of the Terraform Resource ID. | ||
|
||
### Read-Only | ||
|
||
- `client_id` (String) The client ID of the Azure Credential. | ||
- `client_secret` (String, Sensitive) The client secret of the Azure Credential. | ||
- `id` (String) The Terraform Resource ID. This has the format "{{ stack_id }}:{{ resource_id }}". | ||
- `name` (String) The name of the Azure Credential. | ||
- `resource_discovery_tag_filter` (Block List) The list of tag filters to apply to resources. (see [below for nested schema](#nestedblock--resource_discovery_tag_filter)) | ||
- `tenant_id` (String) The tenant ID of the Azure Credential. | ||
|
||
<a id="nestedblock--resource_discovery_tag_filter"></a> | ||
### Nested Schema for `resource_discovery_tag_filter` | ||
|
||
Read-Only: | ||
|
||
- `key` (String) The key of the tag filter. | ||
- `value` (String) The value of the tag filter. |
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: "grafana_cloud_provider_azure_credential Resource - terraform-provider-grafana" | ||
subcategory: "Cloud Provider" | ||
description: |- | ||
--- | ||
|
||
# grafana_cloud_provider_azure_credential (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "grafana_cloud_provider_azure_credential" "test" { | ||
stack_id = "1" | ||
name = "test-name" | ||
client_id = "my-client-id" | ||
client_secret = "my-client-secret" | ||
tenant_id = "my-tenant-id" | ||
resource_discovery_tag_filter { | ||
key = "key-1" | ||
value = "value-1" | ||
} | ||
resource_discovery_tag_filter { | ||
key = "key-2" | ||
value = "value-2" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `client_id` (String) The client ID of the Azure Credential. | ||
- `client_secret` (String, Sensitive) The client secret of the Azure Credential. | ||
- `name` (String) The name of the Azure Credential. | ||
- `stack_id` (String) The StackID of the Grafana Cloud instance. Part of the Terraform Resource ID. | ||
- `tenant_id` (String) The tenant ID of the Azure Credential. | ||
|
||
### Optional | ||
|
||
- `resource_discovery_tag_filter` (Block List) The list of tag filters to apply to resources. (see [below for nested schema](#nestedblock--resource_discovery_tag_filter)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The Terraform Resource ID. This has the format "{{ stack_id }}:{{ resource_id }}". | ||
- `resource_id` (String) The ID given by the Grafana Cloud Provider API to this AWS Account resource. | ||
|
||
<a id="nestedblock--resource_discovery_tag_filter"></a> | ||
### Nested Schema for `resource_discovery_tag_filter` | ||
|
||
Required: | ||
|
||
- `key` (String) The key of the tag filter. | ||
- `value` (String) The value of the tag filter. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import grafana_cloud_provider_azure_credential.name "{{ stack_id }}:{{ resource_id }}" | ||
``` |
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
22 changes: 22 additions & 0 deletions
22
examples/data-sources/grafana_cloud_provider_azure_credential/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,22 @@ | ||
resource "grafana_cloud_provider_azure_credential" "test" { | ||
stack_id = "1" | ||
name = "test-name" | ||
client_id = "my-client-id" | ||
client_secret = "my-client-secret" | ||
tenant_id = "my-tenant-id" | ||
|
||
resource_discovery_tag_filter { | ||
key = "key-1" | ||
value = "value-1" | ||
} | ||
resource_discovery_tag_filter { | ||
key = "key-2" | ||
value = "value-2" | ||
} | ||
} | ||
|
||
|
||
data "grafana_cloud_provider_azure_credential" "test" { | ||
stack_id = grafana_cloud_provider_azure_credential.test.stack_id | ||
resource_id = grafana_cloud_provider_azure_credential.test.resource_id | ||
} |
1 change: 1 addition & 0 deletions
1
examples/resources/grafana_cloud_provider_azure_credential/import.sh
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 grafana_cloud_provider_azure_credential.name "{{ stack_id }}:{{ resource_id }}" |
17 changes: 17 additions & 0 deletions
17
examples/resources/grafana_cloud_provider_azure_credential/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,17 @@ | ||
resource "grafana_cloud_provider_azure_credential" "test" { | ||
stack_id = "1" | ||
name = "test-name" | ||
client_id = "my-client-id" | ||
client_secret = "my-client-secret" | ||
tenant_id = "my-tenant-id" | ||
|
||
resource_discovery_tag_filter { | ||
key = "key-1" | ||
value = "value-1" | ||
} | ||
|
||
resource_discovery_tag_filter { | ||
key = "key-2" | ||
value = "value-2" | ||
} | ||
} |
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
Oops, something went wrong.