SMTP
This contains APIs related to SmtpConfig as defined in Harness
Config identifier
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Boolean status whether request was successful or not
DELETE /gateway/ng/api/smtpConfig/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
returns the SmtpConfig having accountId as specified in request
GET /gateway/ng/api/smtpConfig HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
This is the view of the NgSmtp entity defined in Harness
Identifier of the SMTP config.
Account Identifier for the Entity.
Name of the SMTP config.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns created config
POST /gateway/ng/api/smtpConfig?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 199
{
"uuid": "text",
"accountId": "text",
"name": "text",
"value": {
"host": "text",
"port": 1,
"fromAddress": "text",
"useSSL": true,
"startTLS": true,
"username": "text",
"password": [
"text"
],
"delegateSelectors": [
"text"
]
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
This is the view of the NgSmtp entity defined in Harness
Identifier of the SMTP config.
Account Identifier for the Entity.
Name of the SMTP config.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns updated config
PUT /gateway/ng/api/smtpConfig?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 199
{
"uuid": "text",
"accountId": "text",
"name": "text",
"value": {
"host": "text",
"port": 1,
"fromAddress": "text",
"useSSL": true,
"startTLS": true,
"username": "text",
"password": [
"text"
],
"delegateSelectors": [
"text"
]
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Attribute uuid
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns validation Result
POST /gateway/ng/api/smtpConfig/validate-connectivity?identifier=text&accountId=text&to=text&subject=text&body=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}The name of Config
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns validation Result
POST /gateway/ng/api/smtpConfig/validateName?accountId=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?