Smtp connections API

get listing

GET /api/rest/admin/system/smtp-connections

Parameters

Name Description
filter[id] id filter
filter[name] name filter

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MzksInN1YiI6MjE0fQ.axcyEpgHnsluM9l7PG2IUm_6icv85sBLpL1jh70YsC8
Host: example.org
Cookie: 

Route

GET /api/rest/admin/system/smtp-connections

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"1ec31c94c72db56d6167f7744d2c7ed0"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 9a5c9a0e-bb82-4a49-bf83-ee151df9b72e
X-Runtime: 0.007731
Content-Length: 790

Status

200 OK

Body

{
  "data": [
    {
      "id": "1",
      "type": "smtp-connections",
      "links": {
        "self": "http://example.org/api/rest/admin/system/smtp-connections/1"
      },
      "attributes": {
        "name": "smtp_connection1",
        "host": "host",
        "port": 25,
        "from-address": "address@email.com",
        "auth-user": null,
        "auth-password": null,
        "global": true
      }
    },
    {
      "id": "2",
      "type": "smtp-connections",
      "links": {
        "self": "http://example.org/api/rest/admin/system/smtp-connections/2"
      },
      "attributes": {
        "name": "smtp_connection2",
        "host": "host",
        "port": 25,
        "from-address": "address@email.com",
        "auth-user": null,
        "auth-password": null,
        "global": true
      }
    }
  ],
  "meta": {
    "total-count": 2
  },
  "links": {
    "first": "http://example.org/api/rest/admin/system/smtp-connections?page%5Bnumber%5D=1&page%5Bsize%5D=50",
    "last": "http://example.org/api/rest/admin/system/smtp-connections?page%5Bnumber%5D=1&page%5Bsize%5D=50"
  }
}