Name

sn_cicd_spoke.CICDVerifyOutboundRESTEnabled

Description

This is to verify whether CICD Spoke App Actions have outbound calls enabled or not

Script

var CICDVerifyOutboundRESTEnabled = Class.create();
CICDVerifyOutboundRESTEnabled.prototype = {
  initialize: function() {
  },
  
  verifyoutboundrest : function() {
  	var cicd_outbound_rest = gs.getProperty('sn_cicd_spoke.outbound_rest.enabled');
  	if (cicd_outbound_rest == 'false') {
  		var error_message = 'CICD outbound calls are disabled.';
  		gs.error(error_message);    
  		throw error_message;
  	}
  },

  type: 'CICDVerifyOutboundRESTEnabled'
};

Sys ID

30c58d7377f3330038e286a268106103

Offical Documentation

Official Docs: