Forum Discussion
Adding and Deleting data group records and ZoneRunner records via PowerShell
I'll keep looking at it. I've been experimenting for a couple days now and can't seem to get it right. I've tried loading it into a List, I've paused the execution to view the data structures and it's all really confusing... Actually, here's the code I posted in the other forum (thought it was already here...):
Interfaces interfaces = new Interfaces();
string[] view = { "external" };
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;
interfaces.ManagementResourceRecord.add_cname(viewZones, record);
Thanks! Tony
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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