|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "pcd_identity_auth_scope Data Source - pcd" |
| 4 | +subcategory: "Identity" |
| 5 | +description: |- |
| 6 | + Details about the authentication scope (user, project, domain, and roles) of the token the provider is currently using. Useful for wiring identity attributes into other resources. |
| 7 | +--- |
| 8 | + |
| 9 | +# pcd_identity_auth_scope (Data Source) |
| 10 | + |
| 11 | +Details about the authentication scope (user, project, domain, and roles) of the token the provider is currently using. Useful for wiring identity attributes into other resources. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +data "pcd_identity_auth_scope" "example" { |
| 17 | + name = "tf-example-scope" |
| 18 | + region = "RegionOne" |
| 19 | +} |
| 20 | +``` |
| 21 | + |
| 22 | +<!-- schema generated by tfplugindocs --> |
| 23 | +## Schema |
| 24 | + |
| 25 | +### Required |
| 26 | + |
| 27 | +- `name` (String) An arbitrary name for this scope lookup (used as the data source identifier). |
| 28 | + |
| 29 | +### Optional |
| 30 | + |
| 31 | +- `region` (String) The region the scope was resolved in. Defaults to the provider's region. |
| 32 | + |
| 33 | +### Read-Only |
| 34 | + |
| 35 | +- `domain_id` (String) ID of the scoped domain (for a domain-scoped token). |
| 36 | +- `domain_name` (String) Name of the scoped domain. |
| 37 | +- `id` (String) Mirrors `name`; present so the data source has a stable identifier. |
| 38 | +- `project_domain_id` (String) Domain ID of the scoped project. |
| 39 | +- `project_domain_name` (String) Domain name of the scoped project. |
| 40 | +- `project_id` (String) ID of the scoped project (empty for a domain-scoped token). |
| 41 | +- `project_name` (String) Name of the scoped project. |
| 42 | +- `roles` (Attributes List) Roles the user holds in the current scope. (see [below for nested schema](#nestedatt--roles)) |
| 43 | +- `user_domain_id` (String) Domain ID of the authenticated user. |
| 44 | +- `user_domain_name` (String) Domain name of the authenticated user. |
| 45 | +- `user_id` (String) ID of the authenticated user. |
| 46 | +- `user_name` (String) Name of the authenticated user. |
| 47 | + |
| 48 | +<a id="nestedatt--roles"></a> |
| 49 | +### Nested Schema for `roles` |
| 50 | + |
| 51 | +Read-Only: |
| 52 | + |
| 53 | +- `role_id` (String) Role ID. |
| 54 | +- `role_name` (String) Role name. |
0 commit comments