<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to enable and disable Model Serving using Rest API in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/how-to-enable-and-disable-model-serving-using-rest-api/m-p/35063#M1823</link>
    <description>&lt;P&gt;ML flow model serving in Databricks docs details the options to enable and disable from the UI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/applications/mlflow/model-serving.html" target="test_blank"&gt;https://docs.databricks.com/applications/mlflow/model-serving.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 16:49:04 GMT</pubDate>
    <dc:creator>Mohit_m</dc:creator>
    <dc:date>2021-11-15T16:49:04Z</dc:date>
    <item>
      <title>How to enable and disable Model Serving using Rest API</title>
      <link>https://community.databricks.com/t5/machine-learning/how-to-enable-and-disable-model-serving-using-rest-api/m-p/35063#M1823</link>
      <description>&lt;P&gt;ML flow model serving in Databricks docs details the options to enable and disable from the UI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/applications/mlflow/model-serving.html" target="test_blank"&gt;https://docs.databricks.com/applications/mlflow/model-serving.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 16:49:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/how-to-enable-and-disable-model-serving-using-rest-api/m-p/35063#M1823</guid>
      <dc:creator>Mohit_m</dc:creator>
      <dc:date>2021-11-15T16:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable and disable Model Serving using Rest API</title>
      <link>https://community.databricks.com/t5/machine-learning/how-to-enable-and-disable-model-serving-using-rest-api/m-p/35064#M1824</link>
      <description>&lt;P&gt;Please find below the REST APIs to enable and disable Model-Serving&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the examples in Python&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the token to interact with Rest API&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;token = "dxxxxxx"&lt;/P&gt;&lt;P&gt;instance = "https://&amp;lt;workspacexxx&amp;gt;.cloud.databricks.com"&lt;/P&gt;&lt;P&gt;headers = {'Authorization': f'Bearer {token}'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;Enable Model Serving&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import requests&lt;/P&gt;&lt;P&gt;url = f'https://{instance}/api/2.0/mlflow/endpoints/enable'&lt;/P&gt;&lt;P&gt;requests.post(url, headers=headers, json={"registered_model_name": "&amp;lt;model name&amp;gt;"})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;Disable Model serving&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;url = f'https://{instance}/api/2.0/mlflow/endpoints/disable'&lt;/P&gt;&lt;P&gt;r = requests.post(url, headers=headers, json={"registered_model_name": "&amp;lt;model name&amp;gt;"})&lt;/P&gt;&lt;P&gt;r.json()&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 16:53:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/how-to-enable-and-disable-model-serving-using-rest-api/m-p/35064#M1824</guid>
      <dc:creator>Mohit_m</dc:creator>
      <dc:date>2021-11-15T16:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable and disable Model Serving using Rest API</title>
      <link>https://community.databricks.com/t5/machine-learning/how-to-enable-and-disable-model-serving-using-rest-api/m-p/35065#M1825</link>
      <description>&lt;P&gt;Hi @Mohit Miglani​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great post. Thank you for sharing it with the rest of the community.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 18:52:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/how-to-enable-and-disable-model-serving-using-rest-api/m-p/35065#M1825</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2021-11-15T18:52:10Z</dc:date>
    </item>
  </channel>
</rss>

