Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Add a resource script to a resource block

A resource script operates on a resource during deployment or returns data to the CMDB after a resource is deployed.

Before you begin

Role required: sn_cmp.cloud_service_designer

Procedure

  1. In the Cloud Admin Portal, navigate to Design > Resource Blocks.

  2. Open the resource block and then set it to Draft

Image omitted: draft-published-slider.png
Draft . state.
  1. On the Resource Script tab, specify a unique and meaningful Name and then define the script:
ScriptScript code.
TypeType of script:- Instance Script: Javascript that performs an operation on the instance \(for example, a subflow\). - PowerShell Script - Python Script - Response Processor: Converts return data from the external cloud API to the operation implementation into a format that the CMDB can accept. - Shell Script
  1. Click Submit.

    Add as many scripts as are needed.

Parent Topic:Resource blocks in Cloud Provisioning and Governance