Add a resource script to a resource block

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • A resource script operates on a resource during deployment or returns data to the CMDB after a resource is deployed.

    시작하기 전에

    Role required: sn_cmp.cloud_service_designer

    프로시저

    1. In the Cloud Admin Portal, navigate to Design > Resource Blocks.
    2. Open the resource block and then set it to Draft Draft . state.
    3. On the Resource Script tab, specify a unique and meaningful Name and then define the script:
      Script Script code.
      Type Type 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
    4. Click Submit.
      Add as many scripts as are needed.