Site

Site Scan Credentials

Changed on

Creates a new site credential.

post/api/3/sites/{id}/site_credentials

Request

Path parameters

idinteger required

The identifier of the site.

Request body

descriptionstring

The description of the credential.

enabledboolean

Whether this credential is enabled

hostRestrictionstring

The host name or IP address that you want to restrict the credentials to.

idinteger

The identifier of the credential.

namestring required

The name of the credential.

portRestrictioninteger

Further restricts the credential to attempt to authenticate on a specific port.

Response

Created

idobject

The identifier of the credential.

Example response

{
  "links": [
    {
      "href": "https://hostname:3780/api/3/...",
      "rel": "self"
    }
  ]
}

Changes

    • breaking

      added required request body

    • info

      added the media type application/json;charset=UTF-8 for the response with the status

    • info

      added the media type application/json;charset=UTF-8 for the response with the status

    • info

      added the media type application/json;charset=UTF-8 for the response with the status

    • info

      added the media type application/json;charset=UTF-8 for the response with the status

    • info

      added the media type application/json;charset=UTF-8 for the response with the status