---
title: List All Masking Methods
slug: single-connect-api-3-2-0/list-all-masking-methods
description: Learn how to make a POST request using the curl command in this code example. Explore the step-by-step instructions to send a JSON payload containing the "body" parameter with the value "string" to a specific URL. Discover how to specify the necessary hea
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "U-FH_c6anAu8ETawzNR0W",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sqlproxy/listMaskingMethod",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "Content-Type",
          "type": "string",
          "example": "application/json",
          "description": ""
        },
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\r\n    \"name\": \"new method\",\r\n    \"methodPattern\": \"REGEXP_REPLACE(${column}, '[A-Za-z]', 'x')\",\r\n    \"hideColumn\": false,\r\n    \"description\": \"new method masking\",\r\n    \"columnType\": \"varchar\"\r\n}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "<p>This method lists masking methods. To get entire records, no property should be posted. To filter any property, related property and the value can be entered in the body of the request.\r\nIf no data is found, the method returns empty brackets.</p>",
    "examples": {
      "languages": [
        {
          "id": "_4TWB_QhLi3ed0kv-5uj-",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sqlproxy/listMaskingMethod \\\n     --header 'accept: application/json'"
        },
        {
          "id": "c1KD-j80tFWr8A6C5naC9",
          "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/sqlproxy/listMaskingMethod\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "nJJnBvUnvroQhBb8i6j3Z",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sqlproxy/listMaskingMethod\")\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": "V_a0yFOPMNOvlcf1dL43x",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sqlproxy/listMaskingMethod\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "_4TWB_QhLi3ed0kv-5uj-"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}