---
title: ScriptTypes
description: Resource path:
component: pingam
version: 8.1
page_id: pingam:entity-reference:sec-amster-entity-scripttypes
canonical_url: https://docs.pingidentity.com/pingam/8.1/entity-reference/sec-amster-entity-scripttypes.html
section_ids:
  sec-amster-entity-scripttypes-global-ops: Global Operations
  sec-amster-entity-scripttypes-global-ops-getalltypes: getAllTypes
  sec-amster-entity-scripttypes-global-ops-getcreatabletypes: getCreatableTypes
  sec-amster-entity-scripttypes-global-ops-nextdescendents: nextdescendents
  sec-amster-entity-scripttypes-global-ops-query: query
  sec-amster-entity-scripttypes-global-ops-read: read
  sec-amster-entity-scripttypes-global-ops-update: update
---

# ScriptTypes

## Global Operations

Resource path:

```
/global-config/services/scripting/contexts
```

Resource version: `1.0`

### getAllTypes

Obtain the collection of all secondary configuration types related to the resource.

**Usage**

```
am> action ScriptTypes --global --actionName getAllTypes
```

### getCreatableTypes

Obtain the collection of secondary configuration types that have yet to be added to the resource.

**Usage**

```
am> action ScriptTypes --global --actionName getCreatableTypes
```

### nextdescendents

Obtain the collection of secondary configuration instances that have been added to the resource.

**Usage**

```
am> action ScriptTypes --global --actionName nextdescendents
```

### query

Get the full list of instances of this collection. This query only supports `_queryFilter=true` filter.

**Usage**

```
am> query ScriptTypes --global --filter filter
```

**Parameters**

* *\--filter*

  A CREST formatted query filter, where "true" will query all.

### read

**Usage**

```
am> read ScriptTypes --global --id id
```

**Parameters**

* *\--id*

  The unique identifier for the resource.

### update

**Usage**

```
am> update ScriptTypes --global --id id --body body
```

**Parameters**

* *\--id*

  The unique identifier for the resource.

* *\--body*

  The resource in JSON format, described by the following JSON schema:

  ```json
  {
    "type" : "object",
    "properties" : {
      "defaultScript" : {
        "title" : "Default Script",
        "description" : "The source code that is presented as the default when creating a new script of this type.",
        "propertyOrder" : 1200,
        "required" : true,
        "type" : "string",
        "exampleValue" : ""
      },
      "isHidden" : {
        "title" : "Hidden Context",
        "description" : "Set to true if this context will be hidden for script CRUD operations.",
        "propertyOrder" : 1300,
        "required" : true,
        "type" : "boolean",
        "exampleValue" : ""
      },
      "languages" : {
        "title" : "Scripting languages",
        "description" : "The language the script is written in.<br><br>This is used to determine how to validate the script, as well as which engine to run the script within.",
        "propertyOrder" : 1100,
        "required" : true,
        "items" : {
          "type" : "string"
        },
        "type" : "array",
        "exampleValue" : ""
      }
    }
  }
  ```
