Creates a new Deployment Target
Creates a new Deployment Target.
curl --request POST \
--url https://mycluster.domino.tech/api/admin/v1/deploymentTargets \
--header 'Content-Type: application/json' \
--header 'X-Domino-Api-Key: <api-key>' \
--data '
{
"configuration": {
"credentials": {
"account": 1234,
"credentials": "AWS_ACCESS_KEY_ID: 1234\nAWS_SECRET_ACCESS_KEY: itsasecret\n"
},
"sagemaker": {
"ecrUrl": "anURL",
"region": "us-east-1",
"sagemakerS3ModelsBucket": "domino-sagemaker"
}
},
"deploymentTargetTypeId": "<string>",
"isGloballyAccessible": true,
"name": "Production",
"resourceConfigurations": [
{
"configuration": {
"instance_type": "m5.large"
},
"name": "gpu_large",
"deploymentTargetId": "<string>",
"description": "<string>",
"isDefault": true
}
],
"userAndOrganizationIds": [
"<string>"
]
}
'import requests
url = "https://mycluster.domino.tech/api/admin/v1/deploymentTargets"
payload = {
"configuration": {
"credentials": {
"account": 1234,
"credentials": "AWS_ACCESS_KEY_ID: 1234
AWS_SECRET_ACCESS_KEY: itsasecret
"
},
"sagemaker": {
"ecrUrl": "anURL",
"region": "us-east-1",
"sagemakerS3ModelsBucket": "domino-sagemaker"
}
},
"deploymentTargetTypeId": "<string>",
"isGloballyAccessible": True,
"name": "Production",
"resourceConfigurations": [
{
"configuration": { "instance_type": "m5.large" },
"name": "gpu_large",
"deploymentTargetId": "<string>",
"description": "<string>",
"isDefault": True
}
],
"userAndOrganizationIds": ["<string>"]
}
headers = {
"X-Domino-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Domino-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
configuration: {
credentials: {
account: 1234,
credentials: 'AWS_ACCESS_KEY_ID: 1234\nAWS_SECRET_ACCESS_KEY: itsasecret\n'
},
sagemaker: {
ecrUrl: 'anURL',
region: 'us-east-1',
sagemakerS3ModelsBucket: 'domino-sagemaker'
}
},
deploymentTargetTypeId: '<string>',
isGloballyAccessible: true,
name: 'Production',
resourceConfigurations: [
{
configuration: {instance_type: 'm5.large'},
name: 'gpu_large',
deploymentTargetId: '<string>',
description: '<string>',
isDefault: true
}
],
userAndOrganizationIds: ['<string>']
})
};
fetch('https://mycluster.domino.tech/api/admin/v1/deploymentTargets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/admin/v1/deploymentTargets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'configuration' => [
'credentials' => [
'account' => 1234,
'credentials' => 'AWS_ACCESS_KEY_ID: 1234
AWS_SECRET_ACCESS_KEY: itsasecret
'
],
'sagemaker' => [
'ecrUrl' => 'anURL',
'region' => 'us-east-1',
'sagemakerS3ModelsBucket' => 'domino-sagemaker'
]
],
'deploymentTargetTypeId' => '<string>',
'isGloballyAccessible' => true,
'name' => 'Production',
'resourceConfigurations' => [
[
'configuration' => [
'instance_type' => 'm5.large'
],
'name' => 'gpu_large',
'deploymentTargetId' => '<string>',
'description' => '<string>',
'isDefault' => true
]
],
'userAndOrganizationIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Domino-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/admin/v1/deploymentTargets"
payload := strings.NewReader("{\n \"configuration\": {\n \"credentials\": {\n \"account\": 1234,\n \"credentials\": \"AWS_ACCESS_KEY_ID: 1234\\nAWS_SECRET_ACCESS_KEY: itsasecret\\n\"\n },\n \"sagemaker\": {\n \"ecrUrl\": \"anURL\",\n \"region\": \"us-east-1\",\n \"sagemakerS3ModelsBucket\": \"domino-sagemaker\"\n }\n },\n \"deploymentTargetTypeId\": \"<string>\",\n \"isGloballyAccessible\": true,\n \"name\": \"Production\",\n \"resourceConfigurations\": [\n {\n \"configuration\": {\n \"instance_type\": \"m5.large\"\n },\n \"name\": \"gpu_large\",\n \"deploymentTargetId\": \"<string>\",\n \"description\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"userAndOrganizationIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Domino-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/admin/v1/deploymentTargets")
.header("X-Domino-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"configuration\": {\n \"credentials\": {\n \"account\": 1234,\n \"credentials\": \"AWS_ACCESS_KEY_ID: 1234\\nAWS_SECRET_ACCESS_KEY: itsasecret\\n\"\n },\n \"sagemaker\": {\n \"ecrUrl\": \"anURL\",\n \"region\": \"us-east-1\",\n \"sagemakerS3ModelsBucket\": \"domino-sagemaker\"\n }\n },\n \"deploymentTargetTypeId\": \"<string>\",\n \"isGloballyAccessible\": true,\n \"name\": \"Production\",\n \"resourceConfigurations\": [\n {\n \"configuration\": {\n \"instance_type\": \"m5.large\"\n },\n \"name\": \"gpu_large\",\n \"deploymentTargetId\": \"<string>\",\n \"description\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"userAndOrganizationIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/admin/v1/deploymentTargets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Domino-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"configuration\": {\n \"credentials\": {\n \"account\": 1234,\n \"credentials\": \"AWS_ACCESS_KEY_ID: 1234\\nAWS_SECRET_ACCESS_KEY: itsasecret\\n\"\n },\n \"sagemaker\": {\n \"ecrUrl\": \"anURL\",\n \"region\": \"us-east-1\",\n \"sagemakerS3ModelsBucket\": \"domino-sagemaker\"\n }\n },\n \"deploymentTargetTypeId\": \"<string>\",\n \"isGloballyAccessible\": true,\n \"name\": \"Production\",\n \"resourceConfigurations\": [\n {\n \"configuration\": {\n \"instance_type\": \"m5.large\"\n },\n \"name\": \"gpu_large\",\n \"deploymentTargetId\": \"<string>\",\n \"description\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"userAndOrganizationIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"configuration": {
"credentials": {
"account": 1234,
"credentials": "vault-secret-name"
},
"sagemaker": {
"ecrUrl": "399181051250.dkr.ecr.us-east-1.amazonaws.com/rf-regression-juno:mlflow",
"executionRoleArn": "arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole",
"region": "us-east-1",
"sagemakerS3ModelsBucket": "domino-sagemaker"
}
},
"deploymentTargetTypeId": 0,
"deploymentTargetTypeName": "AWS",
"id": 1,
"name": "Local Dataplane Sagemaker",
"resourceConfigurations": [
{
"configuration": {
"instanceType": "m7g.medium"
},
"deploymentTargetId": 1,
"description": "Medium AWS Instance",
"id": 2,
"name": "Medium"
},
{
"configuration": {
"instanceType": "m7g.large"
},
"deploymentTargetId": 1,
"description": "Large AWS Instance",
"id": 3,
"name": "Large"
}
],
"userAndOrganizationIds": []
}{
"error": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "Authentication is required to access this resource."
}{
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
Details of the Deployment Target to create
Deployment Target creation request
Configuration of this Deployment Target following the schema in its Deployment Target Type
{
"credentials": {
"account": 1234,
"credentials": "AWS_ACCESS_KEY_ID: 1234\nAWS_SECRET_ACCESS_KEY: itsasecret\n"
},
"sagemaker": {
"ecrUrl": "anURL",
"region": "us-east-1",
"sagemakerS3ModelsBucket": "domino-sagemaker"
}
}
ID of the Deployment Target Type this Deployment Target belongs to
Whether or not the Deployment Target is globally accessible
Internal name for the Deployment Target
"Production"
Show child attributes
Show child attributes
User and Organization IDs that can use this Deployment Target
Response
Success
Deployment Target
Configuration of this Deployment Target following the schema in its Deployment Target Type
ID of the Deployment Target Type this Deployment Target belongs to
Name of the Deployment Target Type this Deployment Target belongs to
UUID for the Deployment Target
Whether or not the Deployment Target is globally accessible
Timestamp of the last update to the deployment target (will be the creation timestamp on creation)
Internal name for the Deployment Target
"Production"
User and Organization IDs that can use this Deployment Target
The ID of the default resource configuration
Show child attributes
Show child attributes
Related topics
Creates a new Resource ConfigurationCreate a new Model DeploymentUpdates a Deployment TargetCreate new bundleWas this page helpful?
curl --request POST \
--url https://mycluster.domino.tech/api/admin/v1/deploymentTargets \
--header 'Content-Type: application/json' \
--header 'X-Domino-Api-Key: <api-key>' \
--data '
{
"configuration": {
"credentials": {
"account": 1234,
"credentials": "AWS_ACCESS_KEY_ID: 1234\nAWS_SECRET_ACCESS_KEY: itsasecret\n"
},
"sagemaker": {
"ecrUrl": "anURL",
"region": "us-east-1",
"sagemakerS3ModelsBucket": "domino-sagemaker"
}
},
"deploymentTargetTypeId": "<string>",
"isGloballyAccessible": true,
"name": "Production",
"resourceConfigurations": [
{
"configuration": {
"instance_type": "m5.large"
},
"name": "gpu_large",
"deploymentTargetId": "<string>",
"description": "<string>",
"isDefault": true
}
],
"userAndOrganizationIds": [
"<string>"
]
}
'import requests
url = "https://mycluster.domino.tech/api/admin/v1/deploymentTargets"
payload = {
"configuration": {
"credentials": {
"account": 1234,
"credentials": "AWS_ACCESS_KEY_ID: 1234
AWS_SECRET_ACCESS_KEY: itsasecret
"
},
"sagemaker": {
"ecrUrl": "anURL",
"region": "us-east-1",
"sagemakerS3ModelsBucket": "domino-sagemaker"
}
},
"deploymentTargetTypeId": "<string>",
"isGloballyAccessible": True,
"name": "Production",
"resourceConfigurations": [
{
"configuration": { "instance_type": "m5.large" },
"name": "gpu_large",
"deploymentTargetId": "<string>",
"description": "<string>",
"isDefault": True
}
],
"userAndOrganizationIds": ["<string>"]
}
headers = {
"X-Domino-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Domino-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
configuration: {
credentials: {
account: 1234,
credentials: 'AWS_ACCESS_KEY_ID: 1234\nAWS_SECRET_ACCESS_KEY: itsasecret\n'
},
sagemaker: {
ecrUrl: 'anURL',
region: 'us-east-1',
sagemakerS3ModelsBucket: 'domino-sagemaker'
}
},
deploymentTargetTypeId: '<string>',
isGloballyAccessible: true,
name: 'Production',
resourceConfigurations: [
{
configuration: {instance_type: 'm5.large'},
name: 'gpu_large',
deploymentTargetId: '<string>',
description: '<string>',
isDefault: true
}
],
userAndOrganizationIds: ['<string>']
})
};
fetch('https://mycluster.domino.tech/api/admin/v1/deploymentTargets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/admin/v1/deploymentTargets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'configuration' => [
'credentials' => [
'account' => 1234,
'credentials' => 'AWS_ACCESS_KEY_ID: 1234
AWS_SECRET_ACCESS_KEY: itsasecret
'
],
'sagemaker' => [
'ecrUrl' => 'anURL',
'region' => 'us-east-1',
'sagemakerS3ModelsBucket' => 'domino-sagemaker'
]
],
'deploymentTargetTypeId' => '<string>',
'isGloballyAccessible' => true,
'name' => 'Production',
'resourceConfigurations' => [
[
'configuration' => [
'instance_type' => 'm5.large'
],
'name' => 'gpu_large',
'deploymentTargetId' => '<string>',
'description' => '<string>',
'isDefault' => true
]
],
'userAndOrganizationIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Domino-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/admin/v1/deploymentTargets"
payload := strings.NewReader("{\n \"configuration\": {\n \"credentials\": {\n \"account\": 1234,\n \"credentials\": \"AWS_ACCESS_KEY_ID: 1234\\nAWS_SECRET_ACCESS_KEY: itsasecret\\n\"\n },\n \"sagemaker\": {\n \"ecrUrl\": \"anURL\",\n \"region\": \"us-east-1\",\n \"sagemakerS3ModelsBucket\": \"domino-sagemaker\"\n }\n },\n \"deploymentTargetTypeId\": \"<string>\",\n \"isGloballyAccessible\": true,\n \"name\": \"Production\",\n \"resourceConfigurations\": [\n {\n \"configuration\": {\n \"instance_type\": \"m5.large\"\n },\n \"name\": \"gpu_large\",\n \"deploymentTargetId\": \"<string>\",\n \"description\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"userAndOrganizationIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Domino-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/admin/v1/deploymentTargets")
.header("X-Domino-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"configuration\": {\n \"credentials\": {\n \"account\": 1234,\n \"credentials\": \"AWS_ACCESS_KEY_ID: 1234\\nAWS_SECRET_ACCESS_KEY: itsasecret\\n\"\n },\n \"sagemaker\": {\n \"ecrUrl\": \"anURL\",\n \"region\": \"us-east-1\",\n \"sagemakerS3ModelsBucket\": \"domino-sagemaker\"\n }\n },\n \"deploymentTargetTypeId\": \"<string>\",\n \"isGloballyAccessible\": true,\n \"name\": \"Production\",\n \"resourceConfigurations\": [\n {\n \"configuration\": {\n \"instance_type\": \"m5.large\"\n },\n \"name\": \"gpu_large\",\n \"deploymentTargetId\": \"<string>\",\n \"description\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"userAndOrganizationIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/admin/v1/deploymentTargets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Domino-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"configuration\": {\n \"credentials\": {\n \"account\": 1234,\n \"credentials\": \"AWS_ACCESS_KEY_ID: 1234\\nAWS_SECRET_ACCESS_KEY: itsasecret\\n\"\n },\n \"sagemaker\": {\n \"ecrUrl\": \"anURL\",\n \"region\": \"us-east-1\",\n \"sagemakerS3ModelsBucket\": \"domino-sagemaker\"\n }\n },\n \"deploymentTargetTypeId\": \"<string>\",\n \"isGloballyAccessible\": true,\n \"name\": \"Production\",\n \"resourceConfigurations\": [\n {\n \"configuration\": {\n \"instance_type\": \"m5.large\"\n },\n \"name\": \"gpu_large\",\n \"deploymentTargetId\": \"<string>\",\n \"description\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"userAndOrganizationIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"configuration": {
"credentials": {
"account": 1234,
"credentials": "vault-secret-name"
},
"sagemaker": {
"ecrUrl": "399181051250.dkr.ecr.us-east-1.amazonaws.com/rf-regression-juno:mlflow",
"executionRoleArn": "arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole",
"region": "us-east-1",
"sagemakerS3ModelsBucket": "domino-sagemaker"
}
},
"deploymentTargetTypeId": 0,
"deploymentTargetTypeName": "AWS",
"id": 1,
"name": "Local Dataplane Sagemaker",
"resourceConfigurations": [
{
"configuration": {
"instanceType": "m7g.medium"
},
"deploymentTargetId": 1,
"description": "Medium AWS Instance",
"id": 2,
"name": "Medium"
},
{
"configuration": {
"instanceType": "m7g.large"
},
"deploymentTargetId": 1,
"description": "Large AWS Instance",
"id": 3,
"name": "Large"
}
],
"userAndOrganizationIds": []
}{
"error": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "Authentication is required to access this resource."
}{
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}{
"error": "<string>"
}{
"error": "<string>"
}