List resource groups Run in API Explorer

GET /v1/resource-groups

List Redpanda resource groups. The filter. query string parameter finds resource groups that match the provided name.

Query parameters

  • filter.name_contains string

    Name of resource group. Partial match.

  • page_size integer(int32)

    Minimum value is 1, maximum value is 100.

  • page_token string
  • read_mask string

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • next_page_token string
    • resource_groups array[object]

      Matching resource groups.

      Not more than 100 elements.

      Hide resource_groups attributes Show resource_groups attributes object
      • created_at string(date-time)
      • id string
      • name string

        The unique name of the resource group.

      • updated_at string(date-time)
  • 500 application/json

    Internal Server Error. Reach out to support.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

GET /v1/resource-groups
curl \
 --request GET 'https://api.redpanda.com/v1/resource-groups' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "next_page_token": "some-opaque-string",
  "resource_groups": [
    {
      "id": "897e76ad-64d5-4314-9d81-7383fa14100d",
      "name": "my-new-namespace",
      "created_at": "2023-08-25T00:00:00Z",
      "updated_at": null
    }
  ]
}
Response examples (500)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}