常见handle协议的数据模型

URL

{
  "index": 1,
  "type": "URL",
  "data": {
    "format": "string",
    "value": "http://www.whxb.pku.edu.cn/EN/10.3866/PKU.WHXB201112303\r\n"
  },
  "ttl": 86400,
  "timestamp": "2011-12-30T06:47:25Z"
}

HS_SITE

{
  "index": 1,
  "type": "HS_SITE",
  "data": {
    "format": "site",
    "value": {
      "version": 1,
      "protocolVersion": "2.10",
      "serialNumber": 2,
      "primarySite": true,
      "multiPrimary": false,
      "attributes": [{
        "name": "desc",
        "value": "DOI Secondary"
      }],
      "servers": [{
        "serverId": 1,
        "address": "34.237.107.54",
        "publicKey": {
          "format": "key",
          "value": {
            "kty": "DSA",
            "y": "E2Vgb5gbeo-07c9NZ4-QBo6aG_vqliwYaw_VUZppYNLm9GXq7mEflPOMI5YuNjVimr5x8CiDvk9jUoifaw_t5s5F8U9P6Gu7HpmHcS1aJvK2CddaNznwjLwibiLeiDD8T3iJPR4HhdmPILeB04o2303dnpH3peHX1uAnzFMwnVw",
            "p": "_X9TgR11EilS30qcLuzk5_YRt1I870QAwx4_gLZRJmlFXUAiUftZPY1Y-r_F9bow9subVWzXgTuAHTRv8mZgt2uZUKWkn5_oBHsQIsJPu6nX_rfGG_g7V-fGqKYVDwT7g_bTxR7DAjVUE1oWkTL2dfOuK2HXKu_yIgMZndFIAcc",
            "q": "l2BQjxUjC8yykrmCouuEC_BYHPU",
            "g": "9-GghdabPd7LvKtcNrhXuXmUr7v6OuqC-VdMCz0HgmdRWVeOutRZT-ZxBxCBgLRJFnEj6EwoFhO3zwkyjMim4TwWeotUfI0o4KOuHiuzpnWRbqN_C_ohNWLx-2J6ASQ7zKTxvqhRkImog9_hWuWfBpKLZl6Ae1UlZAFMO_7PSSo"
          }
        },
        "interfaces": [{
            "query": true,
            "admin": true,
            "protocol": "TCP",
            "port": 2641
          },
          {
            "query": true,
            "admin": false,
            "protocol": "UDP",
            "port": 2641
          },
          {
            "query": true,
            "admin": true,
            "protocol": "HTTP",
            "port": 8000
          }
        ]
      }]
    }
  },
  "ttl": 86400,
  "timestamp": "2018-02-28T21:29:55Z"
}

HS_SERV

{
  "index": 1,
  "type": "HS_SERV",
  "data": {
    "format": "string",
    "value": "10.SERV/ISTIC"
  },
  "ttl": 86400,
  "timestamp": "2016-09-20T21:58:55Z"
}

HS_ADMIN

{
	"index": 100,
	"type": "HS_ADMIN",
	"data": {
		"format": "admin",
			"value": {
			"handle": "0.NA/10",
			"index": 200,
			"permissions": "111111110010",
			"legacyByteLength": true
		}
	},
	"ttl": 86400,
	"timestamp": "2008-01-03T18:54:10Z"
}

HS_PUBLIC

{
  "index": 303,
  "type": "HS_PUBKEY",
  "data": {
    "format": "key",
    "value": {
      "kty": "RSA",
      "n": "n6h1TXSqWRYzCkJtQ48C-4v5iI-m3EToLs22NLXclKJU9YrInzHDKuh3rUgNl7ftp5ZbUIcLWHi72-DzzK1NBrkfefAypMQEAUIT2OuqRJBV42s9vxGCm7mnykiv6ag8M1Z3COR1ek960kiwPoOw1GUcaMw6Cu715y5hTWNVFeFZ4eaz1bMrtPhVS99S_WjIJhtkPw3WmpIzCG_BdjQd0CmT-hQHvZPW7njOGoSzcIfXSWZDYVBMAETw35iVVyVHBeLHmFWYCKMS4n1nSHKIaQBikJXC_n4v2vW8mm14uckxWXTy_jHzzTsmglI1J1_rfqN3TFCgTvxs5BuM0YUULQ",
      "e": "AQAB"
    }
  },
  "ttl": 86400,
  "timestamp": "2016-09-15T18:13:06Z"
}

EMAIL

{
  "index": 2,
  "type": "EMAIL",
  "data": {
    "format": "string",
    "value": "[email protected]"
  },
  "ttl": 86400,
  "timestamp": "2008-05-06T15:05:23Z"
}

DESC

{
  "index": 3,
  "type": "DESC",
  "data": {
    "format": "string",
    "value": "DESC: IDF's MPA prefix."
  },
  "ttl": 86400,
  "timestamp": "2016-05-10T14:36:21Z"
}

HS_VLIST

{
  "index": 200,
  "type": "HS_VLIST",
  "data": {
    "format": "vlist",
    "value": [{
        "handle": "0.NA/10",
        "index": 200
      },
      {
        "handle": "10.SERV/DEFAULT",
        "index": 303
      },
      {
        "handle": "10.SERV/DEFAULT",
        "index": 304
      },
      {
        "handle": "10.SERV/DEFAULT",
        "index": 307
      },
      {
        "handle": "10.SERV/DEFAULT",
        "index": 308
      },
      {
        "handle": "10.SERV/DEFAULT",
        "index": 309
      },
      {
        "handle": "10.SERV/DEFAULT",
        "index": 310
      }
    ]
  },
  "ttl": 86400,
  "timestamp": "2016-11-07T21:29:35Z"
}

10320/ra_name

{
  "index": 2,
  "type": "10320/ra_name",
  "data": {
    "format": "string",
    "value": "Public"
  },
  "ttl": 86400,
  "timestamp": "2016-09-15T18:13:06Z"
}

10320/loc

{
  "index": 1000,
  "type": "10320/loc",
  "data": {
    "format": "string",
    "value": "\r\n\r\n\r\n\r\n\r\n"
  },
  "ttl": 86400,
  "timestamp": "2014-10-12T09:05:32Z"
}

你可能感兴趣的:(开源handle系统学习)