BML Global Search

get

/rest/v19/bml/scripts

This endpoint searches BML scripts containing the specified string and retrieves the corresponding script texts and their locations.

Request

Query Parameters
  • Exclude specified link types.
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
  • The requested page size, which limits the number of elements the collection should max return.
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Specifies a comma-separated list of pairs to order the response by.
  • Criteria to filter the library functions. By default, no filtering is applied.
  • Specifies that the total count of records should be included in the response when doing pagination.
Back to Top

Response

Supported Media Types

Default Response

BML Global Script Search
Body ()
Root Schema : BML global scripts
Type: object
Title: BML global scripts
BML Global Scripts.
Show Source
Nested Schema : List all bml functions.
Type: array
Title: List all bml functions.
List of BML Libraries.
Show Source
Nested Schema : globalScript
Type: object
Show Source
Back to Top

Examples

The following example shows how to search BML scripts containing the specified string and retrieve the corresponding script texts and their locations by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET  -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/bml/scripts?q={'scriptText':{$contains:'counter', $options:"I"}}&orderby=dateAdded:DESC,dateModified&excludeLinks=self

Response Body Sample

{
    "items": [
        {
            "scriptText": "recordset = bmql(\"SELECT Part, RAM FROM RAM\");\nquantity = 0;\ncounter = 0;\nret = \"\";\n\npartDict = dict(\"string\");\nfor record in recordset{\n\tput(partDict, get(record, \"RAM\"), get(record, \"Part\"));\n}\nquantityArray = integer[];\nfor each in ram_advArray{\n\tquantityArray[counter] = atoi(substring(each, 0, 1));\n\tcounter = counter + 1;\n}\ncounter = 0;\nfor each in memory_advArray{\n\tret = ret + get(partDict, each) + \"~\" + string(quantityArray[counter]) + \"~RAM~~\" + \"|^|\";\n\tcounter = counter + 1;\n}\nreturn ret;",
            "path": "Configuration Recommended Item : allEquipment:vision:servers : Recommended Items Rule (RAM [Hard but Awesome])",
            "dateAdded": "2025-07-31T08:04:53.000Z",
            "dateModified": "2025-07-31T08:16:06.000Z"
        },
        {
            "scriptText": "ret = \"\";\ncounter = 0;\nfor each in sLAPrice_array{\n\tret = ret + \"WR11513~1~SLA Agreement~\" + string(each) + \"~\" /*+ string(counter)*/ + \"|^|\";\n\tcounter = counter + 1;\n}\n\nreturn ret;",
            "path": "Configuration Recommended Item : allEquipment:vision:servers : Recommended Items Rule (SLA Parts)",
            "dateAdded": "2025-07-31T08:04:53.000Z",
            "dateModified": "2025-07-31T08:16:06.000Z"
        }
    ],
    "offset": 0,
    "limit": 1000,
    "count": 2,
    "hasMore": false,
    "links": [
        {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/bml/scripts"
        }
    ]
}
Back to Top