{"componentChunkName":"component---src-templates-microservices-js","path":"/en/microservices/interfaceName/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"componentnameinterfacename\"><a href=\"#componentnameinterfacename\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>componentName/interfaceName</h2>\n<h3 id=\"uri\"><a href=\"#uri\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>URI</h3>\n<p><code class=\"gatsby-code-text\">http://{server}:{port}/manager/web/api/service/instances/{componentName}/{interfaceName}</code></p>\n<h3 id=\"supported-method\"><a href=\"#supported-method\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Supported Method</h3>\n<p>GET</p>\n<h3 id=\"parent-resource\"><a href=\"#parent-resource\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Parent Resource</h3>\n<p>instance</p>\n<h3 id=\"introduction\"><a href=\"#introduction\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Introduction</h3>\n<p>Get service instance information by API.</p>\n<p>Supported Interchange Format: JSON</p>\n<h3 id=\"http-request-method\"><a href=\"#http-request-method\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>HTTP Request Method</h3>\n<p>Execute HTTP request to the URI below. In the URI below, <code class=\"gatsby-code-text\">{server}</code> is the server of gateway, replace it by the actual gateway IP. <code class=\"gatsby-code-text\">{port}</code> is the port of gateway, replace it by the actual gateway port. <code class=\"gatsby-code-text\">{componentName}</code> is the component name of service instance, <code class=\"gatsby-code-text\">{interfaceName}</code> is the interface name of service instance, replace them by the service instance name.</p>\n<p><code class=\"gatsby-code-text\">http://{server}:{port}/manager/web/api/service/instances/{componentName}/{interfaceName}</code></p>\n<h4 id=\"get-request\"><a href=\"#get-request\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET Request</h4>\n<p>Get the information of service instance.</p>\n<h4 id=\"the-format-of-headers\"><a href=\"#the-format-of-headers\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The Format of Headers</h4>\n<div class=\"gatsby-highlight\" data-language=\"jsxon\"><pre class=\"gatsby-code-jsxon\"><code class=\"gatsby-code-jsxon\">content-type: application/json\nauthorization: Bearer {access_token}</code></pre></div>\n<h4 id=\"response-structure\"><a href=\"#response-structure\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response Structure</h4>\n<p>Returned the details of service instance, made up by the following fields:</p>\n<table>\n<col style=\"width: 20%;\" />\n<col style=\"width: 20%;\" />\n<col style=\"width: 20%;\" />\n<col style=\"width: 40%;\" />\n<tr class=\"t1st\">\n<th colspan=\"2\">Field</th>\n<th>Type</th>\n<th>Explanation</th>\n</tr>\n<tr class=\"t2Row\">\n<td colspan=\"2\">componentName</td>\n<td>String</td>\n<td>The name of service component</td>\n</tr>\n<tr class=\"t1Row\">\n<td colspan=\"2\">interfaceName</td>\n<td>String</td>\n<td>The name of service interface</td>\n</tr>\n<tr class=\"t2Row\">\n<td colspan=\"2\">componentType</td>\n<td>String</td>\n<td>The type of service component</td>\n</tr>\n<tr class=\"t1Row\">\n<td colspan=\"2\">address</td>\n<td>String</td>\n<td>The address of service instance</td>\n</tr>\n<tr class=\"t2Row\">\n<td rowspan=\"2\">dataSourceInfo</td>\n<td>type</td>\n<td rowspan=\"2\">String</td>\n<td>The type of datasource</td>\n</tr>\n<tr class=\"t1Row\">\n<td>name</td>\n<td>The name of datasource</td>\n</tr>\n</table>\n<h4 id=\"response-case\"><a href=\"#response-case\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response Case</h4>\n<p>Execute GET request for <code class=\"gatsby-code-text\">http://192.168.17.145:31803/manager/web/api/service/instances/map-ml_R_4c19b918-e6b5-45d8-bd9a-73f151cfbb61-zst8abnai9/rest</code> to get the detial information of map-ml<em>R</em>4c19b918-e6b5-45d8-bd9a-73f151cfbb61-zst8abnai9/rest. The returned response in json format:</p>\n<div class=\"gatsby-highlight\" data-language=\"jsxon\"><pre class=\"gatsby-code-jsxon\"><code class=\"gatsby-code-jsxon\">{\n​    &quot;componentName&quot;: &quot;map-ml_R_4c19b918-e6b5-45d8-bd9a-73f151cfbb61-zst8abnai9&quot;,\n​    &quot;interfaceName&quot;: &quot;rest&quot;,\n​    &quot;alias&quot;: &quot;Instance-map-ml_R_4c19b918-e6b5-45d8-bd9a-73f151cfbb61-zst8abnai9-rest&quot;,\n​    &quot;createTime&quot;: 1608125335790,\n​    &quot;componentType&quot;: &quot;Map&quot;,\n​    &quot;address&quot;: &quot;http://192.168.17.145:31803/iserver/services/map-ml_R_4c19b918-e6b5-45d8-bd9a-73f151cfbb61-zst8abnai9/rest&quot;,\n​    &quot;dataSourceInfo&quot;: {\n​        &quot;type&quot;: &quot;workspace&quot;,\n​        &quot;name&quot;: &quot;文件型工作空间&quot;\n​    },\n​    &quot;items&quot;: [\n​        {\n​            &quot;location&quot;: &quot;providers:provider:config:workspacePath&quot;,\n​            &quot;required&quot;: true,\n​            &quot;defaultValue&quot;: null,\n​            &quot;basic&quot;: true,\n​            &quot;serviceName&quot;: false,\n​            &quot;option&quot;: null,\n​            &quot;children&quot;: [],\n​            &quot;cascadeItems&quot;: null,\n​            &quot;columns&quot;: null,\n​            &quot;disableArrayOperation&quot;: false,\n​            &quot;hideDetail&quot;: false,\n​            &quot;pageSize&quot;: 0,\n​            &quot;placeholder&quot;: null,\n​            &quot;subtitle&quot;: null,\n​            &quot;tipMessage&quot;: null,\n​            &quot;validation&quot;: [\n​                {\n​                    &quot;regex&quot;: &quot;.+\\\\.(sxwu|smwu|sxw|smw)$&quot;,\n​                    &quot;message&quot;: &quot;请选择工作空间类型文件(.sxwu, .smwu, .sxw, .smw)&quot;\n​                }\n​            ],\n​            &quot;type&quot;: &quot;file&quot;,\n​            &quot;description&quot;: &quot;工作空间路径&quot;,\n​            &quot;display&quot;: true,\n​            &quot;readonly&quot;: false,\n​            &quot;name&quot;: &quot;workspacePath&quot;,\n​            &quot;value&quot;: &quot;/opt/MachineLearningResult/ml_R_4c19b918-e6b5-45d8-bd9a-73f151cfbb61.smwu&quot;\n​        },\n​        {\n​            &quot;location&quot;: null,\n​            &quot;required&quot;: false,\n​            &quot;defaultValue&quot;: null,\n​            &quot;basic&quot;: true,\n​            &quot;serviceName&quot;: false,\n​            &quot;option&quot;: null,\n​            &quot;children&quot;: [],\n​            &quot;cascadeItems&quot;: null,\n​            &quot;columns&quot;: null,\n​            &quot;disableArrayOperation&quot;: false,\n​            &quot;hideDetail&quot;: false,\n​            &quot;pageSize&quot;: 0,\n​            &quot;placeholder&quot;: null,\n​            &quot;subtitle&quot;: null,\n​            &quot;tipMessage&quot;: null,\n​            &quot;validation&quot;: null,\n​            &quot;type&quot;: &quot;password&quot;,\n​            &quot;description&quot;: &quot;工作空间密码&quot;,\n​            &quot;display&quot;: true,\n​            &quot;readonly&quot;: false,\n​            &quot;name&quot;: &quot;password&quot;,\n​            &quot;value&quot;: null\n​        }\n​    ]\n}</code></pre></div>","frontmatter":{"title":"GIS Cloud Suite","next":null,"prev":null},"fields":{"path":"content/microservices/interfaceName.en.md","slug":"/en/microservices/interfaceName/","langKey":"en"}}},"pageContext":{"slug":"/en/microservices/interfaceName/"}}}