Debian Codegraph @

doc/source/specification/resources.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 .. _resources:
17
18 ==========
19 Resources
20 ==========
21
22 Resources in general can be used to describe traditional IT components
23 (e.g., servers, network devices, etc.), software components
24 (e.g., platforms, databases, applications, etc.), operational and business
25 data (e.g., accounts, users, etc.) and roles, which can be assigned to
26 persons, that describe the authority to access capabilities.
27
28 ============= ================= ========= ===================================================================================================================================
29 Property Type Required Description
30 ============= ================= ========= ===================================================================================================================================
31 id cadf:Identifier Yes The identifier for the resource
32 typeURI cadf:Path Yes The classification (i.e., type) of the resource using the CADF Resource Taxonomy
33 name xs:string No The optional local name for the resource (not necessarily unique)
34 domain xs:string No The optional name of the domain that qualifies the name of the resource
35 credential cadf:Credential No The optional security credentials associated with the resource’s identity
36 addresses cadf:Endpoint[] No The optional descriptive addresses (including URLs) of the resource
37 host cadf:Host No The optional information about the (network) host of the resource
38 geolocation cadf:Geolocation Dependent This optional property describes the geographic location of the resource using Geolocation data type. Required if not geolocationId
39 geolocationId cadf:Identifier Dependent This optional property identifies a CADF Geolocation by reference. Required if not geolocation
40 attachments cadf:Attachment[] No An optional array of extended or domain-specific information about the resource or its context
41 ============= ================= ========= ===================================================================================================================================
42
43 Serialisation
44 =============
45
46 .. code-block:: javascript
47
48 {
49 "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event",
50 ...,
51 "target": {
52 "id": "myscheme://mydomain/resource/id/0001",
53 "typeURI": "service/compute",
54 "name": "server_0001",
55 ...,
56 "geolocation": {
57 "city": "Austin",
58 "state": "TX",
59 "regionICANN": "US"
60 }
61 }
62 }