Forum Discussion
ANL_158394
Nimbostratus
Jun 04, 2014Adding and Deleting data group records and ZoneRunner records via PowerShell
What I would like to do is script the creation of Data Group Records and ZoneRunner records across our various F5s. What I would need is to list all the records within a specific data group and ZoneR...
ANL_158394
Nimbostratus
Jun 13, 2014I'm lost. Maybe I just don't know enough about the data structure nut this seems like overkill... I am getting a null reference exception at this line: recordseqseq[0][0] = recordseq[0]; This does appear to fix the issues with add_cname but the code doesn't get to that point so I am not sure if it really is fixed... At least Visual Studio is not underlining the add_cname line anymore because the overloads are to correct data structure it is looking for.
Interfaces interfaces = new Interfaces();
string[] view = { "external" };
ManagementViewInfo[] views = interfaces.ManagementView.get_list();
ManagementViewZone[] viewZones = interfaces.ManagementZone.get_zone_name(view);
ManagementZoneInfo[] zoneInfo = interfaces.ManagementZone.get_zone(viewZones);
ManagementCNAMERecord record = new ManagementCNAMERecord();
record.cname = "test";
record.domain_name = "st.int";
record.ttl = 3600;
ManagementCNAMERecord[] recordseq = new ManagementCNAMERecord[1];
ManagementCNAMERecord[][] recordseqseq = new ManagementCNAMERecord[1][];
recordseq[0] = record;
recordseqseq[0][0] = recordseq[0];
interfaces.ManagementResourceRecord.add_cname(viewZones, recordseqseq);Any ideas what the deal is?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects