Skip to content

Custom Role data source documentation is contradictory #1579

Description

@HartmannVolker

Description

The example for the custom role data source shows this:

data "stackit_authorization_organization_custom_role" "example" {
  resource_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name        = "my.custom.role"
}

But the schema describes the role_id as required.

From the API documentation I assume the example is just wrong. But I would also like to add, that it would be super useful to get an existing role via name only instead of needing to provide the role_id.
The current implementation doesn't really add value, because if I already have the role_id, I don't see why I would want to use the data source, except for validation maybe.

REF:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions