Skip to main content
************* PRERELEASE CONTENT *************
Previous sectionNext section

POST /api/sam/admin/target

Add an instance to SAM

Description

This method adds the provided InterSystems IRIS® data platform instance to the targets.json file and %SAM.Target table.

To use this endpoint, you must log in as a user with access to the %SAM.Admin resource.

Request Example

POST /api/sam/admin/target

Example JSON request packet: 

{
    "name": "IRIS3",
    "description": "Local IRIS3",
    "cluster": 1,
    "instance": "iris:52773"
}
Copy code to clipboard

Response Example

{
    "id": 4
}
Copy code to clipboard