Search

Method runAPI(String resourceURI, String jsonPayload, String httpMethod, PSRestSession session)

resourceURI : resource complete URL . e.g. : /network/vif/ct0.eth1.100, jsonPayload : Body in JSON format, httpMethod : HTTP Method . Acceptable methods : GET, PUT, POST, DELETE. session : Session to use with this request. E.g. In vRO it can be get using code : var session = PSSessionManager.getSession(connection); Here connection can be workflow parameter OR one can get connection by name using available action in vRO.

Returns

String

Arguments

Name Type Description
resourceURI String
jsonPayload String
httpMethod String
session PSRestSession