{
  "opencollection": "1.0.0",
  "info": {
    "name": "Managed Database for PostgreSQL and MySQL Access Control List Tokens API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "Tokens",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all tokens",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.scaleway.com/functions/v1beta1/regions/:region/tokens",
            "params": [
              {
                "name": "region",
                "value": "",
                "type": "path",
                "description": "The region you want to target"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of tokens per page."
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "Sort order for the tokens."
              },
              {
                "name": "function_id",
                "value": "",
                "type": "query",
                "description": "UUID of the function the token is associated with."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "query",
                "description": "UUID of the namespace the token is associated with."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-Auth-Token",
              "value": "{{X-Auth-Token}}",
              "placement": "header"
            }
          },
          "docs": "List all tokens"
        },
        {
          "info": {
            "name": "Create a new revocable token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.scaleway.com/functions/v1beta1/regions/:region/tokens",
            "params": [
              {
                "name": "region",
                "value": "",
                "type": "path",
                "description": "The region you want to target"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "X-Auth-Token",
              "value": "{{X-Auth-Token}}",
              "placement": "header"
            }
          },
          "docs": "Deprecated in favor of IAM authentication."
        },
        {
          "info": {
            "name": "Get a token",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.scaleway.com/functions/v1beta1/regions/:region/tokens/:token_id",
            "params": [
              {
                "name": "region",
                "value": "",
                "type": "path",
                "description": "The region you want to target"
              },
              {
                "name": "token_id",
                "value": "",
                "type": "path",
                "description": "UUID of the token to get."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-Auth-Token",
              "value": "{{X-Auth-Token}}",
              "placement": "header"
            }
          },
          "docs": "Get a token"
        },
        {
          "info": {
            "name": "Delete a token",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.scaleway.com/functions/v1beta1/regions/:region/tokens/:token_id",
            "params": [
              {
                "name": "region",
                "value": "",
                "type": "path",
                "description": "The region you want to target"
              },
              {
                "name": "token_id",
                "value": "",
                "type": "path",
                "description": "UUID of the token to delete."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-Auth-Token",
              "value": "{{X-Auth-Token}}",
              "placement": "header"
            }
          },
          "docs": "Delete a token"
        }
      ]
    }
  ],
  "bundled": true
}