solarwinds-itsm-api-definitions 0.1.3 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Redocly/development.html +126 -0
  3. data/Redocly/index.html +126 -0
  4. data/Redocly/redoc/favicon.ico +0 -0
  5. data/Redocly/redoc/schema/resolved_schema.json +1 -0
  6. data/lib/definitions/common/components.json +270 -58
  7. data/lib/definitions/common/examples/catalog_item.json +70 -0
  8. data/lib/definitions/common/examples/change.json +127 -0
  9. data/lib/definitions/common/examples/change_catalog.json +92 -0
  10. data/lib/definitions/common/examples/configuration_item.json +108 -0
  11. data/lib/definitions/common/examples/hardware.json +125 -0
  12. data/lib/definitions/common/examples/incident.json +134 -109
  13. data/lib/definitions/common/examples/problem.json +126 -102
  14. data/lib/definitions/common/examples/release.json +150 -0
  15. data/lib/definitions/common/examples/service_request.json +28 -0
  16. data/lib/definitions/common/examples/solution.json +49 -0
  17. data/lib/definitions/common/examples/user.json +100 -70
  18. data/lib/definitions/common/schemas/analytics/audit.json +28 -0
  19. data/lib/definitions/common/schemas/analytics/risk.json +28 -0
  20. data/lib/definitions/common/schemas/inventory/hardware.json +104 -0
  21. data/lib/definitions/common/schemas/inventory/mobile.json +73 -0
  22. data/lib/definitions/common/schemas/inventory/other_asset.json +74 -0
  23. data/lib/definitions/common/schemas/inventory/printer.json +41 -0
  24. data/lib/definitions/common/schemas/inventory/software.json +28 -0
  25. data/lib/definitions/common/schemas/inventory/warranty.json +40 -0
  26. data/lib/definitions/common/schemas/procurement/contract.json +67 -0
  27. data/lib/definitions/common/schemas/procurement/item.json +51 -0
  28. data/lib/definitions/common/schemas/procurement/purchase.json +57 -0
  29. data/lib/definitions/common/schemas/procurement/purchase_order.json +85 -0
  30. data/lib/definitions/common/schemas/procurement/vendor.json +67 -0
  31. data/lib/definitions/common/schemas/service_desk/catalog_item.json +71 -0
  32. data/lib/definitions/common/schemas/service_desk/change.json +88 -0
  33. data/lib/definitions/common/schemas/service_desk/change_catalog.json +77 -0
  34. data/lib/definitions/common/schemas/service_desk/comment.json +52 -0
  35. data/lib/definitions/common/schemas/service_desk/configuration_item.json +117 -0
  36. data/lib/definitions/common/schemas/service_desk/incident.json +99 -0
  37. data/lib/definitions/common/schemas/service_desk/problem.json +81 -0
  38. data/lib/definitions/common/schemas/service_desk/release.json +86 -0
  39. data/lib/definitions/common/schemas/service_desk/service_request.json +31 -0
  40. data/lib/definitions/common/schemas/service_desk/solution.json +61 -0
  41. data/lib/definitions/common/schemas/service_desk/time_track.json +37 -0
  42. data/lib/definitions/common/schemas/setup/category.json +54 -0
  43. data/lib/definitions/common/schemas/setup/department.json +48 -0
  44. data/lib/definitions/common/schemas/setup/group.json +65 -0
  45. data/lib/definitions/common/schemas/setup/role.json +51 -0
  46. data/lib/definitions/common/schemas/setup/site.json +64 -0
  47. data/lib/definitions/common/schemas/setup/user.json +67 -0
  48. data/lib/definitions/common/schemas/tasks/task.json +52 -0
  49. data/lib/definitions/openapi.json +100 -8
  50. data/lib/definitions/paths/attachments/attachments.json +12 -0
  51. data/lib/definitions/paths/audits/audits.json +35 -0
  52. data/lib/definitions/paths/audits/audits_by_id.json +37 -0
  53. data/lib/definitions/paths/catalog_items/catalog_item_by_id.json +83 -0
  54. data/lib/definitions/paths/catalog_items/catalog_items.json +69 -0
  55. data/lib/definitions/paths/categories/categories.json +62 -0
  56. data/lib/definitions/paths/categories/category_by_id.json +70 -0
  57. data/lib/definitions/paths/change_catalogs/change_catalog_by_id.json +83 -0
  58. data/lib/definitions/paths/change_catalogs/change_catalogs.json +69 -0
  59. data/lib/definitions/paths/changes/change_by_id.json +83 -0
  60. data/lib/definitions/paths/changes/changes.json +69 -0
  61. data/lib/definitions/paths/comments/comment_by_id.json +65 -0
  62. data/lib/definitions/paths/comments/comments.json +31 -0
  63. data/lib/definitions/paths/configuration_items/append_dependent_assets.json +24 -0
  64. data/lib/definitions/paths/configuration_items/configuration_item_by_id.json +83 -0
  65. data/lib/definitions/paths/configuration_items/configuration_items.json +69 -0
  66. data/lib/definitions/paths/configuration_items/delete_asset_link.json +24 -0
  67. data/lib/definitions/paths/contracts/contract_by_id.json +74 -0
  68. data/lib/definitions/paths/contracts/contracts.json +62 -0
  69. data/lib/definitions/paths/contracts/item_by_id.json +75 -0
  70. data/lib/definitions/paths/contracts/items.json +30 -0
  71. data/lib/definitions/paths/departments/department_by_id.json +70 -0
  72. data/lib/definitions/paths/departments/departments.json +62 -0
  73. data/lib/definitions/paths/groups/group_by_id.json +70 -0
  74. data/lib/definitions/paths/groups/groups.json +62 -0
  75. data/lib/definitions/paths/hardwares/hardware_by_id.json +83 -0
  76. data/lib/definitions/paths/hardwares/hardwares.json +69 -0
  77. data/lib/definitions/paths/hardwares/warranties.json +64 -0
  78. data/lib/definitions/paths/hardwares/warranty_by_id.json +75 -0
  79. data/lib/definitions/paths/incidents/incident_by_id.json +7 -7
  80. data/lib/definitions/paths/incidents/incidents.json +10 -10
  81. data/lib/definitions/paths/memberships/membership_by_id.json +20 -0
  82. data/lib/definitions/paths/memberships/memberships.json +29 -0
  83. data/lib/definitions/paths/mobiles/mobile_by_id.json +74 -0
  84. data/lib/definitions/paths/mobiles/mobiles.json +62 -0
  85. data/lib/definitions/paths/other_assets/other_asset_by_id.json +74 -0
  86. data/lib/definitions/paths/other_assets/other_assets.json +62 -0
  87. data/lib/definitions/paths/printers/printer_by_id.json +53 -0
  88. data/lib/definitions/paths/printers/printers.json +36 -0
  89. data/lib/definitions/paths/problems/problem_by_id.json +7 -8
  90. data/lib/definitions/paths/problems/problems.json +10 -10
  91. data/lib/definitions/paths/purchase_orders/purchase_order_by_id.json +74 -0
  92. data/lib/definitions/paths/purchase_orders/purchase_orders.json +62 -0
  93. data/lib/definitions/paths/purchases/purchase_by_id.json +65 -0
  94. data/lib/definitions/paths/purchases/purchases.json +31 -0
  95. data/lib/definitions/paths/releases/release_by_id.json +83 -0
  96. data/lib/definitions/paths/releases/releases.json +69 -0
  97. data/lib/definitions/paths/risks/risks.json +34 -0
  98. data/lib/definitions/paths/roles/role_by_id.json +70 -0
  99. data/lib/definitions/paths/roles/roles.json +62 -0
  100. data/lib/definitions/paths/service_requests/request_by_id.json +37 -0
  101. data/lib/definitions/paths/sites/site_by_id.json +74 -0
  102. data/lib/definitions/paths/sites/sites.json +62 -0
  103. data/lib/definitions/paths/softwares/software_by_id.json +24 -0
  104. data/lib/definitions/paths/softwares/softwares.json +36 -0
  105. data/lib/definitions/paths/solutions/solution_by_id.json +83 -0
  106. data/lib/definitions/paths/solutions/solutions.json +69 -0
  107. data/lib/definitions/paths/tasks/task_by_id.json +65 -0
  108. data/lib/definitions/paths/tasks/tasks.json +31 -0
  109. data/lib/definitions/paths/time_tracks/time_track_by_id.json +65 -0
  110. data/lib/definitions/paths/time_tracks/time_tracks.json +66 -0
  111. data/lib/definitions/paths/users/user_by_id.json +8 -9
  112. data/lib/definitions/paths/users/users.json +11 -11
  113. data/lib/definitions/paths/vendors/vendor_by_id.json +74 -0
  114. data/lib/definitions/paths/vendors/vendors.json +62 -0
  115. data/lib/solarwinds/itsm/api/definitions.rb +52 -3
  116. metadata +104 -6
  117. data/lib/definitions/common/schemas/incident.json +0 -70
  118. data/lib/definitions/common/schemas/problem.json +0 -67
  119. data/lib/definitions/common/schemas/user.json +0 -54
  120. data/lib/resolved_schema/resolved_schema.json +0 -1
@@ -0,0 +1,150 @@
1
+ {
2
+ "examples": {
3
+ "request": {
4
+ "json": {
5
+ "release": {
6
+ "name": "Release Name",
7
+ "site_id": 1,
8
+ "department_id": 1,
9
+ "description": "description",
10
+ "state": 1,
11
+ "plan": "plan description" ,
12
+ "build": "build description",
13
+ "deploy": "deploy description",
14
+ "planned_start_at": "2025-01-01 00:00",
15
+ "planned_end_at": "2025-01-01 05:00" ,
16
+ "assignee": { "email": "john.doe@email.com" },
17
+ "requester": { "email": "john.doe@email.com" },
18
+ "priority": "High",
19
+ "add_to_tag_list": "tag1",
20
+ "remove_from_tag_list": "tag2",
21
+ "tag_list": "tag1",
22
+ "custom_fields_values_attributes": [
23
+ { "id": 10, "custom_field_id": 1, "value": "content" },
24
+ { "id": 100, "custom_field_id": 2, "value": "1" }
25
+ ],
26
+ "custom_fields_values": {
27
+ "custom_fields_value": [
28
+ { "name": "Text custom field", "value": "content" },
29
+ { "name": "User custom field", "user_value": { "email": "john.doe@email.com" } }
30
+ ]
31
+ },
32
+ "approval_levels_attributes": [
33
+ { "id": "1", "approver_ids": "1", "approval_condition": "1" }
34
+ ],
35
+ "itsm_change_ids": [100],
36
+ "configuration_item_ids":[100]
37
+ }
38
+ }
39
+ },
40
+ "response": {
41
+ "json": {
42
+ "release": {
43
+ "id": "10000",
44
+ "number": "1000",
45
+ "name": "Release Name",
46
+ "description": "description",
47
+ "state": "New",
48
+ "plan": "plan description" ,
49
+ "build": "build description",
50
+ "deploy": "deploy description",
51
+ "planned_start_at": "2025-01-01T00:00:00.000+01:00",
52
+ "planned_end_at": "2025-01-01T05:00:00.000+01:00" ,
53
+ "site": {
54
+ "id": "1",
55
+ "name": "Austin TX, USA",
56
+ "location": "AUS",
57
+ "description": "Austin TX, USA"
58
+ },
59
+ "department": {
60
+ "id": "1",
61
+ "name": "Support",
62
+ "description": "Support Department",
63
+ "default_assignee_id": "1"
64
+ },
65
+ "priority": "High",
66
+ "created_by": {
67
+ "id": "1",
68
+ "account_id": "1",
69
+ "user_id": "1",
70
+ "email": "john.doe@email.com",
71
+ "name": "John Doe",
72
+ "disabled": false,
73
+ "avatar": {
74
+ "type": "initials",
75
+ "color": "#fd4165",
76
+ "initials": "JD"
77
+ }
78
+ },
79
+ "assignee": {
80
+ "group_id": "1",
81
+ "is_user": "true",
82
+ "id": "1",
83
+ "name": "John Doe",
84
+ "email": "john.doe@email.com",
85
+ "avatar": {
86
+ "type": "initials",
87
+ "color": "#fd4165",
88
+ "initials": "JD"
89
+ }
90
+ },
91
+ "requester": {
92
+ "id": "1",
93
+ "account_id": "1",
94
+ "user_id": "1",
95
+ "email": "john.doe@email.com",
96
+ "name": "John Doe",
97
+ "disabled": false,
98
+ "avatar": {
99
+ "type": "initials",
100
+ "color": "#fd4165",
101
+ "initials": "JD"
102
+ }
103
+ },
104
+ "custom_fields_values": [
105
+ {
106
+ "id": "10",
107
+ "custom_field_id": "1",
108
+ "name": "Text custom field",
109
+ "value": "content",
110
+ "options": "",
111
+ "type_name": "Text"
112
+ },
113
+ {
114
+ "id": "100",
115
+ "custom_field_id": "2",
116
+ "name": "User custom field",
117
+ "value": "1",
118
+ "options": "",
119
+ "type_name": "User",
120
+ "user": {
121
+ "group_id": 1,
122
+ "is_user": true,
123
+ "id": 1,
124
+ "name": "John Doe",
125
+ "email": "john.doe@email.com"
126
+ }
127
+ }
128
+ ],
129
+ "tags": [{ "id": 1, "name": "tag1", "taggings_count": 1 }],
130
+ "approvers": [
131
+ {
132
+ "group_id": "1",
133
+ "is_user": "true",
134
+ "id": "1",
135
+ "name": "John Doe",
136
+ "email": "john.doe@email.com",
137
+ "avatar": {
138
+ "type": "initials",
139
+ "color": "#fd4165",
140
+ "initials": "JD"
141
+ }
142
+ }
143
+ ],
144
+ "changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
145
+ "configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "examples": {
3
+ "incident": {
4
+ "site_id": "1",
5
+ "department_id": "1",
6
+ "requester_name": "john.doe@email.com",
7
+ "priority": "High",
8
+ "due_at": "Jan 01,2025",
9
+ "add_to_tag_list": "tag1, tag2",
10
+ "remove_from_tag_list": "tag3",
11
+ "tag_list": "tag1, tag2",
12
+ "request_variables_attributes": [
13
+ {
14
+ "name": "Variable name",
15
+ "value": "Content"
16
+ },
17
+ {
18
+ "name": "User Variable",
19
+ "user_value": { "email": "john.doe@email.com" }
20
+ },
21
+ {
22
+ "name": "MultyPickList variable",
23
+ "value": "option1#dlmtr#option2"
24
+ }
25
+ ]
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "examples": {
3
+ "request": {
4
+ "json": {
5
+ "solution": {
6
+ "name": "Solution Name",
7
+ "site_id": 1,
8
+ "department_id": 1,
9
+ "description": "description",
10
+ "state": "Approved",
11
+ "category": { "name": "Facilities" },
12
+ "subcategory": { "name": "Equipment" },
13
+ "add_to_tag_list": "tag1, tag2",
14
+ "remove_from_tag_list": "tag3",
15
+ "tag_list": "tag1, tag2",
16
+ "custom_fields_values_attributes": [
17
+ { "id": 10, "custom_field_id": 1, "value": "content" },
18
+ { "id": 100, "custom_field_id": 2, "value": "1" }
19
+ ],
20
+ "custom_fields_values": {
21
+ "custom_fields_value": [
22
+ { "name": "Text custom field", "value": "content" },
23
+ { "name": "User custom field", "user_value": { "email": "john.doe@email.com" } }
24
+ ]
25
+ },
26
+ "incident_ids": [100]
27
+ }
28
+ }
29
+ },
30
+ "response": {
31
+ "json": {
32
+ "solution": {
33
+ "id": "10000",
34
+ "number": "1000",
35
+ "name": "Solution Name",
36
+ "description": "description",
37
+ "created_at": "2025-01-01T00:00:00.000+01:00",
38
+ "creator": {
39
+ "id": "1",
40
+ "name": "John Doe",
41
+ "email": "john.doe@email.com"
42
+ },
43
+ "origin": "api",
44
+ "incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}]
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
@@ -1,76 +1,106 @@
1
1
  {
2
- "examples": {
3
- "request": {
4
- "json": {
5
- "user": {
6
- "name": "John Doe",
7
- "email": "john.doe@email.com",
8
- "title": "Support Agent",
9
- "site": { "name": "AUS" },
10
- "department": { "name": "Support" },
11
- "role": { "name": "Requester" },
12
- "phone": "+10000000",
13
- "mobile_phone": "+10000000",
14
- "reports_to": { "email": "john.boe@email.com" },
15
- "custom_field_values": {
16
- "custom_field_value": [
17
- { "name": "field name", "value": "content" }
18
- ]
19
- }
20
- }
2
+ "examples": {
3
+ "request": {
4
+ "json": {
5
+ "user": {
6
+ "name": "John Doe",
7
+ "email": "john.doe@email.com",
8
+ "title": "Support Agent",
9
+ "site": { "name": "AUS" },
10
+ "department": { "name": "Support" },
11
+ "role": { "name": "Requester" },
12
+ "phone": "+10000000",
13
+ "mobile_phone": "+10000000",
14
+ "reports_to": { "email": "jane.doe@email.com" },
15
+ "custom_fields_values_attributes": [
16
+ { "id": 10, "custom_field_id": 1, "value": "content" },
17
+ { "id": 100, "custom_field_id": 2, "value": "1" }
18
+ ],
19
+ "custom_fields_values": {
20
+ "custom_fields_value": [
21
+ { "name": "Text custom field", "value": "content" },
22
+ { "name": "User custom field", "user_value": { "email": "john.doe@email.com" } }
23
+ ]
24
+ }
25
+ }
26
+ }
27
+ },
28
+ "response": {
29
+ "json": {
30
+ "user": {
31
+ "id": "10000",
32
+ "name": "John Doe",
33
+ "title": "Support Agent",
34
+ "disabled": false,
35
+ "email": "john.doe@email.com",
36
+ "created_at": "2030-01-01T00:00:00.000+00:00",
37
+ "phone": "+10000000",
38
+ "mobile_phone": "+10000000",
39
+ "site": {
40
+ "id": "1",
41
+ "name": "Austin TX, USA",
42
+ "location": "AUS",
43
+ "description": "",
44
+ "time_zone": ""
45
+ },
46
+ "department": {
47
+ "id": "1",
48
+ "name": "Support",
49
+ "description": "",
50
+ "default_assignee_id": "1"
51
+ },
52
+ "role": {
53
+ "id": 1,
54
+ "name": "Requester",
55
+ "description": "Requester role.",
56
+ "portal": true,
57
+ "show_my_tasks": true
58
+ },
59
+ "group_ids": [1],
60
+ "avatar": {
61
+ "type": "initials",
62
+ "color": "#fd4165",
63
+ "initials": "JD"
64
+ },
65
+ "reports_to": {
66
+ "group_id": "1",
67
+ "is_user": "true",
68
+ "id": "100",
69
+ "name": "Jane Doe",
70
+ "email": "jane.doe@email.com",
71
+ "avatar": {
72
+ "type": "initials",
73
+ "color": "#fd4166",
74
+ "initials": "JD"
21
75
  }
22
- },
23
- "response": {
24
- "json": {
25
- "user": {
26
- "id": "10000",
27
- "name": "John Doe",
28
- "title": "Support Agent",
29
- "disabled": false,
30
- "email": "john.doe@email.com",
31
- "created_at": "2030-01-01T00:00:00.000+00:00",
32
- "phone": "+10000000",
33
- "mobile_phone": "+10000000",
34
- "site": {
35
- "id": "1",
36
- "name": "Austin TX, USA",
37
- "location": "AUS",
38
- "description": "",
39
- "time_zone": ""
40
- },
41
- "department": {
42
- "id": "1",
43
- "name": "Support",
44
- "description": "",
45
- "default_assignee_id": "1"
46
- },
47
- "role": {
48
- "id": 1,
49
- "name": "Requester",
50
- "description": "Requester role.",
51
- "portal": true,
52
- "show_my_tasks": true
53
- },
54
- "group_ids": [1],
55
- "avatar": {
56
- "type": "initials",
57
- "color": "#fd4165",
58
- "initials": "JD"
59
- },
60
- "reports_to": {
61
- "group_id": "1",
62
- "is_user": "true",
63
- "id": "100",
64
- "name": "John Boe",
65
- "email": "john.boe@email.com",
66
- "avatar": {
67
- "type": "initials",
68
- "color": "#fd4166",
69
- "initials": "JB"
70
- }
71
- }
72
- }
76
+ },
77
+ "custom_fields_values": [
78
+ {
79
+ "id": "10",
80
+ "custom_field_id": "1",
81
+ "name": "Text custom field",
82
+ "value": "content",
83
+ "options": "",
84
+ "type_name": "Text"
85
+ },
86
+ {
87
+ "id": "100",
88
+ "custom_field_id": "2",
89
+ "name": "User custom field",
90
+ "value": "1",
91
+ "options": "",
92
+ "type_name": "User",
93
+ "user": {
94
+ "group_id": 1,
95
+ "is_user": true,
96
+ "id": 1,
97
+ "name": "John Doe",
98
+ "email": "john.doe@email.com"
99
+ }
73
100
  }
101
+ ]
74
102
  }
103
+ }
75
104
  }
105
+ }
76
106
  }
@@ -0,0 +1,28 @@
1
+ {
2
+ "components": {
3
+ "schemas": {
4
+ "response": {
5
+ "type": "object",
6
+ "xml": { "name": "/", "wrapped": true },
7
+ "properties": {
8
+ "audit": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": { "$ref": "../../components.json#/components/response/schemas/id" },
12
+ "message": { "type": "string", "example": "State changed from New to On Hold" },
13
+ "action": { "type": "string", "example": "Update" },
14
+ "created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
15
+ "source_type": { "type": "string", "example": "Incident" },
16
+ "source_id": { "$ref": "../../components.json#/components/response/schemas/id" },
17
+ "user_id": { "$ref": "../../components.json#/components/response/schemas/id" },
18
+ "user": { "$ref": "../../components.json#/components/response/schemas/user_details" },
19
+ "site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
20
+ "department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
21
+ "note": { "type": "string", "example": "Audit note" }
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "components": {
3
+ "schemas": {
4
+ "response": {
5
+ "type": "object",
6
+ "xml": { "name": "/", "wrapped": true },
7
+ "properties": {
8
+ "id": { "$ref": "../../components.json#/components/response/schemas/id" },
9
+ "name": { "type": "string", "example": "Risk name" },
10
+ "severity": { "type": "string", "example": "Medium" },
11
+ "category": { "type": "string", "example": "Inventory" },
12
+ "discarded": { "type": "boolean", "example": false },
13
+ "resolved": { "type": "boolean", "example": false },
14
+ "affected_assets": {
15
+ "type": "object",
16
+ "properties": {
17
+ "id": { "$ref": "../../components.json#/components/response/schemas/id" },
18
+ "name": { "type": "string", "example": "Computer name" },
19
+ "type": { "type": "string", "example": "Hardware" }
20
+ }
21
+ },
22
+ "created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
23
+ "updated at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }