Skip to main content
You're reading Identity & Access Management 7.1.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

Script Library management API

Download OpenAPI (YAML)Version v1

Base URL: https://localhost:9443/t/carbon.super/api/server/v1

The Script Library Management API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

BasicAuth: HTTP basic

OAuth2: oauth2

authorizationCode flow, token URL http://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize

Script Libraries​

List script libraries​

GET /script-libraries

This API provides the capability to list Script Libraries.

Scope(Permission) required: internal_functional_lib_view

Parameters

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
200

Successful Response

ScriptLibraryListResponse
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Add a new script library​

POST /script-libraries

This API provides the capability to create a new Script library.

Scope(Permission) required: internal_functional_lib_create

Request body (required): multipart/form-data

This represents the script library to be created

Schema: scriptLibraryPOSTRequest

3 properties
NameTypeRequiredDescription
namestringYes
descriptionstring
contentstring (binary)Yes

Responses

CodeDescriptionSchema
201

Successful response

400

Bad Request

Error
401

Unauthorized

403

Forbidden

409

Conflict

Error
500

Server Error

Error

Get script library​

GET /script-libraries/{script-library-name}

This API provides the capability to retrieve the script library details by using its name.

Scope(Permission) required: internal_functional_lib_view

Parameters

NameInTypeRequiredDescription
script-library-namepathstringYes

Name of the script library

Responses

CodeDescriptionSchema
200

Successful Response

ScriptLibraryResponse
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Update a script library​

PUT /script-libraries/{script-library-name}

This API provides the capability to Update a script library of an script library by using name.

Scope(Permission) required: internal_functional_lib_update

Parameters

NameInTypeRequiredDescription
script-library-namepathstringYes

Name of the script library

Request body (required): multipart/form-data

This represents the script library details to be updated.

Schema: scriptLibraryPUTRequest

2 properties
NameTypeRequiredDescription
descriptionstring
contentstring (binary)Yes

Responses

CodeDescriptionSchema
200

Successfully Updated

400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Delete a script library​

DEL /script-libraries/{script-library-name}

This API provides the capability to delete an script library by giving its name.

Scope(Permission) required: internal_functional_lib_delete

Parameters

NameInTypeRequiredDescription
script-library-namepathstringYes

Name of the script library

Responses

CodeDescriptionSchema
204

Successfully Deleted

400

Bad Request

Error
401

Unauthorized

403

Forbidden

500

Server Error

Error

Get the content of the script library​

GET /script-libraries/{script-library-name}/content

This API provides the capability to retrieve the content of script library by using its name.

Scope(Permission) required: internal_functional_lib_view

Parameters

NameInTypeRequiredDescription
script-library-namepathstringYes

Name of the script library

Responses

CodeDescriptionSchema
200

Successful Response

any
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Schemas​

ScriptLibrary​

Type: object

3 properties
NameTypeRequiredDescription
namestring
descriptionstring
selfstring

ScriptLibraryResponse​

Type: object

3 properties
NameTypeRequiredDescription
namestringYes
descriptionstring
content-refstringYes

ScriptLibraryListResponse​

Type: object

4 properties
NameTypeRequiredDescription
totalResultsinteger
startIndexinteger
countinteger
scriptLibrariesarray of ScriptLibrary

scriptLibraryPOSTRequest​

Type: object

3 properties
NameTypeRequiredDescription
namestringYes
descriptionstring
contentstring (binary)Yes

scriptLibraryPUTRequest​

Type: object

2 properties
NameTypeRequiredDescription
descriptionstring
contentstring (binary)Yes

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestring
messagestring
descriptionstring
traceIdstring

Was this page helpful?