---
title: List All SAPM Configs
slug: single-connect-api-3-0-3/list-all-sapm-configs
description: Learn how to use cURL to make a GET request and retrieve SAPM configurations with this document. Discover code examples that showcase the proper URL and headers, enabling you to seamlessly accept and send JSON data. Enhance your understanding and implemen
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "C6VxaUWCXD-OLPjV37ldW",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/listSapmConfigs",
    "method": "GET",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "You can list all SAPM configs with this API. It will return information about all configs.",
    "examples": {
      "languages": [
        {
          "id": "zFsJheLmns2nGtCg0r43R",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/listSapmConfigs \\\n     --header 'accept: application/json'"
        },
        {
          "id": "vrECmw5JuS5Nlcu7z3YDJ",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/sc/sapm/listSapmConfigs\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "tM6zA93rrjZRlwUJojkub",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/listSapmConfigs\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "SlQ9Ly3FiHwiT4_PEdVeT",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/listSapmConfigs\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "zFsJheLmns2nGtCg0r43R"
    },
    "results": {
      "languages": [
        {
          "id": "rlIn2zE8FjwS9lkrc-qaW",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "rlIn2zE8FjwS9lkrc-qaW"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}