Function: Add REST Operations to a REST Host for InfoBlox

by Simon Sparks · 1 June 2025

To use this function add it to the class library file named OrchestratorService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: OrchestratorService.ts

Description: Orchestrator Function to add of REST Operations to a REST Host forInfoBlox

Function RESTOperationCreateForF5BIGIP

public RESTOperationCreateForInfoblox(arrRESTHost: RESTHost[]): void {

    let objProperties:Properties = new Properties();
  	objProperties.put("post-a", "/wapi/v1.1/record:a");
  	objProperties.put("post-cname", "/wapi/v1.1/record:cname");
  	objProperties.put("get-a", "/wapi/v1.1/record:host?_return_type=json&name={strRecordA}");
  	objProperties.put("get-cname", "/wapi/v1.1/record:cname?_return_type=json&name={strRecordCName}");
  	objProperties.put("delete-a", "/wapi/v1.1/record:host/{strRecordReference}?_return_type=json");
  	objProperties.put("delete-cname", "/wapi/v1.1/record:cname/{strRecordReference}?_return_type=js");
  	
    this.RESTOperationCreate(objProperties, arrRESTHost);
}


Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like