{"id":4482,"date":"2013-05-01T13:13:51","date_gmt":"2013-05-01T20:13:51","guid":{"rendered":"https:\/\/blogs.infoblox.com\/?p=4482"},"modified":"2022-10-21T13:40:08","modified_gmt":"2022-10-21T20:40:08","slug":"restart-services-using-the-rest-api","status":"publish","type":"post","link":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/","title":{"rendered":"Restart Services Using the REST API"},"content":{"rendered":"<div class=\"lia-quilt-row lia-quilt-row-row_1\">\n<div class=\"lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-Body_Content\">\n<div class=\"lia-quilt-column-alley lia-quilt-column-alley-single\">\n<div class=\"lia-message-body lia-component-body\">\n<div class=\"lia-message-body-content\">\n<p>With the release of NIOS 6.7 Infoblox has introduced some new functionality to the REST API which customers may find useful. In some cases the addition, modification or removal of an object triggers the need to restart a Grid services such as DNS or DHCP. Here is a basic example on how to restart services via the REST API:<\/p>\n<p>Search for the Grid to get the reference:<\/p>\n<pre class=\"codeblock\">curl -k -u admin:infoblox -X GET <a href=\"https:\/\/192.168.1.2\/wapi\/v1.1\/grid\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/192.168.1.2\/wapi\/v1.1\/grid<\/a><\/pre>\n<p>The search returns a reference (_ref) for the Grid:<\/p>\n<pre class=\"codeblock\">    [        {            \"_ref\": \"grid\/b25lLmNsdXN0ZXIkMA:Infoblox\"        }    ]<\/pre>\n<p>Restart services using the reference:<\/p>\n<pre class=\"codeblock\">curl -k -u admin:infoblox -X POST <a href=\"https:\/\/192.168.1.2\/wapi\/v1.1\/grid\/b25lLmNsdXN0ZXIkMA:Infoblox?_function=restartservices\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/192.168.1.2\/wapi\/v1.1\/grid\/b25lLmNsdXN0ZXIkMA:Infoblox?_function=restartservices<\/a> -H \"Content-Type:application\/json\" -d '{\"restart_option\": \"RESTART_IF_NEEDED\", \"service_option\": \"ALL\", \"member_order\": \"SEQUENTIALLY\", \"sequential_delay\": '1'}'<\/pre>\n<\/div>\n<\/div>\n<div class=\"lia-message-footer lia-component-message-footer\">\n<div class=\"lia-message-tags\"><\/div>\n<div class=\"lia-message-labels\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"lia-quilt-row lia-quilt-row-row_2\">\n<div class=\"lia-quilt-column lia-quilt-column-16 lia-quilt-column-left lia-quilt-column-footer-left\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>With the release of NIOS 6.7 Infoblox has introduced some new functionality to the REST API which customers may find useful. In some cases the addition, modification or removal of an object triggers the need to restart a Grid services such as DNS or DHCP. Here is a basic example on how to restart services [&hellip;]<\/p>\n","protected":false},"author":293,"featured_media":1669,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[3],"tags":[16,52,15],"class_list":{"0":"post-4482","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-community","8":"tag-infoblox","9":"tag-nios","10":"tag-security","11":"entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Restart Services Using the REST API<\/title>\n<meta name=\"description\" content=\"Infoblox has implemented functionalities for NIOS 6.7 to improve REST API performance. Find out how these functions can be used to restart grid services here.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Restart Services Using the REST API\" \/>\n<meta property=\"og:description\" content=\"Infoblox has implemented functionalities for NIOS 6.7 to improve REST API performance. Find out how these functions can be used to restart grid services here.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Infoblox Blog\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-01T20:13:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-21T20:40:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/community-banner-13.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"660\" \/>\n\t<meta property=\"og:image:height\" content=\"454\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Infoblox Community\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Infoblox Community\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/\"},\"author\":{\"name\":\"Infoblox Community\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/person\\\/cba927260e727f9cba6c511095c7cc9b\"},\"headline\":\"Restart Services Using the REST API\",\"datePublished\":\"2013-05-01T20:13:51+00:00\",\"dateModified\":\"2022-10-21T20:40:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/\"},\"wordCount\":86,\"publisher\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/community-banner-13.jpg\",\"keywords\":[\"Infoblox\",\"NIOS\",\"Security\"],\"articleSection\":[\"Community\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/\",\"name\":\"Restart Services Using the REST API\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/community-banner-13.jpg\",\"datePublished\":\"2013-05-01T20:13:51+00:00\",\"dateModified\":\"2022-10-21T20:40:08+00:00\",\"description\":\"Infoblox has implemented functionalities for NIOS 6.7 to improve REST API performance. Find out how these functions can be used to restart grid services here.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/community-banner-13.jpg\",\"contentUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/community-banner-13.jpg\",\"width\":660,\"height\":454},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/restart-services-using-the-rest-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Community\",\"item\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/category\\\/community\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Restart Services Using the REST API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\",\"name\":\"infoblox.com\\\/blog\\\/\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\",\"name\":\"Infoblox\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/infoblox-logo-2.svg\",\"contentUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/infoblox-logo-2.svg\",\"width\":137,\"height\":30,\"caption\":\"Infoblox\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/person\\\/cba927260e727f9cba6c511095c7cc9b\",\"name\":\"Infoblox Community\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ad6d0142744b24c3747a49b9127f0880cc4e014b4c211c90bfc494f12496010e?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ad6d0142744b24c3747a49b9127f0880cc4e014b4c211c90bfc494f12496010e?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ad6d0142744b24c3747a49b9127f0880cc4e014b4c211c90bfc494f12496010e?s=96&d=blank&r=g\",\"caption\":\"Infoblox Community\"},\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/author\\\/community\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Restart Services Using the REST API","description":"Infoblox has implemented functionalities for NIOS 6.7 to improve REST API performance. Find out how these functions can be used to restart grid services here.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/","og_locale":"en_US","og_type":"article","og_title":"Restart Services Using the REST API","og_description":"Infoblox has implemented functionalities for NIOS 6.7 to improve REST API performance. Find out how these functions can be used to restart grid services here.","og_url":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/","og_site_name":"Infoblox Blog","article_published_time":"2013-05-01T20:13:51+00:00","article_modified_time":"2022-10-21T20:40:08+00:00","og_image":[{"width":660,"height":454,"url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/community-banner-13.jpg","type":"image\/jpeg"}],"author":"Infoblox Community","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Infoblox Community","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/#article","isPartOf":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/"},"author":{"name":"Infoblox Community","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/person\/cba927260e727f9cba6c511095c7cc9b"},"headline":"Restart Services Using the REST API","datePublished":"2013-05-01T20:13:51+00:00","dateModified":"2022-10-21T20:40:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/"},"wordCount":86,"publisher":{"@id":"https:\/\/www.infoblox.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/community-banner-13.jpg","keywords":["Infoblox","NIOS","Security"],"articleSection":["Community"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/","url":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/","name":"Restart Services Using the REST API","isPartOf":{"@id":"https:\/\/www.infoblox.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/#primaryimage"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/community-banner-13.jpg","datePublished":"2013-05-01T20:13:51+00:00","dateModified":"2022-10-21T20:40:08+00:00","description":"Infoblox has implemented functionalities for NIOS 6.7 to improve REST API performance. Find out how these functions can be used to restart grid services here.","breadcrumb":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/#primaryimage","url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/community-banner-13.jpg","contentUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/community-banner-13.jpg","width":660,"height":454},{"@type":"BreadcrumbList","@id":"https:\/\/www.infoblox.com\/blog\/community\/restart-services-using-the-rest-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.infoblox.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Community","item":"https:\/\/www.infoblox.com\/blog\/category\/community\/"},{"@type":"ListItem","position":3,"name":"Restart Services Using the REST API"}]},{"@type":"WebSite","@id":"https:\/\/www.infoblox.com\/blog\/#website","url":"https:\/\/www.infoblox.com\/blog\/","name":"infoblox.com\/blog\/","description":"","publisher":{"@id":"https:\/\/www.infoblox.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.infoblox.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.infoblox.com\/blog\/#organization","name":"Infoblox","url":"https:\/\/www.infoblox.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/infoblox-logo-2.svg","contentUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/infoblox-logo-2.svg","width":137,"height":30,"caption":"Infoblox"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/person\/cba927260e727f9cba6c511095c7cc9b","name":"Infoblox Community","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ad6d0142744b24c3747a49b9127f0880cc4e014b4c211c90bfc494f12496010e?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ad6d0142744b24c3747a49b9127f0880cc4e014b4c211c90bfc494f12496010e?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad6d0142744b24c3747a49b9127f0880cc4e014b4c211c90bfc494f12496010e?s=96&d=blank&r=g","caption":"Infoblox Community"},"url":"https:\/\/www.infoblox.com\/blog\/author\/community\/"}]}},"_links":{"self":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/4482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/users\/293"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/comments?post=4482"}],"version-history":[{"count":2,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/4482\/revisions"}],"predecessor-version":[{"id":8205,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/4482\/revisions\/8205"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/media\/1669"}],"wp:attachment":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/media?parent=4482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/categories?post=4482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/tags?post=4482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}