solarwinds-itsm-api-definitions 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/definitions/common/components.json +222 -58
- data/lib/definitions/common/examples/catalog_item.json +70 -0
- data/lib/definitions/common/examples/change.json +123 -0
- data/lib/definitions/common/examples/change_catalog.json +72 -0
- data/lib/definitions/common/examples/configuration_item.json +110 -0
- data/lib/definitions/common/examples/hardware.json +100 -0
- data/lib/definitions/common/examples/incident.json +130 -109
- data/lib/definitions/common/examples/problem.json +6 -4
- data/lib/definitions/common/examples/release.json +128 -0
- data/lib/definitions/common/examples/service_request.json +28 -0
- data/lib/definitions/common/examples/solution.json +44 -0
- data/lib/definitions/common/examples/user.json +6 -6
- data/lib/definitions/common/schemas/analytics/audit.json +28 -0
- data/lib/definitions/common/schemas/analytics/risk.json +28 -0
- data/lib/definitions/common/schemas/inventory/hardware.json +104 -0
- data/lib/definitions/common/schemas/inventory/mobile.json +73 -0
- data/lib/definitions/common/schemas/inventory/other_asset.json +74 -0
- data/lib/definitions/common/schemas/inventory/printer.json +41 -0
- data/lib/definitions/common/schemas/inventory/software.json +28 -0
- data/lib/definitions/common/schemas/inventory/warranty.json +40 -0
- data/lib/definitions/common/schemas/procurement/contract.json +67 -0
- data/lib/definitions/common/schemas/procurement/item.json +51 -0
- data/lib/definitions/common/schemas/procurement/purchase.json +57 -0
- data/lib/definitions/common/schemas/procurement/purchase_order.json +82 -0
- data/lib/definitions/common/schemas/procurement/vendor.json +67 -0
- data/lib/definitions/common/schemas/service_desk/catalog_item.json +71 -0
- data/lib/definitions/common/schemas/service_desk/change.json +88 -0
- data/lib/definitions/common/schemas/service_desk/change_catalog.json +77 -0
- data/lib/definitions/common/schemas/service_desk/comment.json +52 -0
- data/lib/definitions/common/schemas/service_desk/configuration_item.json +119 -0
- data/lib/definitions/common/schemas/service_desk/incident.json +89 -0
- data/lib/definitions/common/schemas/service_desk/problem.json +81 -0
- data/lib/definitions/common/schemas/service_desk/release.json +86 -0
- data/lib/definitions/common/schemas/service_desk/service_request.json +31 -0
- data/lib/definitions/common/schemas/service_desk/solution.json +61 -0
- data/lib/definitions/common/schemas/service_desk/time_track.json +37 -0
- data/lib/definitions/common/schemas/setup/category.json +54 -0
- data/lib/definitions/common/schemas/setup/department.json +48 -0
- data/lib/definitions/common/schemas/setup/group.json +65 -0
- data/lib/definitions/common/schemas/setup/role.json +51 -0
- data/lib/definitions/common/schemas/setup/site.json +64 -0
- data/lib/definitions/common/schemas/setup/user.json +67 -0
- data/lib/definitions/common/schemas/tasks/task.json +52 -0
- data/lib/definitions/openapi.json +91 -4
- data/lib/definitions/paths/attachments/attachments.json +12 -0
- data/lib/definitions/paths/audits/audits.json +35 -0
- data/lib/definitions/paths/audits/audits_by_id.json +37 -0
- data/lib/definitions/paths/catalog_items/catalog_item_by_id.json +83 -0
- data/lib/definitions/paths/catalog_items/catalog_items.json +69 -0
- data/lib/definitions/paths/categories/categories.json +62 -0
- data/lib/definitions/paths/categories/category_by_id.json +70 -0
- data/lib/definitions/paths/change_catalogs/change_catalog_by_id.json +83 -0
- data/lib/definitions/paths/change_catalogs/change_catalogs.json +69 -0
- data/lib/definitions/paths/changes/change_by_id.json +83 -0
- data/lib/definitions/paths/changes/changes.json +69 -0
- data/lib/definitions/paths/comments/comment_by_id.json +65 -0
- data/lib/definitions/paths/comments/comments.json +31 -0
- data/lib/definitions/paths/configuration_items/append_dependent_assets.json +24 -0
- data/lib/definitions/paths/configuration_items/configuration_item_by_id.json +83 -0
- data/lib/definitions/paths/configuration_items/configuration_items.json +69 -0
- data/lib/definitions/paths/configuration_items/delete_asset_link.json +24 -0
- data/lib/definitions/paths/contracts/contract_by_id.json +74 -0
- data/lib/definitions/paths/contracts/contracts.json +62 -0
- data/lib/definitions/paths/contracts/item_by_id.json +75 -0
- data/lib/definitions/paths/contracts/items.json +30 -0
- data/lib/definitions/paths/departments/department_by_id.json +70 -0
- data/lib/definitions/paths/departments/departments.json +62 -0
- data/lib/definitions/paths/groups/group_by_id.json +70 -0
- data/lib/definitions/paths/groups/groups.json +62 -0
- data/lib/definitions/paths/hardwares/hardware_by_id.json +83 -0
- data/lib/definitions/paths/hardwares/hardwares.json +69 -0
- data/lib/definitions/paths/hardwares/warranties.json +64 -0
- data/lib/definitions/paths/hardwares/warranty_by_id.json +75 -0
- data/lib/definitions/paths/incidents/incident_by_id.json +7 -7
- data/lib/definitions/paths/incidents/incidents.json +10 -10
- data/lib/definitions/paths/memberships/membership_by_id.json +20 -0
- data/lib/definitions/paths/memberships/memberships.json +29 -0
- data/lib/definitions/paths/mobiles/mobile_by_id.json +74 -0
- data/lib/definitions/paths/mobiles/mobiles.json +62 -0
- data/lib/definitions/paths/other_assets/other_asset_by_id.json +74 -0
- data/lib/definitions/paths/other_assets/other_assets.json +62 -0
- data/lib/definitions/paths/printers/printer_by_id.json +53 -0
- data/lib/definitions/paths/printers/printers.json +36 -0
- data/lib/definitions/paths/problems/problem_by_id.json +7 -8
- data/lib/definitions/paths/problems/problems.json +10 -10
- data/lib/definitions/paths/purchase_orders/purchase_order_by_id.json +74 -0
- data/lib/definitions/paths/purchase_orders/purchase_orders.json +62 -0
- data/lib/definitions/paths/purchases/purchase_by_id.json +65 -0
- data/lib/definitions/paths/purchases/purchases.json +31 -0
- data/lib/definitions/paths/releases/release_by_id.json +83 -0
- data/lib/definitions/paths/releases/releases.json +69 -0
- data/lib/definitions/paths/risks/risks.json +34 -0
- data/lib/definitions/paths/roles/role_by_id.json +70 -0
- data/lib/definitions/paths/roles/roles.json +62 -0
- data/lib/definitions/paths/service_requests/request_by_id.json +37 -0
- data/lib/definitions/paths/sites/site_by_id.json +74 -0
- data/lib/definitions/paths/sites/sites.json +62 -0
- data/lib/definitions/paths/softwares/software_by_id.json +24 -0
- data/lib/definitions/paths/softwares/softwares.json +36 -0
- data/lib/definitions/paths/solutions/solution_by_id.json +83 -0
- data/lib/definitions/paths/solutions/solutions.json +69 -0
- data/lib/definitions/paths/tasks/task_by_id.json +65 -0
- data/lib/definitions/paths/tasks/tasks.json +31 -0
- data/lib/definitions/paths/time_tracks/time_track_by_id.json +65 -0
- data/lib/definitions/paths/time_tracks/time_tracks.json +66 -0
- data/lib/definitions/paths/users/user_by_id.json +8 -9
- data/lib/definitions/paths/users/users.json +11 -11
- data/lib/definitions/paths/vendors/vendor_by_id.json +74 -0
- data/lib/definitions/paths/vendors/vendors.json +62 -0
- data/lib/resolved_schema/resolved_schema.json +1 -1
- metadata +100 -5
- data/lib/definitions/common/schemas/incident.json +0 -70
- data/lib/definitions/common/schemas/problem.json +0 -67
- data/lib/definitions/common/schemas/user.json +0 -54
@@ -0,0 +1,123 @@
|
|
1
|
+
{
|
2
|
+
"examples": {
|
3
|
+
"request": {
|
4
|
+
"json": {
|
5
|
+
"change": {
|
6
|
+
"name": "Change Name",
|
7
|
+
"change_type": 1,
|
8
|
+
"site_id": 1,
|
9
|
+
"department_id": 1,
|
10
|
+
"description": "description",
|
11
|
+
"state_id": 1,
|
12
|
+
"assignee": { "email": "john.doe@email.com" },
|
13
|
+
"requester": { "email": "john.doe@email.com" },
|
14
|
+
"priority": "High",
|
15
|
+
"change_plan": "change plan",
|
16
|
+
"rollback_plan": "rollback plan",
|
17
|
+
"test_plan": "test plan" ,
|
18
|
+
"planned_start_at": "2025-01-01 00:00" ,
|
19
|
+
"planned_end_at": "2025-01-01 05:00",
|
20
|
+
"add_to_tag_list": "tag1, tag2",
|
21
|
+
"remove_from_tag_list": "tag3",
|
22
|
+
"tag_list": "tag1, tag2",
|
23
|
+
"custom_fields_values": {
|
24
|
+
"custom_fields_value": [
|
25
|
+
{ "name": "Text custom field", "value": "content" },
|
26
|
+
{ "name": "User custom field", "user_value": { "email": "john.doe@email.com" } }
|
27
|
+
]
|
28
|
+
},
|
29
|
+
"incidents": [{ "number": "100" }],
|
30
|
+
"problems": [{ "number": "100" }],
|
31
|
+
"releases": [{ "number": "100" }],
|
32
|
+
"configuration_item_ids":["100"]
|
33
|
+
}
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"response": {
|
37
|
+
"json": {
|
38
|
+
"change": {
|
39
|
+
"id": "10000",
|
40
|
+
"number": "1000",
|
41
|
+
"name": "Change Name",
|
42
|
+
"description": "description",
|
43
|
+
"state": "New",
|
44
|
+
"site": {
|
45
|
+
"id": "1",
|
46
|
+
"name": "Austin TX, USA",
|
47
|
+
"location": "AUS",
|
48
|
+
"description": "",
|
49
|
+
"time_zone": ""
|
50
|
+
},
|
51
|
+
"department": {
|
52
|
+
"id": "1",
|
53
|
+
"name": "Support",
|
54
|
+
"description": "",
|
55
|
+
"default_assignee_id": "1"
|
56
|
+
},
|
57
|
+
"priority": "High",
|
58
|
+
"assignee": {
|
59
|
+
"group_id": "1",
|
60
|
+
"is_user": "true",
|
61
|
+
"id": "1",
|
62
|
+
"name": "John Doe",
|
63
|
+
"email": "john.doe@email.com",
|
64
|
+
"avatar": {
|
65
|
+
"type": "initials",
|
66
|
+
"color": "#fd4165",
|
67
|
+
"initials": "JD"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"requester": {
|
71
|
+
"id": "1",
|
72
|
+
"account_id": "1",
|
73
|
+
"user_id": "1",
|
74
|
+
"email": "john.doe@email.com",
|
75
|
+
"name": "John Doe",
|
76
|
+
"disabled": false,
|
77
|
+
"avatar": {
|
78
|
+
"type": "initials",
|
79
|
+
"color": "#fd4165",
|
80
|
+
"initials": "JD"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
"custom_fields_values": [
|
84
|
+
{
|
85
|
+
"id": "10",
|
86
|
+
"custom_field_id": "1",
|
87
|
+
"name": "Text custom field",
|
88
|
+
"value": "content",
|
89
|
+
"options": "",
|
90
|
+
"type_name": "Text"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"id": "100",
|
94
|
+
"custom_field_id": "1",
|
95
|
+
"name": "User custom field",
|
96
|
+
"value": "1",
|
97
|
+
"options": "",
|
98
|
+
"type_name": "User",
|
99
|
+
"user": {
|
100
|
+
"group_id": 1,
|
101
|
+
"is_user": true,
|
102
|
+
"id": 1,
|
103
|
+
"name": "John Doe",
|
104
|
+
"email": "john.doe@email.com"
|
105
|
+
}
|
106
|
+
}
|
107
|
+
],
|
108
|
+
"change_plan": "change plan",
|
109
|
+
"rollback_plan": "rollback plan",
|
110
|
+
"test_plan": "test plan" ,
|
111
|
+
"planned_start_at": "2025-01-01T00:00:00.000+01:00" ,
|
112
|
+
"planned_end_at": "2025-01-01T05:00:00.000+01:00",
|
113
|
+
"origin": "api",
|
114
|
+
"created_at": "2025-01-01T00:00:00.000+01:00",
|
115
|
+
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
|
116
|
+
"problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
|
117
|
+
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
118
|
+
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
{
|
2
|
+
"examples": {
|
3
|
+
"request": {
|
4
|
+
"json": {
|
5
|
+
"change_catalog": {
|
6
|
+
"name": "Change Catalog Name",
|
7
|
+
"change_type": 1,
|
8
|
+
"site_id": 1,
|
9
|
+
"department_id": 1,
|
10
|
+
"description": "description",
|
11
|
+
"state_id": 1,
|
12
|
+
"default_assignee_id": 1,
|
13
|
+
"priority": "High",
|
14
|
+
"change_plan": "change plan",
|
15
|
+
"rollback_plan": "rollback plan",
|
16
|
+
"test_plan": "test plan" ,
|
17
|
+
"add_to_tag_list": "tag1, tag2",
|
18
|
+
"remove_from_tag_list": "tag3",
|
19
|
+
"tag_list": "tag1, tag2",
|
20
|
+
"custom_fields_values": {
|
21
|
+
"custom_fields_value": [
|
22
|
+
{ "name": "Name of custom text field", "value": "content" }
|
23
|
+
]
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"show_in_portal": true
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"response": {
|
30
|
+
"json": {
|
31
|
+
"change_catalog": {
|
32
|
+
"id": "1",
|
33
|
+
"number": "1",
|
34
|
+
"name": "Change Catalog Name",
|
35
|
+
"description": "description",
|
36
|
+
"state": "Approved",
|
37
|
+
"site": {
|
38
|
+
"id": "1",
|
39
|
+
"name": "Austin TX, USA",
|
40
|
+
"location": "AUS",
|
41
|
+
"description": "",
|
42
|
+
"time_zone": ""
|
43
|
+
},
|
44
|
+
"department": {
|
45
|
+
"id": "1",
|
46
|
+
"name": "Support",
|
47
|
+
"description": "",
|
48
|
+
"default_assignee_id": "1"
|
49
|
+
},
|
50
|
+
"priority": "High",
|
51
|
+
"default_assignee_id": 1,
|
52
|
+
"custom_fields_values": [
|
53
|
+
{
|
54
|
+
"id": "1",
|
55
|
+
"custom_field_id": "1",
|
56
|
+
"name": "Name of custom text field",
|
57
|
+
"value": "content",
|
58
|
+
"options": "",
|
59
|
+
"type_name": "Text"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"change_plan": "change plan",
|
63
|
+
"rollback_plan": "rollback plan",
|
64
|
+
"test_plan": "test plan",
|
65
|
+
"origin": "api",
|
66
|
+
"created_at": "2025-01-01T00:00:00.000+01:00",
|
67
|
+
"show_in_portal": true
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
{
|
2
|
+
"examples": {
|
3
|
+
"request": {
|
4
|
+
"json": {
|
5
|
+
"configuration_item": {
|
6
|
+
"name": "Configuration Item Name",
|
7
|
+
"description": "Description",
|
8
|
+
"type": { "name": "Building" },
|
9
|
+
"type_id": 1,
|
10
|
+
"asset_tag": "ConfigurationItemTag",
|
11
|
+
"site_id": 1,
|
12
|
+
"department_id": 1,
|
13
|
+
"state": "Active",
|
14
|
+
"manager": { "email": "john.doe@email.com" },
|
15
|
+
"user": { "email": "jane.doe@email.com" },
|
16
|
+
"add_to_tag_list": "tag1, tag2",
|
17
|
+
"remove_from_tag_list": "tag3",
|
18
|
+
"tag_list": "tag1, tag2",
|
19
|
+
"custom_fields_values_attributes": [
|
20
|
+
{ "id": "1", "custom_field_id": 1, "value": "content" }
|
21
|
+
],
|
22
|
+
"incident_ids": [100],
|
23
|
+
"problem_ids": [100],
|
24
|
+
"itsm_change_ids": [100],
|
25
|
+
"release_ids": [100],
|
26
|
+
"purchase_order_ids":[100],
|
27
|
+
"configuration_item_ids": [100]
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"response": {
|
32
|
+
"json": {
|
33
|
+
"configuration_item": {
|
34
|
+
"id": "10000",
|
35
|
+
"number": "1000",
|
36
|
+
"name": "Configuration Item Name",
|
37
|
+
"description": "description",
|
38
|
+
"asset_tag": "ConfigurationItemTag",
|
39
|
+
"type": {
|
40
|
+
"id": 1,
|
41
|
+
"name": "Building",
|
42
|
+
"description": "Configuration Item - Building",
|
43
|
+
"parent_id": 1,
|
44
|
+
"custom": false,
|
45
|
+
"updated_at": "2025-01-01T00:00:00.000+01:00",
|
46
|
+
"icon_name": "BUILDING"
|
47
|
+
},
|
48
|
+
"type_id": 1,
|
49
|
+
"state": "Active",
|
50
|
+
"site": {
|
51
|
+
"id": "1",
|
52
|
+
"name": "Austin TX, USA",
|
53
|
+
"location": "AUS",
|
54
|
+
"description": "",
|
55
|
+
"time_zone": ""
|
56
|
+
},
|
57
|
+
"department": {
|
58
|
+
"id": "1",
|
59
|
+
"name": "Support",
|
60
|
+
"description": "",
|
61
|
+
"default_assignee_id": "1"
|
62
|
+
},
|
63
|
+
"manager_id": {
|
64
|
+
"group_id": "1",
|
65
|
+
"is_user": "true",
|
66
|
+
"id": "1",
|
67
|
+
"name": "John Doe",
|
68
|
+
"email": "john.doe@email.com",
|
69
|
+
"avatar": {
|
70
|
+
"type": "initials",
|
71
|
+
"color": "#fd4165",
|
72
|
+
"initials": "JD"
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"user_id": {
|
76
|
+
"group_id": "1",
|
77
|
+
"is_user": "true",
|
78
|
+
"id": "1",
|
79
|
+
"name": "Jane Doe",
|
80
|
+
"email": "jane.doe@email.com",
|
81
|
+
"avatar": {
|
82
|
+
"type": "initials",
|
83
|
+
"color": "#fd4165",
|
84
|
+
"initials": "JD"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
"custom_fields_values": [
|
88
|
+
{
|
89
|
+
"id": "1000",
|
90
|
+
"custom_field_id": "1",
|
91
|
+
"name": "field name",
|
92
|
+
"value": "content",
|
93
|
+
"options": "",
|
94
|
+
"type_name": "Text"
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"updated_at": "2025-01-01T00:00:00.000+01:00",
|
98
|
+
"created_at": "2025-01-01T00:00:00.000+01:00",
|
99
|
+
"origin": "api",
|
100
|
+
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
|
101
|
+
"problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
|
102
|
+
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
|
103
|
+
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
104
|
+
"purchase_orders": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
105
|
+
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
{
|
2
|
+
"examples": {
|
3
|
+
"request": {
|
4
|
+
"hardware": {
|
5
|
+
"name": "Hardware Name",
|
6
|
+
"description": "description",
|
7
|
+
"category": { "name": "Laptop" },
|
8
|
+
"site_id": 1,
|
9
|
+
"department_id": 1,
|
10
|
+
"ip_address": "0.0.0.0",
|
11
|
+
"external_ip": "0.0.0.0",
|
12
|
+
"status": { "name": "Operational" },
|
13
|
+
"technical_contact": { "email": "john.doe@email.com" },
|
14
|
+
"owner": { "email": "john.doe@email.com" },
|
15
|
+
"notes": "Hardware notes",
|
16
|
+
"barcode_encoding_format": "Code1A",
|
17
|
+
"cpu": "hardware_cpu",
|
18
|
+
"processor_speed": "processor_speed",
|
19
|
+
"memory":1024,
|
20
|
+
"swap": "MB",
|
21
|
+
"operating_system": "Windows 10",
|
22
|
+
"domain": "domain description",
|
23
|
+
"active_directory": "Workgroup of the OS",
|
24
|
+
"address": "Site 1, Building 1, Department 1",
|
25
|
+
"longitude": "0.000",
|
26
|
+
"latitude":"0.000",
|
27
|
+
"product_number":"1",
|
28
|
+
"custom_fields_values":{
|
29
|
+
"custom_fields_value":[
|
30
|
+
{ "name": "Name of custom text field", "value":"content" }
|
31
|
+
]
|
32
|
+
},
|
33
|
+
"bio": {
|
34
|
+
"manufacturer":"Dell",
|
35
|
+
"ssn":"1",
|
36
|
+
"model":"model description",
|
37
|
+
"version":"1",
|
38
|
+
"bios_date":"2020-01-01 00:00"
|
39
|
+
},
|
40
|
+
"tag": "tag",
|
41
|
+
"asset_tag": 1
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"response": {
|
45
|
+
"hardware": {
|
46
|
+
"id": 1,
|
47
|
+
"name": "Hardware Name",
|
48
|
+
"description": "description",
|
49
|
+
"category": { "id": 1, "name": "Laptop" },
|
50
|
+
"site": {
|
51
|
+
"id": "1",
|
52
|
+
"name": "Austin TX, USA",
|
53
|
+
"location": "AUS",
|
54
|
+
"description": "",
|
55
|
+
"time_zone": ""
|
56
|
+
},
|
57
|
+
"department": {
|
58
|
+
"id": "1",
|
59
|
+
"name": "Support",
|
60
|
+
"description": "",
|
61
|
+
"default_assignee_id": "1"
|
62
|
+
},
|
63
|
+
"ip": "0.0.0.0",
|
64
|
+
"external_ip": "0.0.0.0",
|
65
|
+
"status": { "name": "Operational" },
|
66
|
+
"technical_contact": { "email": "john.doe@email.com" },
|
67
|
+
"owner": { "email": "john.doe@email.com" },
|
68
|
+
"notes": "Hardware notes",
|
69
|
+
"barcode_encoding_format": "Code1A",
|
70
|
+
"cpu": "hardware_cpu",
|
71
|
+
"processor_speed": "processor_speed",
|
72
|
+
"memory":1024,
|
73
|
+
"swap": "MB",
|
74
|
+
"operating_system": "Windows 10",
|
75
|
+
"domain": "domain description",
|
76
|
+
"active_directory": "Workgroup of the OS",
|
77
|
+
"address": "Site 1, Building 1, Department 1",
|
78
|
+
"longitude": "0.000",
|
79
|
+
"latitude": "0.000",
|
80
|
+
"product_number": "1",
|
81
|
+
"custom_fields_values": {
|
82
|
+
"custom_fields_value": [
|
83
|
+
{ "name": "Name of custom text field", "value": "content" }
|
84
|
+
]
|
85
|
+
},
|
86
|
+
"bioses": [{
|
87
|
+
"id": 1,
|
88
|
+
"manufacturer": "Dell",
|
89
|
+
"ssn": "1",
|
90
|
+
"model": "model description",
|
91
|
+
"version": "1",
|
92
|
+
"bios_date": "2020-01-01 00:00",
|
93
|
+
"reported_at": "2020-01-01 00:00"
|
94
|
+
}],
|
95
|
+
"tag": "tag",
|
96
|
+
"asset_tag": "1"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
@@ -1,115 +1,136 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
2
|
+
"examples": {
|
3
|
+
"request": {
|
4
|
+
"json": {
|
5
|
+
"incident": {
|
6
|
+
"name": "Incident Name",
|
7
|
+
"site_id": 1,
|
8
|
+
"department_id": 1,
|
9
|
+
"description": "description",
|
10
|
+
"state_id": 1,
|
11
|
+
"assignee": { "email": "john.doe@email.com" },
|
12
|
+
"requester": { "email": "john.doe@email.com" },
|
13
|
+
"priority": "High",
|
14
|
+
"category": { "name": "Facilities" },
|
15
|
+
"subcategory": { "name": "Equipment" },
|
16
|
+
"due_at": "Jan 01,2025",
|
17
|
+
"add_to_tag_list": "tag1, tag2",
|
18
|
+
"remove_from_tag_list": "tag3",
|
19
|
+
"tag_list": "tag1, tag2",
|
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
|
+
"incidents": [{ "number": "100" }],
|
27
|
+
"problems": [{ "number": "100" }],
|
28
|
+
"changes": [{ "number": "100" }],
|
29
|
+
"solutions": [{ "number" :"100" }],
|
30
|
+
"releases": [{ "number": "100" }],
|
31
|
+
"configuration_item_ids":["100"],
|
32
|
+
"cc": ["jane.doe@email.com"]
|
33
|
+
}
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"response": {
|
37
|
+
"json": {
|
38
|
+
"incident": {
|
39
|
+
"id": "10000",
|
40
|
+
"number": "1000",
|
41
|
+
"name": "Incident Name",
|
42
|
+
"description": "description",
|
43
|
+
"state": "New",
|
44
|
+
"site": {
|
45
|
+
"id": "1",
|
46
|
+
"name": "Austin TX, USA",
|
47
|
+
"location": "AUS",
|
48
|
+
"description": "",
|
49
|
+
"time_zone": ""
|
50
|
+
},
|
51
|
+
"department": {
|
52
|
+
"id": "1",
|
53
|
+
"name": "Support",
|
54
|
+
"description": "",
|
55
|
+
"default_assignee_id": "1"
|
56
|
+
},
|
57
|
+
"category": {
|
58
|
+
"id": "10000",
|
59
|
+
"name": "Facilities",
|
60
|
+
"default_tags": "tagA, tagB",
|
61
|
+
"parent_id": "null",
|
62
|
+
"default_assignee_id": "1"
|
63
|
+
},
|
64
|
+
"subcategory": {
|
65
|
+
"id": "1000",
|
66
|
+
"name": "Equipment",
|
67
|
+
"default_tags": "",
|
68
|
+
"parent_id": "10000",
|
69
|
+
"default_assignee_id": "1"
|
70
|
+
},
|
71
|
+
"priority": "High",
|
72
|
+
"assignee": {
|
73
|
+
"group_id": "1",
|
74
|
+
"is_user": "true",
|
75
|
+
"id": "1",
|
76
|
+
"name": "John Doe",
|
77
|
+
"email": "john.doe@email.com",
|
78
|
+
"avatar": {
|
79
|
+
"type": "initials",
|
80
|
+
"color": "#fd4165",
|
81
|
+
"initials": "JD"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"requester": {
|
85
|
+
"id": "1",
|
86
|
+
"account_id": "1",
|
87
|
+
"user_id": "1",
|
88
|
+
"email": "john.doe@email.com",
|
89
|
+
"name": "John Doe",
|
90
|
+
"disabled": false,
|
91
|
+
"avatar": {
|
92
|
+
"type": "initials",
|
93
|
+
"color": "#fd4165",
|
94
|
+
"initials": "JD"
|
30
95
|
}
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"name": "Facilities",
|
56
|
-
"default_tags": "tagA, tagB",
|
57
|
-
"parent_id": "null",
|
58
|
-
"default_assignee_id": "1"
|
59
|
-
},
|
60
|
-
"subcategory": {
|
61
|
-
"id": "1000",
|
62
|
-
"name": "Equipment",
|
63
|
-
"default_tags": "",
|
64
|
-
"parent_id": "10000",
|
65
|
-
"default_assignee_id": "1"
|
66
|
-
},
|
67
|
-
"priority": "High",
|
68
|
-
"assignee": {
|
69
|
-
"group_id": "1",
|
70
|
-
"is_user": "true",
|
71
|
-
"id": "1",
|
72
|
-
"name": "Jogn Doe",
|
73
|
-
"email": "john.doe@email.com",
|
74
|
-
"avatar": {
|
75
|
-
"type": "initials",
|
76
|
-
"color": "#fd4165",
|
77
|
-
"initials": "JD"
|
78
|
-
}
|
79
|
-
},
|
80
|
-
"requester": {
|
81
|
-
"id": "1",
|
82
|
-
"account_id": "1",
|
83
|
-
"user_id": "1",
|
84
|
-
"email": "john.doe@email.com",
|
85
|
-
"name": "John Doe",
|
86
|
-
"disabled": false,
|
87
|
-
"avatar": {
|
88
|
-
"type": "initials",
|
89
|
-
"color": "#fd4165",
|
90
|
-
"initials": "JD"
|
91
|
-
}
|
92
|
-
},
|
93
|
-
"custom_fields_values": [
|
94
|
-
{
|
95
|
-
"id": "1000",
|
96
|
-
"custom_field_id": "1",
|
97
|
-
"name": "field name",
|
98
|
-
"value": "content",
|
99
|
-
"options": "",
|
100
|
-
"type_name": "Text"
|
101
|
-
}
|
102
|
-
],
|
103
|
-
"due_at": "2025-01-01T00:00:00.000+01:00",
|
104
|
-
"origin": "api",
|
105
|
-
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
|
106
|
-
"problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
|
107
|
-
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
|
108
|
-
"solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
|
109
|
-
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
110
|
-
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
|
111
|
-
}
|
96
|
+
},
|
97
|
+
"custom_fields_values": [
|
98
|
+
{
|
99
|
+
"id": "10",
|
100
|
+
"custom_field_id": "1",
|
101
|
+
"name": "Text custom field",
|
102
|
+
"value": "content",
|
103
|
+
"options": "",
|
104
|
+
"type_name": "Text"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"id": "100",
|
108
|
+
"custom_field_id": "1",
|
109
|
+
"name": "User custom field",
|
110
|
+
"value": "1",
|
111
|
+
"options": "",
|
112
|
+
"type_name": "User",
|
113
|
+
"user": {
|
114
|
+
"group_id": 1,
|
115
|
+
"is_user": true,
|
116
|
+
"id": 1,
|
117
|
+
"name": "John Doe",
|
118
|
+
"email": "john.doe@email.com"
|
119
|
+
}
|
112
120
|
}
|
121
|
+
],
|
122
|
+
"due_at": "2025-01-01T00:00:00.000+01:00",
|
123
|
+
"origin": "api",
|
124
|
+
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
|
125
|
+
"problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
|
126
|
+
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
|
127
|
+
"solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
|
128
|
+
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
129
|
+
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}],
|
130
|
+
"is_service_request": false,
|
131
|
+
"cc": ["jane.doe@email.com"]
|
113
132
|
}
|
133
|
+
}
|
114
134
|
}
|
135
|
+
}
|
115
136
|
}
|