WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


Create an Adapter

Attributes

name
string - required
type_of
string - required

OR

encrypted_private_key
string - required
host
string - required
name
string - required
path
string - required
port
integer - required
type_of
string - required
user
string - required

Definition

POST  /properties/:property_id/adapters

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/properties/:property_id/adapters \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X POST \
  -d \
'
{
  "data": {
    "attributes": {
      "name": "Example SFTP Adapter",
      "type_of": "sftp",
      "user": "John Doe",
      "encrypted_private_key": "-----BEGIN PGP MESSAGE-----\n\nhQIMAwB8kNQ7jtk8AQ/+IPE+jteweLyNgdkzkBWN4c+wpRfTP9ionSywdWzZsRZ2\ngpIHLidqCgM+iRw0CgbAKhdAmA1wVyWP4HCa0eJuNCVwj+NqJlWW8qWxCWeZi2KC\nhqsoaB5+xIbS3Jwt8S4Na+DgvyjSj88sALvG9Y/xqNexRvcuvv0KKFoVYPOeW/w9\n+6x+vUmZFrTWMaNtKH6X9kifo5l+05d3XngPLfml4cKzWmO1f3FEvTX0O4nJurQ7\nNc27dt2XAO5Y8bqCClQ6AHOFVrkKnTifHF79A3AhCB5E9wMY4FJ/EReZ6Uk0ixOn\n76XeGbkl1jidajM5G/gylwEwOXN8CVy5DQyvxGulhsaaqtri7GZxQC5HUTETIHwO\nxThAttH22uaBjhMmYiCvPzSL4Z9UNFZeGPfb17k5E1kauprR2ItUJX86+Cid/FnR\nW7QN/8J4Jnf6Ggp90VujV0uIvdyLYq3T0xe9WZmONJaQ5bDYDv5ZfkcapOvXw4zr\nxrL1vrpZ5Qfu8oLQ19JOT2o7e3p8Kh7lDPIL7RH2bYesinLJ7wdopmkpj4/4gpHK\njzlWalZd75PEsttsUJ+ODVSOXG7iVhx9EvkZagUo0oeZ3oY1Jy5oik/gvVp28wDO\n8T1uYK/jeCSiuslxCYxth8a+5Wgiy8Jw1vHCRudsNgU1x2zYuOJetJS14Z/CTETS\nTgGPh0J6fQEvzZTM6AEJpRs+cVZV1hnTspyo2S5wv/SdrbqMkVHhs8rlq/0PWpSB\nLhLNlh8kLPR0KOG0V79GEO20At0HL/yGny/GKrTyAw==\n=oRpa\n-----END PGP MESSAGE-----\n",
      "host": "//example.com",
      "path": "assets",
      "port": 22
    },
    "type": "adapters"
  }
}'

Example Response

201 Created
{
  "data": {
    "id": "AD6ae302fbfbec41d3bc282a2cfa7575e3",
    "type": "adapters",
    "attributes": {
      "created_at": "2018-06-15T19:09:06.607Z",
      "host": "//example.com",
      "name": "Example SFTP Adapter",
      "path": "assets",
      "port": 22,
      "status": "pending",
      "type_of": "sftp",
      "updated_at": "2018-06-15T19:09:06.607Z",
      "user": "John Doe"
    },
    "relationships": {
      "property": {
        "links": {
          "related": "http://localhost:9010/adapters/AD6ae302fbfbec41d3bc282a2cfa7575e3/property"
        },
        "data": {
          "type": "properties",
          "id": "PReeea306873e54c718af7af5b05db32fb"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PReeea306873e54c718af7af5b05db32fb",
      "self": "http://localhost:9010/adapters/AD6ae302fbfbec41d3bc282a2cfa7575e3"
    }
  }
}