Skip to content

Commit a54dbd5

Browse files
authored
Merge pull request #183 from aramd/update_api_docs
docs: update List Patchsets API usage and AlmaLinux 10 info
2 parents 609a7e4 + af89655 commit a54dbd5

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

docs/eportal-api/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ curl -X DELETE -u admin https://eportal.corp.com/admin/api/keys/test-key
390390

391391
**GET /admin/api/patchsets/**
392392

393-
Endpoint lists available patchsets for a feed and product.
394-
Sort order is from oldest to newest patchsets.
393+
Endpoint lists available patchsets for a specified feed and product, optionally filtered by distribution(s). The distro filter narrows results to only those patchsets that apply to the specified distributions.
394+
If no distro is provided, patchsets for all available distributions are returned. Results are returned from oldest to newest patchsets.
395395

396396
Requires read permissions and accepts basic authorization.
397397

@@ -400,6 +400,7 @@ Requires read permissions and accepts basic authorization.
400400
* `feed`: String, optional. Name of the feed to list patchsets for. `main` by default.
401401
* `product`: String, optional. Possible values are: `kernel`, `user`, `qemu`, `db`.
402402
Selects a patchstore for a specified product. `kernel` by default.
403+
* `distro`: String (multi), optional. Filters results by one or more Linux distributions. Can be passed multiple times, e.g., `?distro=centos7&distro=almalinux8`.
403404

404405
**Response:**
405406

@@ -408,7 +409,8 @@ Requires read permissions and accepts basic authorization.
408409
"result": [
409410
{
410411
"patchset": "patchset-name",
411-
"status": "enabled" // possible values are: enabled, disabled, not-downloaded, undeployed
412+
"status": "enabled", // possible values are: enabled, disabled, not-downloaded, undeployed
413+
"distros": ["distro-1", "distro-2"]
412414
},
413415
...
414416
]
@@ -418,7 +420,7 @@ Requires read permissions and accepts basic authorization.
418420
**Example:**
419421

420422
```
421-
curl -u admin 'https://eportal.corp.com/admin/api/patchsets/?feed=main&product=kernel'
423+
curl -u admin 'https://eportal.corp.com/admin/api/patchsets/?feed=main&product=kernel&distro=almalinux8'
422424
```
423425

424426

docs/eportal/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ As far as other requirements concerned, we have tested the following configurati
4343
If you are installing for the first time, please confirm with our sales engineering team at [[email protected]]([email protected]) **BEFORE** trying the installation via the documentation below. Please note that support tickets resulting from not following this recommendation will not be accepted.
4444
:::
4545

46-
ePortal is compatible with 64-bit versions of EL7/8/9 based distros like CentOS 7/8, AlmaLinux 8/9, Ubuntu 20.04/22.04/24.04 and Debian 11/12
46+
ePortal is compatible with 64-bit versions of EL7/8/9 based distros like CentOS 7/8, AlmaLinux 8/9/10, Ubuntu 20.04/22.04/24.04 and Debian 11/12
4747

4848
### RHEL-based distros
4949

@@ -71,7 +71,7 @@ Setup ePortal repo:
7171
name=KernelCare ePortal
7272
baseurl=https://www.repo.cloudlinux.com/kcare-eportal/\$releasever/\$basearch/
7373
enabled=1
74-
gpgkey=https://repo.cloudlinux.com/kernelcare/RPM-GPG-KEY-KernelCare
74+
gpgkey=https://repo.cloudlinux.com/kernelcare/RPM-GPG-KEY-KernelCare-rsa4096
7575
gpgcheck=1
7676
EOL
7777
```

0 commit comments

Comments
 (0)