From d9ab3df04b71a0edbe41ab1555aae6b01508577d Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Fri, 21 Aug 2026 13:17:18 +0200 Subject: [PATCH] fix(authorization): Documentation link for roles was pointing to permissions Signed-off-by: Alexander Dahmen --- docs/resources/authorization_folder_role_assignment.md | 2 +- docs/resources/authorization_organization_role_assignment.md | 2 +- docs/resources/authorization_project_role_assignment.md | 2 +- docs/resources/authorization_service_account_role_assignment.md | 2 +- .../internal/services/authorization/roleassignments/resource.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/resources/authorization_folder_role_assignment.md b/docs/resources/authorization_folder_role_assignment.md index 71b27fd17..6a71bde76 100644 --- a/docs/resources/authorization_folder_role_assignment.md +++ b/docs/resources/authorization_folder_role_assignment.md @@ -36,7 +36,7 @@ resource "stackit_authorization_folder_role_assignment" "fra" { ### Required - `resource_id` (String) Folder Resource to assign the role to. -- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions` +- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/{resourceType}/{resourceId}/roles` - `subject` (String) Identifier of user, service account or client. Usually email address or name in case of clients. All letters must be lowercased. ### Read-Only diff --git a/docs/resources/authorization_organization_role_assignment.md b/docs/resources/authorization_organization_role_assignment.md index d0b1150ac..adb839804 100644 --- a/docs/resources/authorization_organization_role_assignment.md +++ b/docs/resources/authorization_organization_role_assignment.md @@ -29,7 +29,7 @@ resource "stackit_authorization_organization_role_assignment" "example" { ### Required - `resource_id` (String) Organization Resource to assign the role to. -- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions` +- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/{resourceType}/{resourceId}/roles` - `subject` (String) Identifier of user, service account or client. Usually email address or name in case of clients. All letters must be lowercased. ### Read-Only diff --git a/docs/resources/authorization_project_role_assignment.md b/docs/resources/authorization_project_role_assignment.md index ce8807082..b8b411b73 100644 --- a/docs/resources/authorization_project_role_assignment.md +++ b/docs/resources/authorization_project_role_assignment.md @@ -36,7 +36,7 @@ resource "stackit_authorization_project_role_assignment" "pra" { ### Required - `resource_id` (String) Project Resource to assign the role to. -- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions` +- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/{resourceType}/{resourceId}/roles` - `subject` (String) Identifier of user, service account or client. Usually email address or name in case of clients. All letters must be lowercased. ### Read-Only diff --git a/docs/resources/authorization_service_account_role_assignment.md b/docs/resources/authorization_service_account_role_assignment.md index cc3d7eaf6..60ba2cdde 100644 --- a/docs/resources/authorization_service_account_role_assignment.md +++ b/docs/resources/authorization_service_account_role_assignment.md @@ -50,7 +50,7 @@ resource "stackit_authorization_service_account_role_assignment" "sa" { ### Required - `resource_id` (String) Service-account Resource to assign the role to. -- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions` +- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/{resourceType}/{resourceId}/roles` - `subject` (String) Identifier of user, service account or client. Usually email address or name in case of clients. All letters must be lowercased. ### Read-Only diff --git a/stackit/internal/services/authorization/roleassignments/resource.go b/stackit/internal/services/authorization/roleassignments/resource.go index bb95299ea..36fa37d38 100644 --- a/stackit/internal/services/authorization/roleassignments/resource.go +++ b/stackit/internal/services/authorization/roleassignments/resource.go @@ -117,7 +117,7 @@ func (r *roleAssignmentResource) Schema(_ context.Context, _ resource.SchemaRequ "main": features.AddExperimentDescription(descriptionText, features.IamExperiment, core.Resource), "id": "Terraform's internal resource identifier. It is structured as \"`resource_id`,`role`,`subject`\".", "resource_id": fmt.Sprintf("%s Resource to assign the role to.", resourceTitle), - "role": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`", + "role": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/{resourceType}/{resourceId}/roles`", "subject": "Identifier of user, service account or client. Usually email address or name in case of clients. All letters must be lowercased.", }