---
title: Search SAPM Config
slug: single-connect-api-3-0-3/search-sapm-config
description: Learn how to use the curl command to execute a POST request effortlessly with this comprehensive code example. Discover how to specify the URL, endpoint, headers, and request body, ensuring seamless communication between your application and the desired d
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "0z1bi13wYDY0nrdLLwDka",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/searchSapmConfig",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\n\t\"name\": \"static\",\n\t\"strategy\": \"SSH\"\n}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "<p>You can search by name and/or strategy of SAPM config.</p>",
    "examples": {
      "languages": [
        {
          "id": "Mss7eY-TJiHESkFtIuo96",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/searchSapmConfig \\\n     --header 'accept: application/json'"
        },
        {
          "id": "FCly7IoslKL26cSwcpB4x",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/sc/sapm/searchSapmConfig\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "w3kwm6Cha0k3YznFCHS_f",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/searchSapmConfig\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "dC3MF4ej0Texwi8l-L0Vj",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/searchSapmConfig\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "Mss7eY-TJiHESkFtIuo96"
    },
    "results": {
      "languages": [
        {
          "id": "N-5wpfKRbu3Dw3g69coVq",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "N-5wpfKRbu3Dw3g69coVq"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}