Subversion Repositories oidinfo_new_design

Rev

Rev 6 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
  <title>OID repository - Getting an OID description in XML for JSON</title>
5
  <meta charset="UTF-8"><!-- <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"> -->
6
  <meta name="google-translate-customization" content="ae799a386ca63905-075d0f84d2caa8b0-g8dbf29cdfe9cdbeb-c">
7
  <link rel="Stylesheet" type="text/css" href="style.css">
8
  <meta name="viewport" content="width=device-width, initial-scale=1">
9
  <meta name="DESCRIPTION" content="This OID repository gathers information about Object Identifiers (OIDs), and provides tools to display and search for this information.">
10
  <meta name="keywords" content="object identifier oid OID repository registration authority ISO ITU">
11
  <link rel="SHORTCUT ICON" href="/images/favicon.ico">
12
  <script src="scripts.js"></script>
13
</head>
14
<body id="body" onload="_onload()">
15
  <div id="global_container">
16
    <div id="header">
17
      <a href="index.htm">
18
        <img src="images/treewall.jpg" width="130" height="110">
19
      </a>
20
      <h1 style="color: rgb(226, 137, 34);font-size: 35px; font-weight:bold;">OID Repository</h1><br><br><br><br>
21
      <div id="header_url_and_menu">
22
        <div id="header_url">
23
          <span style="color: rgb(226, 137, 34);font-size: 15px; font-weight:bold; margin-left:10px; display:inline-block;">www.oid-info.com</span>
24
        </div>
25
        <div id="header_url_right">
26
          <ul id="header_menu">
27
            <li><a href="index.htm">Home</a></li>
28
            <li><a href="/cgi-bin/display?tree=">Tree display</a></li>
29
            <li><a href="basic-search.htm">Search</a></li>
30
            <li><a href="faq.htm">FAQ</a></li>
31
            <li><a href="/helper">Helper</a></li>
32
          </ul>
33
        </div>
34
      </div>
35
      <div style="top: 11px; left: 694px; margin-left:-120px;" id="search">
36
        <span style="color: rgb(226, 137, 34); font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold;">Display OID:</span> <br>
37
        <form name="form_go" method="get" action="/cgi-bin/display" enctype="multipart/form-data">
38
          <input type="hidden" name="action" value="display">
39
          <input name="oid" size="20" value="" onfocus="empty();" placeholder="-- OID --" type="text"> <input value="Go" type="submit">
40
        </form>
41
      </div>
42
      <div id="google_translate">
43
        <script>
44
          function googleTranslateElementInit() {
45
            new google.translate.TranslateElement({ pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true, gaId: 'UA-33779649-1' }, 'google_translate_element');
46
          }
47
        </script>
48
        <!--<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
49
        </script>-->
50
      </div>
51
    </div>
52
  </div>
53
  <div id="mobile_version">
54
    <aside class="sidebar">
55
      <nav id="navigation" role="navigation">
56
        <form name="form_go" method="get" action="/cgi-bin/display" enctype="multipart/form-data">
57
        <a><input name="oid" id="searchbox_mobile" size="35" value="" onfocus="empty();" placeholder="-- Display OID --" type="search"></a>
58
        </form>
59
        <a href="index.htm">Home</a>
60
        <a href="/cgi-bin/display?tree=">Tree display</a>
61
        <a href="basic-search.htm">Search</a>
62
        <a href="faq.htm">FAQ</a>
63
        <a href="/helper">Chatbot helper</a>
64
      </nav>
65
    </aside>
66
  </div>
67
  <div class="wrapper">
68
    <table width="100%" id="header_mobile">
69
      <tr>
70
        <td width="20%">
71
          <a href="#body" class="nav-button-open" aria-label="open navigation"></a>
72
          <a href="#" class="nav-button-close" aria-label="close navigation"></a>
73
        </td>
74
        <td width="60%" valign="middle">
75
          <h1 style="color: rgb(226, 137, 34);font-size: 18px; font-weight:bold; text-align:right;">OID Repository</h1>
76
          <div id="header_url">
77
            <span style="color: rgb(226, 137, 34);font-size: 15px; font-weight:bold; margin-left:10px; display:inline-block;">www.oid-info.com</span>
78
          </div>
79
        </td>
80
        <td width="20%"><a href="index.htm"><img src="images/treewall.jpg" style="height:10vh;width:auto"></a></td>
81
      </tr>
82
    </table>
83
 
84
<div id="global_content">
85
 
86
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
87
 
88
                <tr>
89
 
90
                        <td height="20" colspan="3" valign="top" width="100%">&nbsp;</td>
91
 
92
                </tr>
93
 
94
                <tr>
95
                        <td height="40" valign="top" width="440">
96
                                <p>
97
                                        <span class="page_title">Getting an OID description in XML or JSON format</span>
98
                                </p>
99
                        </td>
100
                        <td height="40" valign="top" width="20">&nbsp;</td>
101
                        <td width="150" height="40" valign="middle">
102
                                <img src="images/bullet.gif" width="10" height="8" border="0"><a href="/cgi-bin/manage?a=ca">Request a registrant account</a>
103
                        </td>
104
                </tr>
105
 
106
        </table>
107
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
108
                <tr>
109
                        <td width="10"></td>
110
                        <td>
111
 
112
                                <p>
113
                                        To get the description of an OID in XML or JSON format, use the following
114
                                        URL (as a <code>GET</code> or <code>POST</code> <a href="http://www.w3schools.com/TAGs/ref_httpmethods.asp">HTTP
115
                                                request method</a>):
116
                                </p>
117
                                <div align="center">
118
                                        <table width="75%" border="1">
119
                                                <tr>
120
                                                        <td align="center">
121
                                                                <div align="center"><font class="color_orange">XML</font> </div>
122
                                                        </td>
123
                                                </tr>
124
                                                <tr>
125
                                                        <td>
126
                                                                <div align="center">
127
                                                                        <code><strong>http://oid-info.com/cgi-bin/display?a=<font class="color_orange">get-xml</font><br>&l=</strong><em>your_email_address</em><strong>&p=</strong><em>your_password</em><br><strong>&oid=</strong><em>OID_in_whichever_notation</em></code>
128
                                                                </div>
129
                                                        </td>
130
                                                </tr>
131
                                                <tr>
132
                                                        <td align="center">
133
                                                                <div align="center"><font class="color_orange">JSON</font> </div>
134
                                                        </td>
135
                                                </tr>
136
                                                <tr>
137
                                                        <td>
138
                                                                <div align="center">
139
                                                                        <code><strong>http://oid-info.com/cgi-bin/display?a=<font class="color_orange">get-json</font><br>&l=</strong><em>your_email_address</em><strong>&p=</strong><em>your_password</em><br><strong>&oid=</strong><em>OID_in_whichever_notation</em></code>
140
                                                                </div>
141
                                                        </td>
142
                                                </tr>
143
                                        </table><br></div>
144
                                <p>
145
                                        <b>Important note</b>: This feature is only available if a <a href="registrant-account-charter.htm">registrant
146
                                                account</a> has been assigned to you by the webmaster.
147
                                </p>
148
                                <p>
149
                                        When using this feature, you agree to conform to the <a href="disclaimer.htm">terms
150
                                                of use</a> of this web site. In particular, you understand that downloading,
151
                                        printing or copying from this web site must be for noncommercial use
152
                                        only, and must be limited to a small part of the data. Moreover, you
153
                                        endeavour to inform users of your application that data are coming from
154
                                        <a href="http://oid-info.com">OID-info.com</a> by hyperlinking to <a href="http://oid-info.com">http://oid-info.com</a>.
155
                                </p>
156
                        </td>
157
                </tr>
158
        </table>
159
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
160
                <tr>
161
                        <td width="10"></td>
162
                        <td>
163
                                <p>
164
                                        If there is no error, the returned result is a piece of XML (resp.
165
                                        JSON) which looks like the following examples.
166
                                </p>
167
                                <p>
168
                                        The generated XML mostly conforms to the <a href="http://oid-info.com/oid.xsd">XML
169
                                                Schema for the OID repository</a>. One difference is that the <code><strong>&lt;value&gt;</strong></code>
170
                                        tag is separated in three tags: <code><strong>&lt;asn1-notation&gt;</strong></code>,
171
                                        <code><strong>&lt;dot-notation&gt;</strong></code> and <code><strong>&lt;iri-notation&gt;</strong></code>.
172
                                        Another main difference is that the <code><strong>&lt;oid&gt;</strong></code>
173
                                        tag can have two optional attributes:
174
                                </p>
175
                                <ul>
176
                                        <li>
177
                                                <code><strong>category</strong></code> which, when present, takes
178
                                                one or multiple ("<code>;</code>"-separated) values among &quot;<a href="faq.htm#26"><code>Leaf
179
                                                                OID</code></a>&quot;, &quot;<a href="faq.htm#26"><code>Frozen OID</code></a>&quot;,
180
                                                &quot;<code>Not allocating identifiers</code>&quot; and &quot;<code>Not
181
                                                        allocating Unicode labels</code>&quot;;
182
                                        </li>
183
                                        <li>
184
                                                <code><strong>standardized</strong></code> which, when present,
185
                                                takes value "<code>true</code>" and indicates that the last <a href="name-forms.htm">identifier</a>
186
                                                in the <strong><code>&lt;value&gt;</code></strong> can be used alone
187
                                                without its associated number;
188
                                        </li>
189
                                        <li>
190
                                                <code>last-modification</code> is the date (YYYY-MM-DD) when the
191
                                                OID description was last modified in the OID repository.
192
                                        </li>
193
                                </ul>
194
                                <p>
195
                                        In JSON, keys <code>&quot;category&quot;</code>, <code>&quot;identifier&quot;</code>,
196
                                        <code>&quot;unicode-label&quot;</code>, <code>&quot;long-arc&quot;</code>
197
                                        are tables (hence between square brackets).
198
                                </p>
199
                                <table width="100%" border="1">
200
                                        <tr>
201
                                                <td align="center">
202
                                                        <font class="color_orange">XML</font>
203
                                                </td>
204
                                        </tr>
205
                                        <tr>
206
                                                <td>
207
                                                        <p>
208
                                                                <code><strong>&lt;oid category=&quot;</strong>Leaf OID&quot;<strong>&gt;<br>&nbsp;&nbsp;&lt;asn1_notation&gt;</strong>{joint-iso-itu-t(2)
209
                                                                        example(999) xml-submission(777)}<strong>&lt;/asn1_notation&gt;<br>&nbsp;&nbsp;&lt;dot-notation&gt;</strong>2.999.777<strong>&lt;/dot-notation&gt;<br>&nbsp;&nbsp;&lt;iri-notation&gt;</strong>/Joint-ISO-ITU-T/Example/XML_submission<strong>&lt;/iri-notation&gt;<br>&nbsp;&nbsp;&lt;identifier&gt;</strong>xml-submission<strong>&lt;/identifier&gt;<br>&nbsp;&nbsp;</strong><strong>&lt;identifier&gt;</strong>xml-document<strong>&lt;/identifier&gt;<br>&nbsp;&nbsp;&lt;unicode-label&gt;</strong>XML_submission<strong>&lt;/unicode-label&gt;<br>&nbsp;&nbsp;&lt;description&gt;</strong>Example of a description
210
                                                                        conforming to the &lt;a href="http://oid-info.com/oid.xsd"&gt;XML
211
                                                                        Schema of the OID repository&lt;/a&gt;.<strong>&lt;/description&gt;<br>&nbsp;&nbsp;&lt;information&gt;</strong>More information can be
212
                                                                        found at &lt;a href="http://oid-info.com/submit.htm"&gt;Submit
213
                                                                        OID descriptions as XML files&lt;/a&gt;.<strong>&lt;/information&gt;<br>&nbsp;&nbsp;&lt;current-registrant&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&lt;first-name&gt;</strong>John<strong>&lt;/first-name&gt;<br>&nbsp;&nbsp;&nbsp; &lt;last-name&gt;</strong>Doe<strong>&lt;/last-name&gt;<br>&nbsp;&nbsp;&nbsp; &lt;email&gt;</strong>john.doe@dummy.com<strong>&lt;/email&gt;<br>&nbsp;&nbsp;&nbsp; &lt;modification-date&gt;</strong>2002-05-25<strong>&lt;/modification-date&gt;<br>&nbsp; &lt;/current-registrant&gt;<br>&nbsp; &lt;first-registrant privacy=&quot;</strong>true<strong>&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;first-name&gt;</strong>Paul<strong>&lt;/first-name&gt;<br>&nbsp;&nbsp;&nbsp; &lt;last-name&gt;</strong>Connor<strong>&lt;/last-name&gt;<br>&nbsp;&nbsp;&nbsp; &lt;email&gt;</strong>paul.connor@myhost.com<strong>&lt;/email&gt;<br>&nbsp;&nbsp;&nbsp; &lt;creation-date&gt;</strong>1999-12-31<strong>&lt;/creation-date&gt;<br>&nbsp; &lt;/first-registrant&gt;<br>&nbsp;&nbsp;&lt;last-modification&gt;</strong>2017-05-23<strong>&lt;/last-modification&gt;<br>&lt;/oid&gt;</strong></code>
214
                                                        </p>
215
                                                </td>
216
                                        </tr>
217
                                        <tr>
218
                                                <td align="center">
219
                                                        <font class="color_orange">JSON</font>
220
                                                </td>
221
                                        </tr>
222
                                        <tr>
223
                                        <tr>
224
                                                <td>
225
                                                        <p>
226
                                                                <code><strong>{ &quot;oid&quot;: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&quot;category&quot;: [</strong>&quot;Leaf
227
                                                                        OID&quot;<strong>]</strong>,<br><strong>&nbsp;&nbsp;&nbsp;&nbsp;&quot;asn1-notation&quot;</strong>:
228
                                                                        &quot;{joint-iso-itu-t(2) example(999) xml-submission(777)}<strong>&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&quot;dot-notation&quot;</strong>: &quot;2.999.777<strong>&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&quot;iri-notation&quot;</strong>: &quot;/Joint-ISO-ITU-T/Example/XML_submission<strong>&quot;,<br></strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&quot;identifier&quot;:
229
                                                                                [</strong>&quot;xml-submission&quot;, &quot;xml-document&quot;<strong>]</strong>,<br><strong>&nbsp;&nbsp;&nbsp;&nbsp;&quot;unicode-label&quot;: [</strong>&quot;XML_submission&quot;<strong>]</strong>,<br><strong>&nbsp;&nbsp;</strong></code><strong><code><strong>&nbsp;&nbsp;</strong>&quot;description&quot;:</code></strong><code>&quot;Example of a description conforming to the &lt;a href=\"http://oid-info.com/oid.xsd\"&gt;XML
230
                                                                        Schema of the OID repository&lt;/a&gt;.<strong>&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&quot;information&quot;:</strong> &quot;More
231
                                                                        information can be found at &lt;a href=\"http://oid-info.com/submit.htm\"&gt;Submit
232
                                                                        OID descriptions as XML files&lt;/a&gt;.&quot;<strong>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&quot;current-registrant&quot;: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></code><strong><code>&quot;first-name&quot;:</code></strong><code>&quot;John<strong>&quot;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;last-name&quot;:</strong>
233
                                                                        &quot;Doe&quot;<strong>,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;email&quot;:</strong> &quot;john.doe@dummy.com&quot;<strong>,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;modification-date&quot;:</strong>
234
                                                                        &quot;2002-05-25&quot;<br><strong>&nbsp;&nbsp;&nbsp;&nbsp;}, <br>&nbsp; &nbsp;&nbsp;&quot;first-registrant&quot;: {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;privacy&quot;:</strong> &quot;true&quot;<strong>,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;first-name&quot;:</strong>
235
                                                                        &quot;Paul&quot;<strong>,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;last-name&quot;:</strong>
236
                                                                        &quot;Connor<strong>&quot;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;email&quot;: &quot;</strong>paul.connor@myhost.com<strong>&quot;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;creation-date&quot;: &quot;</strong>1999-12-31&quot;<strong><br>&nbsp; &nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&quot;last-modification&quot;:</strong> &quot;2017-05-23&quot;<br>&nbsp;&nbsp;}<br>}</code>
237
                                                        </p>
238
                                                </td>
239
                                        </tr>
240
                                </table>
241
                        </td>
242
                </tr>
243
        </table>
244
 
245
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
246
                <tr>
247
                        <td width="10"></td>
248
                        <td>
249
                                Errors are rendered as follows:<br><br><table width="100%" border="1">
250
                                        <tr>
251
                                                <td align="center"> <font class="color_orange">XML</font> </td>
252
                                        </tr>
253
                                        <tr>
254
                                                <td>
255
                                                        <code><strong>&lt;error code=&quot;</strong><em>error_code</em><strong>&quot;&gt;</strong><br>&nbsp;&nbsp;Error message in English<br><strong>&lt;/error&gt;</strong></code>
256
                                                </td>
257
                                        </tr>
258
                                        <tr>
259
                                                <td align="center"> <font class="color_orange">JSON</font> </td>
260
                                        </tr>
261
                                        <tr>
262
                                                <td>
263
                                                        <code><strong>{ &quot;error&quot;: {<br>&nbsp;&nbsp;&nbsp; &quot;code&quot;:</strong> &quot;<em>error_code</em><strong>&quot;,<br>&nbsp;&nbsp;&nbsp; &quot;message&quot;:</strong> &quot;Error message
264
                                                                in English&quot;<br>&nbsp;&nbsp;<strong>}<br>}</strong></code>
265
                                                </td>
266
                                        </tr>
267
                                </table>
268
                                <br>where <code><em>error_code</em></code> is one of:
269
                                <ul>
270
                                        <li>
271
                                                &quot;<code>illegal_oid</code>&quot; when the OID given in parameter
272
                                                <strong><code>oid</code></strong> cannot exist because, e.g., it is
273
                                                known to be forbidden or one of its ascendant OIDs is a leaf (the
274
                                                &quot;<code>Error message in English</code>&quot; explains what the
275
                                                problem is);
276
                                        </li>
277
                                        <li>
278
                                                &quot;<code>maintenance</code>&quot; when the OID repository is
279
                                                not available because it is under maintenance;
280
                                        </li>
281
                                        <li>
282
                                                &quot;<code>oid_not_validated</code>&quot; when the OID given in
283
                                                parameter <strong><code>oid</code></strong> is described in the OID
284
                                                repository but has not yet been validated by the OID administrator,
285
                                                so its description is not yet publicly available;
286
                                        </li>
287
                                        <li>
288
                                                &quot;<code>runtime_error</code>&quot; when there is an internal
289
                                                problem (in which case the OID repository admin is automatically notified
290
                                                by email);
291
                                        </li>
292
                                        <li>
293
                                                &quot;<code>syntax_error</code>&quot; when the OID given in parameter
294
                                                <strong><code>oid</code></strong> is not syntactiacally correct (the
295
                                                &quot;<code>Error message in English</code>&quot; explains what the
296
                                                problem is);
297
                                        </li>
298
                                        <li>
299
                                                &quot;<code>unknown_oid</code>&quot; when the OID given in parameter
300
                                                <strong><code>oid</code></strong> is not described in the OID repository
301
                                                (or this parameter is missing);
302
                                        </li>
303
                                        <li>
304
                                                &quot;<code>wrong_login</code>&quot; when parameters <strong><code>login</code></strong>
305
                                                or <strong><code>password</code></strong> are not correct (the &quot;<code>Error
306
                                                        message in English</code>&quot; explains what the problem is).
307
                                        </li>
308
                                </ul>
309
                                Note that the <code><em>error_code</em></code> won't change whereas the
310
                                &quot;<code>Error message in English</code>&quot; may evolve, so it is
311
                                recommended that, if needed, your application checks the <code><em>error_code</em></code>.
312
                        </td>
313
                </tr>
314
        </table>
315
 
316
</div>
317
 
318
 
319
    <center id="footer">
320
      <img style="border: 0px solid ; width: 760px; height: 2px;" alt="separation line" src="images/separation800.png" width="760" height="2"><br><br>
321
      <table width="710" cellspacing="0" cellpadding="0" border="0">
322
        <tr valign="baseline">
323
          <td width="34">
324
            <a href="/helper">
325
              <img src="images/enveloppe.png" width="30" height="13" name="mail" border="0" alt="OID helper">
326
            </a>
327
          </td>
328
          <td width="58" align="center"><font size="-2">Webmaster</font></td>
329
          <td width="10" align="center"><img src="images/pointorange_small.gif" width="14" height="10"></td>
330
          <td width="78" align="center">
331
            <font size="-2">
332
              <!--<script language="JavaScript">
333
              d=new Date(document.lastModified)
334
              month=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
335
              if (Date.parse(document.lastModified) != 0)
336
                document.write(d.getDate()+" "+month[d.getMonth()]+" "+d.getFullYear());
337
              </script>-->
338
              15 Apr 2022
339
            </font>
340
          </td>
341
          <td width="24" align="center"><img src="images/pointorange_small.gif" width="14" height="10"></td>
342
          <td align="center" width="409">
343
            <font size=-1>
344
 
345
            </font>
346
          </td>
347
          <td height="20" width="162" valign="middle" align="right"><a href="#top"><img src="images/page_top.png" width="150" height="17" border="0"></a></td>
348
        </tr>
349
      </table><br>
350
    </center>
351
  </div>
352
</body>
353
</html>