{
  "opencollection": "1.0.0",
  "info": {
    "name": "Red Hat Subscription Management API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "Systems",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Systems",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.access.redhat.com/management/v1/systems",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of systems to return"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Offset for pagination"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns a list of systems registered with Red Hat Subscription Management. Supports pagination via limit and offset parameters."
        },
        {
          "info": {
            "name": "Get System",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.access.redhat.com/management/v1/systems/:uuid",
            "params": [
              {
                "name": "uuid",
                "value": "",
                "type": "path",
                "description": "System UUID"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns details for a specific registered system by UUID."
        }
      ]
    },
    {
      "info": {
        "name": "Subscriptions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Subscriptions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.access.redhat.com/management/v1/subscriptions",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns a list of subscriptions associated with the authenticated Red Hat account."
        },
        {
          "info": {
            "name": "List Allocations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.access.redhat.com/management/v1/allocations",
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns a list of subscription allocations for the account."
        }
      ]
    }
  ],
  "bundled": true
}