powerplatform_connection_shares (Data Source)
Example Usage
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}
provider "powerplatform" {
use_cli = true
}
data "powerplatform_connection_shares" "all_shares" {
environment_id = var.environment_id
connector_name = "shared_azureopenai"
connection_id = var.azure_openai_connection_id
}
Schema
Required
connection_id
(String) Connection Id. The unique identifier of the connection that the shares are associated with.connector_name
(String) Connector Name. The unique identifier of the connector that the connection are associated with.environment_id
(String) Environment Id. The unique identifier of the environment that the connection are associated with.
Optional
timeouts
(Attributes) (see below for nested schema)
Read-Only
id
(String) The ID of this resource.shares
(Attributes List) List of shares for a given connection. (see below for nested schema)
Nested Schema for timeouts
Optional:
read
(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Nested Schema for shares
Read-Only:
id
(String) Unique share idprincipal
(Attributes) (see below for nested schema)role_name
(String) Role name of the share
Nested Schema for shares.principal
Read-Only:
display_name
(String) Principal Display Nameentra_object_id
(String) Entra Object Id of the principal