@sentinelconnector/cli 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/routes.d.ts +2 -1
- package/dist/commands/routes.js +44 -14
- package/dist/commands/routes.js.map +1 -1
- package/dist/mcp/server.d.ts +7 -1
- package/dist/mcp/server.js +35 -9
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/untrusted.d.ts +2 -2
- package/dist/mcp/untrusted.js +13 -4
- package/dist/mcp/untrusted.js.map +1 -1
- package/dist/routes/call.d.ts +26 -1
- package/dist/routes/call.js +54 -2
- package/dist/routes/call.js.map +1 -1
- package/dist/routes/catalogue.d.ts +1 -1
- package/dist/routes/routes.json +765 -63
- package/package.json +1 -1
- package/skills/sentinel/SKILL.md +29 -0
package/dist/routes/routes.json
CHANGED
|
@@ -1262,6 +1262,25 @@
|
|
|
1262
1262
|
],
|
|
1263
1263
|
"body": null
|
|
1264
1264
|
},
|
|
1265
|
+
{
|
|
1266
|
+
"group": "dashboard",
|
|
1267
|
+
"name": "get-jobs-waiting",
|
|
1268
|
+
"method": "GET",
|
|
1269
|
+
"path": "/api/v1/dashboard/waiting/jobs",
|
|
1270
|
+
"policy": "read",
|
|
1271
|
+
"summary": "Count the jobs waiting on you in an organisation",
|
|
1272
|
+
"description": "The number behind the sidebar Jobs badge (#2131), cheap enough to poll. Members of the organisation only; anyone else gets 404. Zero while the product is not available to the organisation.",
|
|
1273
|
+
"pathParams": [],
|
|
1274
|
+
"query": [
|
|
1275
|
+
{
|
|
1276
|
+
"name": "organization_id",
|
|
1277
|
+
"type": "integer",
|
|
1278
|
+
"required": true,
|
|
1279
|
+
"description": ""
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
"body": null
|
|
1283
|
+
},
|
|
1265
1284
|
{
|
|
1266
1285
|
"group": "dashboard",
|
|
1267
1286
|
"name": "get-metric-trends",
|
|
@@ -1340,6 +1359,81 @@
|
|
|
1340
1359
|
"query": [],
|
|
1341
1360
|
"body": null
|
|
1342
1361
|
},
|
|
1362
|
+
{
|
|
1363
|
+
"group": "dashboard",
|
|
1364
|
+
"name": "get-waiting-on-you",
|
|
1365
|
+
"method": "GET",
|
|
1366
|
+
"path": "/api/v1/dashboard/waiting",
|
|
1367
|
+
"policy": "read",
|
|
1368
|
+
"summary": "List what waits on you in an organisation",
|
|
1369
|
+
"description": "Home's \"Waiting on you\" list (#2131), computed on every call. Members of the organisation only; anyone else gets 404. Rows follow the products available to the organisation, and snoozed kinds are left out for this member.",
|
|
1370
|
+
"pathParams": [],
|
|
1371
|
+
"query": [
|
|
1372
|
+
{
|
|
1373
|
+
"name": "organization_id",
|
|
1374
|
+
"type": "integer",
|
|
1375
|
+
"required": true,
|
|
1376
|
+
"description": ""
|
|
1377
|
+
}
|
|
1378
|
+
],
|
|
1379
|
+
"body": null
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"group": "dashboard",
|
|
1383
|
+
"name": "snooze-waiting-kind",
|
|
1384
|
+
"method": "PUT",
|
|
1385
|
+
"path": "/api/v1/dashboard/waiting/snoozes/{kind}",
|
|
1386
|
+
"policy": "write",
|
|
1387
|
+
"summary": "Snooze one kind of waiting item for 7 or 30 days",
|
|
1388
|
+
"description": "Hide a kind from your own list in this organisation. Others are not affected.",
|
|
1389
|
+
"pathParams": [
|
|
1390
|
+
"kind"
|
|
1391
|
+
],
|
|
1392
|
+
"query": [
|
|
1393
|
+
{
|
|
1394
|
+
"name": "organization_id",
|
|
1395
|
+
"type": "integer",
|
|
1396
|
+
"required": true,
|
|
1397
|
+
"description": ""
|
|
1398
|
+
}
|
|
1399
|
+
],
|
|
1400
|
+
"body": {
|
|
1401
|
+
"required": true,
|
|
1402
|
+
"fields": [
|
|
1403
|
+
{
|
|
1404
|
+
"name": "days",
|
|
1405
|
+
"type": "integer",
|
|
1406
|
+
"required": true,
|
|
1407
|
+
"values": [
|
|
1408
|
+
7,
|
|
1409
|
+
30
|
|
1410
|
+
],
|
|
1411
|
+
"description": "Hide this kind for 7 or 30 days."
|
|
1412
|
+
}
|
|
1413
|
+
]
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"group": "dashboard",
|
|
1418
|
+
"name": "unsnooze-waiting-kind",
|
|
1419
|
+
"method": "DELETE",
|
|
1420
|
+
"path": "/api/v1/dashboard/waiting/snoozes/{kind}",
|
|
1421
|
+
"policy": "write",
|
|
1422
|
+
"summary": "Show a snoozed kind of waiting item again",
|
|
1423
|
+
"description": "",
|
|
1424
|
+
"pathParams": [
|
|
1425
|
+
"kind"
|
|
1426
|
+
],
|
|
1427
|
+
"query": [
|
|
1428
|
+
{
|
|
1429
|
+
"name": "organization_id",
|
|
1430
|
+
"type": "integer",
|
|
1431
|
+
"required": true,
|
|
1432
|
+
"description": ""
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
"body": null
|
|
1436
|
+
},
|
|
1343
1437
|
{
|
|
1344
1438
|
"group": "drupal-core",
|
|
1345
1439
|
"name": "get-versions-by-drupal-core",
|
|
@@ -2106,6 +2200,12 @@
|
|
|
2106
2200
|
"type": "boolean",
|
|
2107
2201
|
"required": false,
|
|
2108
2202
|
"description": "True while the reader is still typing: a search with no results is then not recorded as a content gap."
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
"name": "words_only",
|
|
2206
|
+
"type": "boolean",
|
|
2207
|
+
"required": false,
|
|
2208
|
+
"description": "Match words only, never sending the text to the semantic search provider. The dashboard's combined search sets it, because people type site names and addresses there."
|
|
2109
2209
|
}
|
|
2110
2210
|
],
|
|
2111
2211
|
"body": null
|
|
@@ -3320,6 +3420,57 @@
|
|
|
3320
3420
|
]
|
|
3321
3421
|
}
|
|
3322
3422
|
},
|
|
3423
|
+
{
|
|
3424
|
+
"group": "organizations",
|
|
3425
|
+
"name": "apply-ticket-link",
|
|
3426
|
+
"method": "POST",
|
|
3427
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/links",
|
|
3428
|
+
"policy": "write",
|
|
3429
|
+
"summary": "Link a ticket to vulnerabilities",
|
|
3430
|
+
"description": "Link one ticket to up to 200 vulnerabilities in one change. All or nothing: a bad target refuses the whole change (422 ``targets_invalid``), and a stale revision answers 409 ``stale``. Send an ``Idempotency-Key``: a retry with the same key and body gets the first answer. Linking never marks anything fixed. Site managers and Organisation admins.",
|
|
3431
|
+
"pathParams": [
|
|
3432
|
+
"organization_id"
|
|
3433
|
+
],
|
|
3434
|
+
"query": [],
|
|
3435
|
+
"body": {
|
|
3436
|
+
"required": true,
|
|
3437
|
+
"fields": [
|
|
3438
|
+
{
|
|
3439
|
+
"name": "targets",
|
|
3440
|
+
"type": "object[]",
|
|
3441
|
+
"required": true,
|
|
3442
|
+
"description": ""
|
|
3443
|
+
},
|
|
3444
|
+
{
|
|
3445
|
+
"name": "ticket",
|
|
3446
|
+
"type": "object",
|
|
3447
|
+
"required": true,
|
|
3448
|
+
"description": "A system and a ticket number, or a pasted HTTPS link."
|
|
3449
|
+
},
|
|
3450
|
+
{
|
|
3451
|
+
"name": "replace",
|
|
3452
|
+
"type": "boolean",
|
|
3453
|
+
"required": false,
|
|
3454
|
+
"description": "Replace a different ticket already there. False keeps it."
|
|
3455
|
+
}
|
|
3456
|
+
]
|
|
3457
|
+
}
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"group": "organizations",
|
|
3461
|
+
"name": "archive-ticket-system",
|
|
3462
|
+
"method": "POST",
|
|
3463
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/systems/{system_id}/archive",
|
|
3464
|
+
"policy": "write",
|
|
3465
|
+
"summary": "Archive a ticket system",
|
|
3466
|
+
"description": "Stop new links to a ticket system. Existing links stay readable. Organisation admins only.",
|
|
3467
|
+
"pathParams": [
|
|
3468
|
+
"organization_id",
|
|
3469
|
+
"system_id"
|
|
3470
|
+
],
|
|
3471
|
+
"query": [],
|
|
3472
|
+
"body": null
|
|
3473
|
+
},
|
|
3323
3474
|
{
|
|
3324
3475
|
"group": "organizations",
|
|
3325
3476
|
"name": "cancel-invitation",
|
|
@@ -3581,6 +3732,59 @@
|
|
|
3581
3732
|
"query": [],
|
|
3582
3733
|
"body": null
|
|
3583
3734
|
},
|
|
3735
|
+
{
|
|
3736
|
+
"group": "organizations",
|
|
3737
|
+
"name": "create-ticket-system",
|
|
3738
|
+
"method": "POST",
|
|
3739
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/systems",
|
|
3740
|
+
"policy": "write",
|
|
3741
|
+
"summary": "Add a ticket system",
|
|
3742
|
+
"description": "Add a ticket system. The URL template is HTTPS with one ``{ticket}`` in the path or a query value. Organisation admins only.",
|
|
3743
|
+
"pathParams": [
|
|
3744
|
+
"organization_id"
|
|
3745
|
+
],
|
|
3746
|
+
"query": [],
|
|
3747
|
+
"body": {
|
|
3748
|
+
"required": true,
|
|
3749
|
+
"fields": [
|
|
3750
|
+
{
|
|
3751
|
+
"name": "name",
|
|
3752
|
+
"type": "string",
|
|
3753
|
+
"required": true,
|
|
3754
|
+
"description": ""
|
|
3755
|
+
},
|
|
3756
|
+
{
|
|
3757
|
+
"name": "provider",
|
|
3758
|
+
"type": "string",
|
|
3759
|
+
"required": true,
|
|
3760
|
+
"values": [
|
|
3761
|
+
"freshdesk",
|
|
3762
|
+
"jira",
|
|
3763
|
+
"other"
|
|
3764
|
+
],
|
|
3765
|
+
"description": ""
|
|
3766
|
+
},
|
|
3767
|
+
{
|
|
3768
|
+
"name": "url_template",
|
|
3769
|
+
"type": "string",
|
|
3770
|
+
"required": true,
|
|
3771
|
+
"description": ""
|
|
3772
|
+
},
|
|
3773
|
+
{
|
|
3774
|
+
"name": "example_key",
|
|
3775
|
+
"type": "string",
|
|
3776
|
+
"required": false,
|
|
3777
|
+
"description": ""
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
"name": "is_default",
|
|
3781
|
+
"type": "boolean",
|
|
3782
|
+
"required": false,
|
|
3783
|
+
"description": ""
|
|
3784
|
+
}
|
|
3785
|
+
]
|
|
3786
|
+
}
|
|
3787
|
+
},
|
|
3584
3788
|
{
|
|
3585
3789
|
"group": "organizations",
|
|
3586
3790
|
"name": "delete-organization",
|
|
@@ -3729,6 +3933,21 @@
|
|
|
3729
3933
|
],
|
|
3730
3934
|
"body": null
|
|
3731
3935
|
},
|
|
3936
|
+
{
|
|
3937
|
+
"group": "organizations",
|
|
3938
|
+
"name": "get-ticket-reference",
|
|
3939
|
+
"method": "GET",
|
|
3940
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/tickets/{reference_id}",
|
|
3941
|
+
"policy": "read",
|
|
3942
|
+
"summary": "Vulnerabilities a ticket covers",
|
|
3943
|
+
"description": "One ticket and the vulnerabilities it currently covers.",
|
|
3944
|
+
"pathParams": [
|
|
3945
|
+
"organization_id",
|
|
3946
|
+
"reference_id"
|
|
3947
|
+
],
|
|
3948
|
+
"query": [],
|
|
3949
|
+
"body": null
|
|
3950
|
+
},
|
|
3732
3951
|
{
|
|
3733
3952
|
"group": "organizations",
|
|
3734
3953
|
"name": "invite-user-to-organization",
|
|
@@ -3736,7 +3955,7 @@
|
|
|
3736
3955
|
"path": "/api/v1/organizations/{organization_id}/users/invite",
|
|
3737
3956
|
"policy": "mfa",
|
|
3738
3957
|
"summary": "Invite User To Organization",
|
|
3739
|
-
"description": "Invite a user to join the organization with a tenant-scoped role.",
|
|
3958
|
+
"description": "Invite a user to join the organization with a tenant-scoped role. Inviting an administrator needs a recent second factor (#2104).",
|
|
3740
3959
|
"pathParams": [
|
|
3741
3960
|
"organization_id"
|
|
3742
3961
|
],
|
|
@@ -3812,8 +4031,8 @@
|
|
|
3812
4031
|
"method": "GET",
|
|
3813
4032
|
"path": "/api/v1/organizations/{organization_id}/users",
|
|
3814
4033
|
"policy": "read",
|
|
3815
|
-
"summary": "List
|
|
3816
|
-
"description": "
|
|
4034
|
+
"summary": "List the organisation's members",
|
|
4035
|
+
"description": "Members with their role here, for any member of the organisation. The one member list (#2104): ``GET /users/organization/{id}/users`` answers the same. Only platform administrators see deleted accounts.",
|
|
3817
4036
|
"pathParams": [
|
|
3818
4037
|
"organization_id"
|
|
3819
4038
|
],
|
|
@@ -3876,6 +4095,150 @@
|
|
|
3876
4095
|
"query": [],
|
|
3877
4096
|
"body": null
|
|
3878
4097
|
},
|
|
4098
|
+
{
|
|
4099
|
+
"group": "organizations",
|
|
4100
|
+
"name": "list-ticket-references",
|
|
4101
|
+
"method": "GET",
|
|
4102
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/tickets",
|
|
4103
|
+
"policy": "read",
|
|
4104
|
+
"summary": "List tickets linked to vulnerabilities",
|
|
4105
|
+
"description": "Tickets with at least one current link, newest first, with how many vulnerabilities and sites each covers.",
|
|
4106
|
+
"pathParams": [
|
|
4107
|
+
"organization_id"
|
|
4108
|
+
],
|
|
4109
|
+
"query": [
|
|
4110
|
+
{
|
|
4111
|
+
"name": "system",
|
|
4112
|
+
"type": "string",
|
|
4113
|
+
"required": false,
|
|
4114
|
+
"description": ""
|
|
4115
|
+
},
|
|
4116
|
+
{
|
|
4117
|
+
"name": "key",
|
|
4118
|
+
"type": "string",
|
|
4119
|
+
"required": false,
|
|
4120
|
+
"description": ""
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
"name": "page",
|
|
4124
|
+
"type": "integer",
|
|
4125
|
+
"required": false,
|
|
4126
|
+
"description": ""
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
"name": "per_page",
|
|
4130
|
+
"type": "integer",
|
|
4131
|
+
"required": false,
|
|
4132
|
+
"description": ""
|
|
4133
|
+
}
|
|
4134
|
+
],
|
|
4135
|
+
"body": null
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
"group": "organizations",
|
|
4139
|
+
"name": "list-ticket-systems",
|
|
4140
|
+
"method": "GET",
|
|
4141
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/systems",
|
|
4142
|
+
"policy": "read",
|
|
4143
|
+
"summary": "List your ticket systems",
|
|
4144
|
+
"description": "The organisation's ticket systems, with presets for a new one. Every member reads them; only Organisation admins change them.",
|
|
4145
|
+
"pathParams": [
|
|
4146
|
+
"organization_id"
|
|
4147
|
+
],
|
|
4148
|
+
"query": [
|
|
4149
|
+
{
|
|
4150
|
+
"name": "include_archived",
|
|
4151
|
+
"type": "boolean",
|
|
4152
|
+
"required": false,
|
|
4153
|
+
"description": ""
|
|
4154
|
+
}
|
|
4155
|
+
],
|
|
4156
|
+
"body": null
|
|
4157
|
+
},
|
|
4158
|
+
{
|
|
4159
|
+
"group": "organizations",
|
|
4160
|
+
"name": "list-ticket-work",
|
|
4161
|
+
"method": "GET",
|
|
4162
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/findings",
|
|
4163
|
+
"policy": "read",
|
|
4164
|
+
"summary": "List vulnerabilities with their tickets",
|
|
4165
|
+
"description": "Site-and-vulnerability pairs across the organisation, grouped by site, open first, with the ticket on each and its revision.",
|
|
4166
|
+
"pathParams": [
|
|
4167
|
+
"organization_id"
|
|
4168
|
+
],
|
|
4169
|
+
"query": [
|
|
4170
|
+
{
|
|
4171
|
+
"name": "site",
|
|
4172
|
+
"type": "string[]",
|
|
4173
|
+
"required": false,
|
|
4174
|
+
"description": "Repeat for several."
|
|
4175
|
+
},
|
|
4176
|
+
{
|
|
4177
|
+
"name": "source",
|
|
4178
|
+
"type": "string",
|
|
4179
|
+
"required": false,
|
|
4180
|
+
"values": [
|
|
4181
|
+
"advisory",
|
|
4182
|
+
"stack"
|
|
4183
|
+
],
|
|
4184
|
+
"description": ""
|
|
4185
|
+
},
|
|
4186
|
+
{
|
|
4187
|
+
"name": "state",
|
|
4188
|
+
"type": "string",
|
|
4189
|
+
"required": false,
|
|
4190
|
+
"values": [
|
|
4191
|
+
"open",
|
|
4192
|
+
"resolved",
|
|
4193
|
+
"all"
|
|
4194
|
+
],
|
|
4195
|
+
"description": ""
|
|
4196
|
+
},
|
|
4197
|
+
{
|
|
4198
|
+
"name": "severity",
|
|
4199
|
+
"type": "string",
|
|
4200
|
+
"required": false,
|
|
4201
|
+
"values": [
|
|
4202
|
+
"critical",
|
|
4203
|
+
"high",
|
|
4204
|
+
"medium",
|
|
4205
|
+
"low"
|
|
4206
|
+
],
|
|
4207
|
+
"description": ""
|
|
4208
|
+
},
|
|
4209
|
+
{
|
|
4210
|
+
"name": "linked",
|
|
4211
|
+
"type": "boolean",
|
|
4212
|
+
"required": false,
|
|
4213
|
+
"description": ""
|
|
4214
|
+
},
|
|
4215
|
+
{
|
|
4216
|
+
"name": "system",
|
|
4217
|
+
"type": "string",
|
|
4218
|
+
"required": false,
|
|
4219
|
+
"description": ""
|
|
4220
|
+
},
|
|
4221
|
+
{
|
|
4222
|
+
"name": "key",
|
|
4223
|
+
"type": "string",
|
|
4224
|
+
"required": false,
|
|
4225
|
+
"description": ""
|
|
4226
|
+
},
|
|
4227
|
+
{
|
|
4228
|
+
"name": "page",
|
|
4229
|
+
"type": "integer",
|
|
4230
|
+
"required": false,
|
|
4231
|
+
"description": ""
|
|
4232
|
+
},
|
|
4233
|
+
{
|
|
4234
|
+
"name": "per_page",
|
|
4235
|
+
"type": "integer",
|
|
4236
|
+
"required": false,
|
|
4237
|
+
"description": ""
|
|
4238
|
+
}
|
|
4239
|
+
],
|
|
4240
|
+
"body": null
|
|
4241
|
+
},
|
|
3879
4242
|
{
|
|
3880
4243
|
"group": "organizations",
|
|
3881
4244
|
"name": "payg-activation-quote",
|
|
@@ -4268,6 +4631,66 @@
|
|
|
4268
4631
|
]
|
|
4269
4632
|
}
|
|
4270
4633
|
},
|
|
4634
|
+
{
|
|
4635
|
+
"group": "organizations",
|
|
4636
|
+
"name": "preview-ticket-link",
|
|
4637
|
+
"method": "POST",
|
|
4638
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/links/preview",
|
|
4639
|
+
"policy": "read",
|
|
4640
|
+
"summary": "Preview linking a ticket",
|
|
4641
|
+
"description": "What linking this ticket would do on each vulnerability: link, replace, keep the ticket already there, or nothing. Changes nothing.",
|
|
4642
|
+
"pathParams": [
|
|
4643
|
+
"organization_id"
|
|
4644
|
+
],
|
|
4645
|
+
"query": [],
|
|
4646
|
+
"body": {
|
|
4647
|
+
"required": true,
|
|
4648
|
+
"fields": [
|
|
4649
|
+
{
|
|
4650
|
+
"name": "targets",
|
|
4651
|
+
"type": "object[]",
|
|
4652
|
+
"required": true,
|
|
4653
|
+
"description": ""
|
|
4654
|
+
},
|
|
4655
|
+
{
|
|
4656
|
+
"name": "ticket",
|
|
4657
|
+
"type": "object",
|
|
4658
|
+
"required": true,
|
|
4659
|
+
"description": "A system and a ticket number, or a pasted HTTPS link."
|
|
4660
|
+
},
|
|
4661
|
+
{
|
|
4662
|
+
"name": "replace",
|
|
4663
|
+
"type": "boolean",
|
|
4664
|
+
"required": false,
|
|
4665
|
+
"description": "Replace a different ticket already there. False keeps it."
|
|
4666
|
+
}
|
|
4667
|
+
]
|
|
4668
|
+
}
|
|
4669
|
+
},
|
|
4670
|
+
{
|
|
4671
|
+
"group": "organizations",
|
|
4672
|
+
"name": "preview-ticket-removal",
|
|
4673
|
+
"method": "POST",
|
|
4674
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/links/remove/preview",
|
|
4675
|
+
"policy": "read",
|
|
4676
|
+
"summary": "Preview removing tickets",
|
|
4677
|
+
"description": "Which of these vulnerabilities have a ticket to remove. Changes nothing.",
|
|
4678
|
+
"pathParams": [
|
|
4679
|
+
"organization_id"
|
|
4680
|
+
],
|
|
4681
|
+
"query": [],
|
|
4682
|
+
"body": {
|
|
4683
|
+
"required": true,
|
|
4684
|
+
"fields": [
|
|
4685
|
+
{
|
|
4686
|
+
"name": "targets",
|
|
4687
|
+
"type": "object[]",
|
|
4688
|
+
"required": true,
|
|
4689
|
+
"description": ""
|
|
4690
|
+
}
|
|
4691
|
+
]
|
|
4692
|
+
}
|
|
4693
|
+
},
|
|
4271
4694
|
{
|
|
4272
4695
|
"group": "organizations",
|
|
4273
4696
|
"name": "read-capabilities",
|
|
@@ -4297,6 +4720,20 @@
|
|
|
4297
4720
|
"query": [],
|
|
4298
4721
|
"body": null
|
|
4299
4722
|
},
|
|
4723
|
+
{
|
|
4724
|
+
"group": "organizations",
|
|
4725
|
+
"name": "read-my-organization-permissions",
|
|
4726
|
+
"method": "GET",
|
|
4727
|
+
"path": "/api/v1/organizations/{organization_id}/permissions",
|
|
4728
|
+
"policy": "read",
|
|
4729
|
+
"summary": "Your permissions in an organisation",
|
|
4730
|
+
"description": "What the signed-in account may do in this organisation. The dashboard shows or hides actions from this list; the server still checks every request. Platform administrators get 404 here unless they are members: they act through the admin console.",
|
|
4731
|
+
"pathParams": [
|
|
4732
|
+
"organization_id"
|
|
4733
|
+
],
|
|
4734
|
+
"query": [],
|
|
4735
|
+
"body": null
|
|
4736
|
+
},
|
|
4300
4737
|
{
|
|
4301
4738
|
"group": "organizations",
|
|
4302
4739
|
"name": "read-organization",
|
|
@@ -4432,6 +4869,35 @@
|
|
|
4432
4869
|
"required": false,
|
|
4433
4870
|
"description": ""
|
|
4434
4871
|
},
|
|
4872
|
+
{
|
|
4873
|
+
"name": "permission",
|
|
4874
|
+
"type": "string",
|
|
4875
|
+
"required": false,
|
|
4876
|
+
"values": [
|
|
4877
|
+
"organization:read",
|
|
4878
|
+
"organization:write",
|
|
4879
|
+
"organization:members",
|
|
4880
|
+
"organization:audit",
|
|
4881
|
+
"organization:billing",
|
|
4882
|
+
"site:read",
|
|
4883
|
+
"site:create",
|
|
4884
|
+
"site:write",
|
|
4885
|
+
"site:delete",
|
|
4886
|
+
"site:keys",
|
|
4887
|
+
"site:assess",
|
|
4888
|
+
"site:acknowledge",
|
|
4889
|
+
"patching:read",
|
|
4890
|
+
"patching:run",
|
|
4891
|
+
"patching:deploy",
|
|
4892
|
+
"patching:configure",
|
|
4893
|
+
"report:read",
|
|
4894
|
+
"report:write",
|
|
4895
|
+
"report:export",
|
|
4896
|
+
"report:issue",
|
|
4897
|
+
"report:brand"
|
|
4898
|
+
],
|
|
4899
|
+
"description": "Only organisations where the caller holds this permission, for example `site:create` for the add-site form."
|
|
4900
|
+
},
|
|
4435
4901
|
{
|
|
4436
4902
|
"name": "include_deleted",
|
|
4437
4903
|
"type": "boolean",
|
|
@@ -4527,6 +4993,30 @@
|
|
|
4527
4993
|
"query": [],
|
|
4528
4994
|
"body": null
|
|
4529
4995
|
},
|
|
4996
|
+
{
|
|
4997
|
+
"group": "organizations",
|
|
4998
|
+
"name": "remove-ticket-links",
|
|
4999
|
+
"method": "POST",
|
|
5000
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/links/remove",
|
|
5001
|
+
"policy": "write",
|
|
5002
|
+
"summary": "Remove tickets from vulnerabilities",
|
|
5003
|
+
"description": "Remove the ticket from up to 200 vulnerabilities in one change. The vulnerabilities themselves do not change. Same rules as linking.",
|
|
5004
|
+
"pathParams": [
|
|
5005
|
+
"organization_id"
|
|
5006
|
+
],
|
|
5007
|
+
"query": [],
|
|
5008
|
+
"body": {
|
|
5009
|
+
"required": true,
|
|
5010
|
+
"fields": [
|
|
5011
|
+
{
|
|
5012
|
+
"name": "targets",
|
|
5013
|
+
"type": "object[]",
|
|
5014
|
+
"required": true,
|
|
5015
|
+
"description": ""
|
|
5016
|
+
}
|
|
5017
|
+
]
|
|
5018
|
+
}
|
|
5019
|
+
},
|
|
4530
5020
|
{
|
|
4531
5021
|
"group": "organizations",
|
|
4532
5022
|
"name": "remove-user-from-organization",
|
|
@@ -4547,7 +5037,7 @@
|
|
|
4547
5037
|
"name": "resend-invitation",
|
|
4548
5038
|
"method": "POST",
|
|
4549
5039
|
"path": "/api/v1/organizations/{organization_id}/users/invitations/{invitation_id}/resend",
|
|
4550
|
-
"policy": "
|
|
5040
|
+
"policy": "mfa",
|
|
4551
5041
|
"summary": "Resend Invitation",
|
|
4552
5042
|
"description": "",
|
|
4553
5043
|
"pathParams": [
|
|
@@ -4616,6 +5106,21 @@
|
|
|
4616
5106
|
]
|
|
4617
5107
|
}
|
|
4618
5108
|
},
|
|
5109
|
+
{
|
|
5110
|
+
"group": "organizations",
|
|
5111
|
+
"name": "restore-ticket-system",
|
|
5112
|
+
"method": "POST",
|
|
5113
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/systems/{system_id}/restore",
|
|
5114
|
+
"policy": "write",
|
|
5115
|
+
"summary": "Restore an archived ticket system",
|
|
5116
|
+
"description": "Let an archived ticket system take new links again. It does not become the default. A live system with the same name answers 409 ``name_taken``. Organisation admins only.",
|
|
5117
|
+
"pathParams": [
|
|
5118
|
+
"organization_id",
|
|
5119
|
+
"system_id"
|
|
5120
|
+
],
|
|
5121
|
+
"query": [],
|
|
5122
|
+
"body": null
|
|
5123
|
+
},
|
|
4619
5124
|
{
|
|
4620
5125
|
"group": "organizations",
|
|
4621
5126
|
"name": "resume-subscription",
|
|
@@ -4832,6 +5337,67 @@
|
|
|
4832
5337
|
]
|
|
4833
5338
|
}
|
|
4834
5339
|
},
|
|
5340
|
+
{
|
|
5341
|
+
"group": "organizations",
|
|
5342
|
+
"name": "ticket-history",
|
|
5343
|
+
"method": "GET",
|
|
5344
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/history",
|
|
5345
|
+
"policy": "read",
|
|
5346
|
+
"summary": "Ticket history of a vulnerability",
|
|
5347
|
+
"description": "Every link, replacement and removal on one vulnerability, oldest first.",
|
|
5348
|
+
"pathParams": [
|
|
5349
|
+
"organization_id"
|
|
5350
|
+
],
|
|
5351
|
+
"query": [
|
|
5352
|
+
{
|
|
5353
|
+
"name": "kind",
|
|
5354
|
+
"type": "string",
|
|
5355
|
+
"required": true,
|
|
5356
|
+
"values": [
|
|
5357
|
+
"advisory",
|
|
5358
|
+
"stack"
|
|
5359
|
+
],
|
|
5360
|
+
"description": ""
|
|
5361
|
+
},
|
|
5362
|
+
{
|
|
5363
|
+
"name": "finding_id",
|
|
5364
|
+
"type": "integer",
|
|
5365
|
+
"required": true,
|
|
5366
|
+
"description": ""
|
|
5367
|
+
},
|
|
5368
|
+
{
|
|
5369
|
+
"name": "exposure_index",
|
|
5370
|
+
"type": "integer",
|
|
5371
|
+
"required": false,
|
|
5372
|
+
"description": ""
|
|
5373
|
+
}
|
|
5374
|
+
],
|
|
5375
|
+
"body": null
|
|
5376
|
+
},
|
|
5377
|
+
{
|
|
5378
|
+
"group": "organizations",
|
|
5379
|
+
"name": "transfer-organization-ownership",
|
|
5380
|
+
"method": "POST",
|
|
5381
|
+
"path": "/api/v1/organizations/{organization_id}/owner",
|
|
5382
|
+
"policy": "mfa",
|
|
5383
|
+
"summary": "Transfer ownership of the organisation",
|
|
5384
|
+
"description": "Make another administrator the owner. Owner only, with a recent second factor. Billing authority, Black coverage and the schedule zone follow the owner (#2103).",
|
|
5385
|
+
"pathParams": [
|
|
5386
|
+
"organization_id"
|
|
5387
|
+
],
|
|
5388
|
+
"query": [],
|
|
5389
|
+
"body": {
|
|
5390
|
+
"required": true,
|
|
5391
|
+
"fields": [
|
|
5392
|
+
{
|
|
5393
|
+
"name": "user_id",
|
|
5394
|
+
"type": "integer",
|
|
5395
|
+
"required": true,
|
|
5396
|
+
"description": "The administrator who becomes the owner"
|
|
5397
|
+
}
|
|
5398
|
+
]
|
|
5399
|
+
}
|
|
5400
|
+
},
|
|
4835
5401
|
{
|
|
4836
5402
|
"group": "organizations",
|
|
4837
5403
|
"name": "update-organization",
|
|
@@ -4915,7 +5481,7 @@
|
|
|
4915
5481
|
"fields": [
|
|
4916
5482
|
{
|
|
4917
5483
|
"name": "password_rotation_days",
|
|
4918
|
-
"type": "
|
|
5484
|
+
"type": "integer",
|
|
4919
5485
|
"required": true,
|
|
4920
5486
|
"values": [
|
|
4921
5487
|
90,
|
|
@@ -5082,6 +5648,60 @@
|
|
|
5082
5648
|
]
|
|
5083
5649
|
}
|
|
5084
5650
|
},
|
|
5651
|
+
{
|
|
5652
|
+
"group": "organizations",
|
|
5653
|
+
"name": "update-ticket-system",
|
|
5654
|
+
"method": "PATCH",
|
|
5655
|
+
"path": "/api/v1/organizations/{organization_id}/external-tickets/systems/{system_id}",
|
|
5656
|
+
"policy": "write",
|
|
5657
|
+
"summary": "Edit a ticket system",
|
|
5658
|
+
"description": "Edit a ticket system. A new template applies to new links only; saved links keep the address they were saved with. Organisation admins only.",
|
|
5659
|
+
"pathParams": [
|
|
5660
|
+
"organization_id",
|
|
5661
|
+
"system_id"
|
|
5662
|
+
],
|
|
5663
|
+
"query": [],
|
|
5664
|
+
"body": {
|
|
5665
|
+
"required": true,
|
|
5666
|
+
"fields": [
|
|
5667
|
+
{
|
|
5668
|
+
"name": "name",
|
|
5669
|
+
"type": "string",
|
|
5670
|
+
"required": false,
|
|
5671
|
+
"description": ""
|
|
5672
|
+
},
|
|
5673
|
+
{
|
|
5674
|
+
"name": "provider",
|
|
5675
|
+
"type": "string",
|
|
5676
|
+
"required": false,
|
|
5677
|
+
"values": [
|
|
5678
|
+
"freshdesk",
|
|
5679
|
+
"jira",
|
|
5680
|
+
"other"
|
|
5681
|
+
],
|
|
5682
|
+
"description": ""
|
|
5683
|
+
},
|
|
5684
|
+
{
|
|
5685
|
+
"name": "url_template",
|
|
5686
|
+
"type": "string",
|
|
5687
|
+
"required": false,
|
|
5688
|
+
"description": ""
|
|
5689
|
+
},
|
|
5690
|
+
{
|
|
5691
|
+
"name": "example_key",
|
|
5692
|
+
"type": "string",
|
|
5693
|
+
"required": false,
|
|
5694
|
+
"description": ""
|
|
5695
|
+
},
|
|
5696
|
+
{
|
|
5697
|
+
"name": "is_default",
|
|
5698
|
+
"type": "boolean",
|
|
5699
|
+
"required": false,
|
|
5700
|
+
"description": ""
|
|
5701
|
+
}
|
|
5702
|
+
]
|
|
5703
|
+
}
|
|
5704
|
+
},
|
|
5085
5705
|
{
|
|
5086
5706
|
"group": "organizations",
|
|
5087
5707
|
"name": "update-user-role-in-organization",
|
|
@@ -5202,9 +5822,9 @@
|
|
|
5202
5822
|
"name": "apply-profile",
|
|
5203
5823
|
"method": "POST",
|
|
5204
5824
|
"path": "/api/v1/patching/profiles/{profile_id}/apply",
|
|
5205
|
-
"policy": "
|
|
5825
|
+
"policy": "mfa",
|
|
5206
5826
|
"summary": "Apply Profile",
|
|
5207
|
-
"description": "Apply the previewed changes; 409 ``apply_preview_stale`` if anything moved.",
|
|
5827
|
+
"description": "Apply the previewed changes; 409 ``apply_preview_stale`` if anything moved. Needs a recent second factor (#2102): a profile can switch sites to Autopilot or clear their pause.",
|
|
5208
5828
|
"pathParams": [
|
|
5209
5829
|
"profile_id"
|
|
5210
5830
|
],
|
|
@@ -6100,6 +6720,19 @@
|
|
|
6100
6720
|
"required": false,
|
|
6101
6721
|
"description": ""
|
|
6102
6722
|
},
|
|
6723
|
+
{
|
|
6724
|
+
"name": "state",
|
|
6725
|
+
"type": "string",
|
|
6726
|
+
"required": false,
|
|
6727
|
+
"values": [
|
|
6728
|
+
"needs_you",
|
|
6729
|
+
"running",
|
|
6730
|
+
"queued",
|
|
6731
|
+
"done",
|
|
6732
|
+
"failed"
|
|
6733
|
+
],
|
|
6734
|
+
"description": ""
|
|
6735
|
+
},
|
|
6103
6736
|
{
|
|
6104
6737
|
"name": "kind",
|
|
6105
6738
|
"type": "string",
|
|
@@ -6111,6 +6744,22 @@
|
|
|
6111
6744
|
],
|
|
6112
6745
|
"description": ""
|
|
6113
6746
|
},
|
|
6747
|
+
{
|
|
6748
|
+
"name": "days",
|
|
6749
|
+
"type": "integer",
|
|
6750
|
+
"required": false,
|
|
6751
|
+
"description": ""
|
|
6752
|
+
},
|
|
6753
|
+
{
|
|
6754
|
+
"name": "order",
|
|
6755
|
+
"type": "string",
|
|
6756
|
+
"required": false,
|
|
6757
|
+
"values": [
|
|
6758
|
+
"waiting",
|
|
6759
|
+
"recent"
|
|
6760
|
+
],
|
|
6761
|
+
"description": ""
|
|
6762
|
+
},
|
|
6114
6763
|
{
|
|
6115
6764
|
"name": "page",
|
|
6116
6765
|
"type": "integer",
|
|
@@ -6334,6 +6983,12 @@
|
|
|
6334
6983
|
"type": "boolean",
|
|
6335
6984
|
"required": false,
|
|
6336
6985
|
"description": ""
|
|
6986
|
+
},
|
|
6987
|
+
{
|
|
6988
|
+
"name": "site_uuid",
|
|
6989
|
+
"type": "string[]",
|
|
6990
|
+
"required": false,
|
|
6991
|
+
"description": "Only these sites of the organisation; repeat for several (#2134)."
|
|
6337
6992
|
}
|
|
6338
6993
|
],
|
|
6339
6994
|
"body": null
|
|
@@ -6595,7 +7250,7 @@
|
|
|
6595
7250
|
"name": "remove-connection",
|
|
6596
7251
|
"method": "DELETE",
|
|
6597
7252
|
"path": "/api/v1/patching/connections/{connection_id}",
|
|
6598
|
-
"policy": "
|
|
7253
|
+
"policy": "mfa",
|
|
6599
7254
|
"summary": "Remove Connection",
|
|
6600
7255
|
"description": "Remove (revoke) a connection. Refused with the dependent sites while a Git host or hosting connection is in use. An AI key that sites or profiles use, or the default key while enrolled sites rely on the default (#1137), is revoked either with ``replacement_connection_id`` (they move to that key, which becomes the default when the removed key was) or with ``acknowledge_in_use=true`` (nothing moves; those sites show Needs attention and the profiles a revoked-key warning). Without either: ``409 ai_key_in_use`` with the site and profile counts. Profiles naming a removed Git or hosting connection …",
|
|
6601
7256
|
"pathParams": [
|
|
@@ -7577,7 +8232,7 @@
|
|
|
7577
8232
|
"path": "/api/v1/site-api-keys/reusable",
|
|
7578
8233
|
"policy": "read",
|
|
7579
8234
|
"summary": "List Reusable Site Api Keys",
|
|
7580
|
-
"description": "Existing keys the actor may also use for ``site_uuid``.
|
|
8235
|
+
"description": "Existing keys the actor may also use for ``site_uuid``. Needs ``site:keys`` in the website's organisation. Every refusal is the same 404, so the response does not reveal whether a website exists.",
|
|
7581
8236
|
"pathParams": [],
|
|
7582
8237
|
"query": [
|
|
7583
8238
|
{
|
|
@@ -7793,7 +8448,7 @@
|
|
|
7793
8448
|
"path": "/api/v1/sites/",
|
|
7794
8449
|
"policy": "write",
|
|
7795
8450
|
"summary": "Create Site",
|
|
7796
|
-
"description": "Create new site.
|
|
8451
|
+
"description": "Create new site. Needs ``site:create`` in the organisation (organisation administrators and site managers). Non-members get 404.",
|
|
7797
8452
|
"pathParams": [],
|
|
7798
8453
|
"query": [],
|
|
7799
8454
|
"body": {
|
|
@@ -7913,7 +8568,7 @@
|
|
|
7913
8568
|
"path": "/api/v1/sites/{site_uuid}",
|
|
7914
8569
|
"policy": "mfa",
|
|
7915
8570
|
"summary": "Delete Site",
|
|
7916
|
-
"description": "Delete a site.
|
|
8571
|
+
"description": "Delete a site. Needs ``site:delete`` (organisation administrators and site managers). Only Sentinel support restores a site, from the admin console. Deleting cuts off every connector key, so an account with a second factor needs a recent code, as for revoking one key. A deleted site answers 404.",
|
|
7917
8572
|
"pathParams": [
|
|
7918
8573
|
"site_uuid"
|
|
7919
8574
|
],
|
|
@@ -8030,7 +8685,7 @@
|
|
|
8030
8685
|
"name": "enrol-site",
|
|
8031
8686
|
"method": "POST",
|
|
8032
8687
|
"path": "/api/v1/sites/{site_uuid}/patching/enrol",
|
|
8033
|
-
"policy": "
|
|
8688
|
+
"policy": "mfa",
|
|
8034
8689
|
"summary": "Enrol Site",
|
|
8035
8690
|
"description": "Enrol the website: create or complete its row. Adds no charge by itself. Refusals carry a ``code``: ``patching_already_enrolled``, ``repository_missing``, ``autopilot_terms_required`` (Autopilot needs this site's own consent; a profile never gives it), ``ci_tests_inadequate`` (422, the #999 gate), ``profile_needs_attention`` and the #960 billing codes.",
|
|
8036
8691
|
"pathParams": [
|
|
@@ -8233,6 +8888,24 @@
|
|
|
8233
8888
|
"unknown"
|
|
8234
8889
|
],
|
|
8235
8890
|
"description": "As on `GET /sites/overview`."
|
|
8891
|
+
},
|
|
8892
|
+
{
|
|
8893
|
+
"name": "fleet_status",
|
|
8894
|
+
"type": "string[]",
|
|
8895
|
+
"required": false,
|
|
8896
|
+
"description": "As on `GET /sites/overview`."
|
|
8897
|
+
},
|
|
8898
|
+
{
|
|
8899
|
+
"name": "patching_mode",
|
|
8900
|
+
"type": "string",
|
|
8901
|
+
"required": false,
|
|
8902
|
+
"description": "As on `GET /sites/overview`."
|
|
8903
|
+
},
|
|
8904
|
+
{
|
|
8905
|
+
"name": "site_uuid",
|
|
8906
|
+
"type": "string[]",
|
|
8907
|
+
"required": false,
|
|
8908
|
+
"description": "Only these sites of the organisation, for a download of the selected rows; repeat for several (#2134)."
|
|
8236
8909
|
}
|
|
8237
8910
|
],
|
|
8238
8911
|
"body": null
|
|
@@ -8563,6 +9236,12 @@
|
|
|
8563
9236
|
"required": false,
|
|
8564
9237
|
"description": "Show only enabled modules"
|
|
8565
9238
|
},
|
|
9239
|
+
{
|
|
9240
|
+
"name": "support_status",
|
|
9241
|
+
"type": "string",
|
|
9242
|
+
"required": false,
|
|
9243
|
+
"description": "not_supported: only enabled contrib extensions on an unsupported or revoked release (#873). Ignored while support status is off."
|
|
9244
|
+
},
|
|
8566
9245
|
{
|
|
8567
9246
|
"name": "page",
|
|
8568
9247
|
"type": "integer",
|
|
@@ -8802,6 +9481,18 @@
|
|
|
8802
9481
|
"unknown"
|
|
8803
9482
|
],
|
|
8804
9483
|
"description": "Only sites in this configuration drift state (#1300). Ignored while configuration drift is off. sort_by=config_drift orders by state (desc: drifted, most objects first, then unknown, then clean)."
|
|
9484
|
+
},
|
|
9485
|
+
{
|
|
9486
|
+
"name": "fleet_status",
|
|
9487
|
+
"type": "string[]",
|
|
9488
|
+
"required": false,
|
|
9489
|
+
"description": "Only sites in these fleet statuses (#873); repeat for several. sort_by=fleet_status orders worst first (asc), sort_by=drupal_core_version by version. Ignored while support status is off."
|
|
9490
|
+
},
|
|
9491
|
+
{
|
|
9492
|
+
"name": "patching_mode",
|
|
9493
|
+
"type": "string",
|
|
9494
|
+
"required": false,
|
|
9495
|
+
"description": "Only sites in this Patching state: `not_enrolled`, `copilot`, `autopilot` or `paused` (#2134). Ignored unless Patching is available to the organisation."
|
|
8805
9496
|
}
|
|
8806
9497
|
],
|
|
8807
9498
|
"body": null
|
|
@@ -8870,11 +9561,24 @@
|
|
|
8870
9561
|
"path": "/api/v1/sites/{site_uuid}/patching/deployments",
|
|
8871
9562
|
"policy": "read",
|
|
8872
9563
|
"summary": "List Site Deployments",
|
|
8873
|
-
"description": "The site's deployments, newest first.",
|
|
9564
|
+
"description": "The site's deployments, newest first, or those of one job or pull request.",
|
|
8874
9565
|
"pathParams": [
|
|
8875
9566
|
"site_uuid"
|
|
8876
9567
|
],
|
|
8877
|
-
"query": [
|
|
9568
|
+
"query": [
|
|
9569
|
+
{
|
|
9570
|
+
"name": "job_id",
|
|
9571
|
+
"type": "string",
|
|
9572
|
+
"required": false,
|
|
9573
|
+
"description": ""
|
|
9574
|
+
},
|
|
9575
|
+
{
|
|
9576
|
+
"name": "pull_request_id",
|
|
9577
|
+
"type": "integer[]",
|
|
9578
|
+
"required": false,
|
|
9579
|
+
"description": ""
|
|
9580
|
+
}
|
|
9581
|
+
],
|
|
8878
9582
|
"body": null
|
|
8879
9583
|
},
|
|
8880
9584
|
{
|
|
@@ -8902,7 +9606,20 @@
|
|
|
8902
9606
|
"pathParams": [
|
|
8903
9607
|
"site_uuid"
|
|
8904
9608
|
],
|
|
8905
|
-
"query": [
|
|
9609
|
+
"query": [
|
|
9610
|
+
{
|
|
9611
|
+
"name": "job_id",
|
|
9612
|
+
"type": "string",
|
|
9613
|
+
"required": false,
|
|
9614
|
+
"description": ""
|
|
9615
|
+
},
|
|
9616
|
+
{
|
|
9617
|
+
"name": "pull_request_id",
|
|
9618
|
+
"type": "integer[]",
|
|
9619
|
+
"required": false,
|
|
9620
|
+
"description": ""
|
|
9621
|
+
}
|
|
9622
|
+
],
|
|
8906
9623
|
"body": null
|
|
8907
9624
|
},
|
|
8908
9625
|
{
|
|
@@ -8955,7 +9672,7 @@
|
|
|
8955
9672
|
"name": "map-site-hosting",
|
|
8956
9673
|
"method": "PUT",
|
|
8957
9674
|
"path": "/api/v1/sites/{site_uuid}/patching/hosting",
|
|
8958
|
-
"policy": "
|
|
9675
|
+
"policy": "mfa",
|
|
8959
9676
|
"summary": "Map Site Hosting",
|
|
8960
9677
|
"description": "Map the production environment after the branch consistency check.",
|
|
8961
9678
|
"pathParams": [
|
|
@@ -9064,9 +9781,9 @@
|
|
|
9064
9781
|
"name": "put-site-patching",
|
|
9065
9782
|
"method": "PUT",
|
|
9066
9783
|
"path": "/api/v1/sites/{site_uuid}/patching",
|
|
9067
|
-
"policy": "
|
|
9784
|
+
"policy": "mfa",
|
|
9068
9785
|
"summary": "Put Site Patching",
|
|
9069
|
-
"description": "Create or replace the configuration record
|
|
9786
|
+
"description": "Create or replace the configuration record (``patching:run``). Switching to Autopilot also needs ``patching:deploy`` and changing the hosting mapping ``patching:configure``; either needs a recent second factor (#2102).",
|
|
9070
9787
|
"pathParams": [
|
|
9071
9788
|
"site_uuid"
|
|
9072
9789
|
],
|
|
@@ -9212,6 +9929,30 @@
|
|
|
9212
9929
|
]
|
|
9213
9930
|
}
|
|
9214
9931
|
},
|
|
9932
|
+
{
|
|
9933
|
+
"group": "sites",
|
|
9934
|
+
"name": "put-upgrade-readiness-display",
|
|
9935
|
+
"method": "PUT",
|
|
9936
|
+
"path": "/api/v1/sites/{site_uuid}/upgrade-readiness/display",
|
|
9937
|
+
"policy": "write",
|
|
9938
|
+
"summary": "Show or hide Drupal upgrade readiness on a site",
|
|
9939
|
+
"description": "Show or hide upgrade readiness on the site's Summary tab. Needs ``site:write`` (organisation administrators and site managers). Another organisation's site reads as missing. Hiding it keeps the stored result.",
|
|
9940
|
+
"pathParams": [
|
|
9941
|
+
"site_uuid"
|
|
9942
|
+
],
|
|
9943
|
+
"query": [],
|
|
9944
|
+
"body": {
|
|
9945
|
+
"required": true,
|
|
9946
|
+
"fields": [
|
|
9947
|
+
{
|
|
9948
|
+
"name": "shown",
|
|
9949
|
+
"type": "boolean",
|
|
9950
|
+
"required": true,
|
|
9951
|
+
"description": ""
|
|
9952
|
+
}
|
|
9953
|
+
]
|
|
9954
|
+
}
|
|
9955
|
+
},
|
|
9215
9956
|
{
|
|
9216
9957
|
"group": "sites",
|
|
9217
9958
|
"name": "read-declared-stack",
|
|
@@ -9604,27 +10345,6 @@
|
|
|
9604
10345
|
]
|
|
9605
10346
|
}
|
|
9606
10347
|
},
|
|
9607
|
-
{
|
|
9608
|
-
"group": "sites",
|
|
9609
|
-
"name": "restore-site",
|
|
9610
|
-
"method": "POST",
|
|
9611
|
-
"path": "/api/v1/sites/{site_uuid}/restore",
|
|
9612
|
-
"policy": "write",
|
|
9613
|
-
"summary": "Restore Site",
|
|
9614
|
-
"description": "Restore a soft-deleted site (superuser only). Returns 404 if the site does not exist and 409 if an active site already holds the same URL.",
|
|
9615
|
-
"pathParams": [
|
|
9616
|
-
"site_uuid"
|
|
9617
|
-
],
|
|
9618
|
-
"query": [
|
|
9619
|
-
{
|
|
9620
|
-
"name": "activate",
|
|
9621
|
-
"type": "boolean",
|
|
9622
|
-
"required": false,
|
|
9623
|
-
"description": ""
|
|
9624
|
-
}
|
|
9625
|
-
],
|
|
9626
|
-
"body": null
|
|
9627
|
-
},
|
|
9628
10348
|
{
|
|
9629
10349
|
"group": "sites",
|
|
9630
10350
|
"name": "revoke-site-api-key",
|
|
@@ -9690,7 +10410,7 @@
|
|
|
9690
10410
|
"name": "unenrol-site",
|
|
9691
10411
|
"method": "POST",
|
|
9692
10412
|
"path": "/api/v1/sites/{site_uuid}/patching/unenrol",
|
|
9693
|
-
"policy": "
|
|
10413
|
+
"policy": "mfa",
|
|
9694
10414
|
"summary": "Unenrol Site",
|
|
9695
10415
|
"description": "Stop the schedule; the bill drops at renewal; the history stays.",
|
|
9696
10416
|
"pathParams": [
|
|
@@ -9742,7 +10462,7 @@
|
|
|
9742
10462
|
"path": "/api/v1/sites/{site_uuid}",
|
|
9743
10463
|
"policy": "write",
|
|
9744
10464
|
"summary": "Update Site",
|
|
9745
|
-
"description": "Update a site.
|
|
10465
|
+
"description": "Update a site. Needs ``site:write`` (organisation administrators and site managers). Moving it to another organisation also needs ``site:delete`` here and ``site:create`` there.",
|
|
9746
10466
|
"pathParams": [
|
|
9747
10467
|
"site_uuid"
|
|
9748
10468
|
],
|
|
@@ -10867,12 +11587,6 @@
|
|
|
10867
11587
|
"required": true,
|
|
10868
11588
|
"description": ""
|
|
10869
11589
|
},
|
|
10870
|
-
{
|
|
10871
|
-
"name": "role",
|
|
10872
|
-
"type": "string",
|
|
10873
|
-
"required": true,
|
|
10874
|
-
"description": ""
|
|
10875
|
-
},
|
|
10876
11590
|
{
|
|
10877
11591
|
"name": "password",
|
|
10878
11592
|
"type": "string",
|
|
@@ -10902,8 +11616,8 @@
|
|
|
10902
11616
|
"method": "GET",
|
|
10903
11617
|
"path": "/api/v1/users/organization/{organization_id}/users",
|
|
10904
11618
|
"policy": "read",
|
|
10905
|
-
"summary": "
|
|
10906
|
-
"description": "
|
|
11619
|
+
"summary": "List the organisation's members (use /organizations/{id}/users)",
|
|
11620
|
+
"description": "The same list as ``GET /organizations/{id}/users`` (#2104).",
|
|
10907
11621
|
"pathParams": [
|
|
10908
11622
|
"organization_id"
|
|
10909
11623
|
],
|
|
@@ -10990,12 +11704,6 @@
|
|
|
10990
11704
|
"required": false,
|
|
10991
11705
|
"description": ""
|
|
10992
11706
|
},
|
|
10993
|
-
{
|
|
10994
|
-
"name": "role",
|
|
10995
|
-
"type": "string",
|
|
10996
|
-
"required": false,
|
|
10997
|
-
"description": ""
|
|
10998
|
-
},
|
|
10999
11707
|
{
|
|
11000
11708
|
"name": "search",
|
|
11001
11709
|
"type": "string",
|
|
@@ -11092,7 +11800,7 @@
|
|
|
11092
11800
|
"path": "/api/v1/users/{user_id}/organizations",
|
|
11093
11801
|
"policy": "mfa",
|
|
11094
11802
|
"summary": "Set User Organizations",
|
|
11095
|
-
"description": "Set the target user's memberships for organizations the caller may manage. - Superuser: replaces full membership with the provided set. - Org admin: may add/remove only within orgs where they have `org_admin` role. Other memberships are untouched. Safeguards: - Cannot remove the user's last organization membership.",
|
|
11803
|
+
"description": "Set the target user's memberships for organizations the caller may manage. A change needs a recent second factor, and nobody removes themselves here, as on ``DELETE /organizations/{id}/users/{user_id}`` (#2104). - Superuser: replaces full membership with the provided set. - Org admin: may add/remove only within orgs where they have `org_admin` role. Other memberships are untouched. Safeguards: - Cannot remove the user's last organization membership.",
|
|
11096
11804
|
"pathParams": [
|
|
11097
11805
|
"user_id"
|
|
11098
11806
|
],
|
|
@@ -11104,7 +11812,7 @@
|
|
|
11104
11812
|
"name": "organization_ids",
|
|
11105
11813
|
"type": "integer[]",
|
|
11106
11814
|
"required": false,
|
|
11107
|
-
"description": "Full set of
|
|
11815
|
+
"description": "Full set of organisation IDs to apply. Non-admins may only modify memberships in orgs they admin; other memberships remain unchanged."
|
|
11108
11816
|
}
|
|
11109
11817
|
]
|
|
11110
11818
|
}
|
|
@@ -11154,12 +11862,6 @@
|
|
|
11154
11862
|
"required": false,
|
|
11155
11863
|
"description": ""
|
|
11156
11864
|
},
|
|
11157
|
-
{
|
|
11158
|
-
"name": "role",
|
|
11159
|
-
"type": "string",
|
|
11160
|
-
"required": false,
|
|
11161
|
-
"description": ""
|
|
11162
|
-
},
|
|
11163
11865
|
{
|
|
11164
11866
|
"name": "password",
|
|
11165
11867
|
"type": "string",
|