Debian Codegraph @

doc/source/specification/endpoints.rst

raw
1 ..
2 Copyright 2014 IBM Corp.
3
4 Licensed under the Apache License, Version 2.0 (the "License"); you may
5 not use this file except in compliance with the License. You may obtain
6 a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 License for the specific language governing permissions and limitations
14 under the License.
15
16 .. _endpoints:
17
18 ==========
19 Endpoints
20 ==========
21
22 The Endpoint type is used to provide information about a resource's location
23 on a network.
24
25 ======== ========= ======== =================================================================================
26 Property Type Required Description
27 ======== ========= ======== =================================================================================
28 url xs:anyURI Yes The network address of the endpoint; for IP-based addresses
29 name xs:string No An optional property to provide a logical name for the endpoint
30 port xs:string No An optional property to provide the port value separate from the address property
31 ======== ========= ======== =================================================================================
32
33 Serialisation
34 =============
35
36 .. code-block:: javascript
37
38 {
39 "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event",
40 ...,
41 "target": {
42 "id": "myscheme://mydomain/resource/id/0001",
43 "name": "server_0001",
44 "addresses": [
45 {
46 "name": "public",
47 "url": "http://mydomain/mypath/server-0001/"
48 },
49 ...
50 ],
51 ...
52 }
53 }