Project attributes
Creates or updates custom MatchableAttributesConfiguration at the project level
Update the customized resource attributes associated with a project
PUT
/
api
/
v1
/
project_attributes
/
{attributes.project}
Creates or updates custom MatchableAttributesConfiguration at the project level
curl --request PUT \
--url https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project} \
--header 'Content-Type: application/json' \
--data '
{
"attributes": {
"matching_attributes": {
"cluster_assignment": {
"cluster_pool_name": "<string>"
},
"cluster_resource_attributes": {
"attributes": {}
},
"execution_cluster_label": {
"value": "<string>"
},
"execution_queue_attributes": {
"tags": [
"<string>"
]
},
"plugin_overrides": {
"overrides": [
{
"missing_plugin_behavior": "FAIL",
"plugin_id": [
"<string>"
],
"task_type": "<string>"
}
]
},
"quality_of_service": {
"spec": {
"queueing_budget": "<string>"
},
"tier": "UNDEFINED"
},
"task_resource_attributes": {
"defaults": {
"cpu": "<string>",
"ephemeral_storage": "<string>",
"gpu": "<string>",
"memory": "<string>",
"storage": "<string>"
},
"limits": {
"cpu": "<string>",
"ephemeral_storage": "<string>",
"gpu": "<string>",
"memory": "<string>",
"storage": "<string>"
}
},
"workflow_execution_config": {
"annotations": {
"values": {}
},
"envs": {
"values": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"execution_env_assignments": [
{
"execution_env": {
"extant": {},
"name": "<string>",
"spec": {},
"type": "<string>",
"version": "<string>"
},
"node_ids": [
"<string>"
],
"task_type": "<string>"
}
],
"interruptible": true,
"labels": {
"values": {}
},
"max_parallelism": 123,
"overwrite_cache": true,
"raw_output_data_config": {
"output_location_prefix": "<string>"
},
"security_context": {
"run_as": {
"execution_identity": "<string>",
"iam_role": "<string>",
"k8s_service_account": "<string>",
"oauth2_client": {
"client_id": "<string>",
"client_secret": {
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
}
},
"secrets": [
{
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
],
"tokens": [
{
"client": {
"client_id": "<string>",
"client_secret": {
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
},
"idp_discovery_endpoint": "<string>",
"name": "<string>",
"token_endpoint": "<string>",
"type": "CLIENT_CREDENTIALS"
}
]
}
}
},
"org": "<string>"
}
}
'import requests
url = "https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project}"
payload = { "attributes": {
"matching_attributes": {
"cluster_assignment": { "cluster_pool_name": "<string>" },
"cluster_resource_attributes": { "attributes": {} },
"execution_cluster_label": { "value": "<string>" },
"execution_queue_attributes": { "tags": ["<string>"] },
"plugin_overrides": { "overrides": [
{
"missing_plugin_behavior": "FAIL",
"plugin_id": ["<string>"],
"task_type": "<string>"
}
] },
"quality_of_service": {
"spec": { "queueing_budget": "<string>" },
"tier": "UNDEFINED"
},
"task_resource_attributes": {
"defaults": {
"cpu": "<string>",
"ephemeral_storage": "<string>",
"gpu": "<string>",
"memory": "<string>",
"storage": "<string>"
},
"limits": {
"cpu": "<string>",
"ephemeral_storage": "<string>",
"gpu": "<string>",
"memory": "<string>",
"storage": "<string>"
}
},
"workflow_execution_config": {
"annotations": { "values": {} },
"envs": { "values": [
{
"key": "<string>",
"value": "<string>"
}
] },
"execution_env_assignments": [
{
"execution_env": {
"extant": {},
"name": "<string>",
"spec": {},
"type": "<string>",
"version": "<string>"
},
"node_ids": ["<string>"],
"task_type": "<string>"
}
],
"interruptible": True,
"labels": { "values": {} },
"max_parallelism": 123,
"overwrite_cache": True,
"raw_output_data_config": { "output_location_prefix": "<string>" },
"security_context": {
"run_as": {
"execution_identity": "<string>",
"iam_role": "<string>",
"k8s_service_account": "<string>",
"oauth2_client": {
"client_id": "<string>",
"client_secret": {
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
}
},
"secrets": [
{
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
],
"tokens": [
{
"client": {
"client_id": "<string>",
"client_secret": {
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
},
"idp_discovery_endpoint": "<string>",
"name": "<string>",
"token_endpoint": "<string>",
"type": "CLIENT_CREDENTIALS"
}
]
}
}
},
"org": "<string>"
} }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
attributes: {
matching_attributes: {
cluster_assignment: {cluster_pool_name: '<string>'},
cluster_resource_attributes: {attributes: {}},
execution_cluster_label: {value: '<string>'},
execution_queue_attributes: {tags: ['<string>']},
plugin_overrides: {
overrides: [
{
missing_plugin_behavior: 'FAIL',
plugin_id: ['<string>'],
task_type: '<string>'
}
]
},
quality_of_service: {spec: {queueing_budget: '<string>'}, tier: 'UNDEFINED'},
task_resource_attributes: {
defaults: {
cpu: '<string>',
ephemeral_storage: '<string>',
gpu: '<string>',
memory: '<string>',
storage: '<string>'
},
limits: {
cpu: '<string>',
ephemeral_storage: '<string>',
gpu: '<string>',
memory: '<string>',
storage: '<string>'
}
},
workflow_execution_config: {
annotations: {values: {}},
envs: {values: [{key: '<string>', value: '<string>'}]},
execution_env_assignments: [
{
execution_env: {extant: {}, name: '<string>', spec: {}, type: '<string>', version: '<string>'},
node_ids: ['<string>'],
task_type: '<string>'
}
],
interruptible: true,
labels: {values: {}},
max_parallelism: 123,
overwrite_cache: true,
raw_output_data_config: {output_location_prefix: '<string>'},
security_context: {
run_as: {
execution_identity: '<string>',
iam_role: '<string>',
k8s_service_account: '<string>',
oauth2_client: {
client_id: '<string>',
client_secret: {
env_var: '<string>',
group: '<string>',
group_version: '<string>',
key: '<string>',
mount_requirement: 'ANY'
}
}
},
secrets: [
{
env_var: '<string>',
group: '<string>',
group_version: '<string>',
key: '<string>',
mount_requirement: 'ANY'
}
],
tokens: [
{
client: {
client_id: '<string>',
client_secret: {
env_var: '<string>',
group: '<string>',
group_version: '<string>',
key: '<string>',
mount_requirement: 'ANY'
}
},
idp_discovery_endpoint: '<string>',
name: '<string>',
token_endpoint: '<string>',
type: 'CLIENT_CREDENTIALS'
}
]
}
}
},
org: '<string>'
}
})
};
fetch('https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project}', 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/flows/api/v1/project_attributes/{attributes.project}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'attributes' => [
'matching_attributes' => [
'cluster_assignment' => [
'cluster_pool_name' => '<string>'
],
'cluster_resource_attributes' => [
'attributes' => [
]
],
'execution_cluster_label' => [
'value' => '<string>'
],
'execution_queue_attributes' => [
'tags' => [
'<string>'
]
],
'plugin_overrides' => [
'overrides' => [
[
'missing_plugin_behavior' => 'FAIL',
'plugin_id' => [
'<string>'
],
'task_type' => '<string>'
]
]
],
'quality_of_service' => [
'spec' => [
'queueing_budget' => '<string>'
],
'tier' => 'UNDEFINED'
],
'task_resource_attributes' => [
'defaults' => [
'cpu' => '<string>',
'ephemeral_storage' => '<string>',
'gpu' => '<string>',
'memory' => '<string>',
'storage' => '<string>'
],
'limits' => [
'cpu' => '<string>',
'ephemeral_storage' => '<string>',
'gpu' => '<string>',
'memory' => '<string>',
'storage' => '<string>'
]
],
'workflow_execution_config' => [
'annotations' => [
'values' => [
]
],
'envs' => [
'values' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
],
'execution_env_assignments' => [
[
'execution_env' => [
'extant' => [
],
'name' => '<string>',
'spec' => [
],
'type' => '<string>',
'version' => '<string>'
],
'node_ids' => [
'<string>'
],
'task_type' => '<string>'
]
],
'interruptible' => true,
'labels' => [
'values' => [
]
],
'max_parallelism' => 123,
'overwrite_cache' => true,
'raw_output_data_config' => [
'output_location_prefix' => '<string>'
],
'security_context' => [
'run_as' => [
'execution_identity' => '<string>',
'iam_role' => '<string>',
'k8s_service_account' => '<string>',
'oauth2_client' => [
'client_id' => '<string>',
'client_secret' => [
'env_var' => '<string>',
'group' => '<string>',
'group_version' => '<string>',
'key' => '<string>',
'mount_requirement' => 'ANY'
]
]
],
'secrets' => [
[
'env_var' => '<string>',
'group' => '<string>',
'group_version' => '<string>',
'key' => '<string>',
'mount_requirement' => 'ANY'
]
],
'tokens' => [
[
'client' => [
'client_id' => '<string>',
'client_secret' => [
'env_var' => '<string>',
'group' => '<string>',
'group_version' => '<string>',
'key' => '<string>',
'mount_requirement' => 'ANY'
]
],
'idp_discovery_endpoint' => '<string>',
'name' => '<string>',
'token_endpoint' => '<string>',
'type' => 'CLIENT_CREDENTIALS'
]
]
]
]
],
'org' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/flows/api/v1/project_attributes/{attributes.project}"
payload := strings.NewReader("{\n \"attributes\": {\n \"matching_attributes\": {\n \"cluster_assignment\": {\n \"cluster_pool_name\": \"<string>\"\n },\n \"cluster_resource_attributes\": {\n \"attributes\": {}\n },\n \"execution_cluster_label\": {\n \"value\": \"<string>\"\n },\n \"execution_queue_attributes\": {\n \"tags\": [\n \"<string>\"\n ]\n },\n \"plugin_overrides\": {\n \"overrides\": [\n {\n \"missing_plugin_behavior\": \"FAIL\",\n \"plugin_id\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ]\n },\n \"quality_of_service\": {\n \"spec\": {\n \"queueing_budget\": \"<string>\"\n },\n \"tier\": \"UNDEFINED\"\n },\n \"task_resource_attributes\": {\n \"defaults\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n },\n \"limits\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n }\n },\n \"workflow_execution_config\": {\n \"annotations\": {\n \"values\": {}\n },\n \"envs\": {\n \"values\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"execution_env_assignments\": [\n {\n \"execution_env\": {\n \"extant\": {},\n \"name\": \"<string>\",\n \"spec\": {},\n \"type\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"node_ids\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ],\n \"interruptible\": true,\n \"labels\": {\n \"values\": {}\n },\n \"max_parallelism\": 123,\n \"overwrite_cache\": true,\n \"raw_output_data_config\": {\n \"output_location_prefix\": \"<string>\"\n },\n \"security_context\": {\n \"run_as\": {\n \"execution_identity\": \"<string>\",\n \"iam_role\": \"<string>\",\n \"k8s_service_account\": \"<string>\",\n \"oauth2_client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n }\n },\n \"secrets\": [\n {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n ],\n \"tokens\": [\n {\n \"client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n },\n \"idp_discovery_endpoint\": \"<string>\",\n \"name\": \"<string>\",\n \"token_endpoint\": \"<string>\",\n \"type\": \"CLIENT_CREDENTIALS\"\n }\n ]\n }\n }\n },\n \"org\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project}")
.header("Content-Type", "application/json")
.body("{\n \"attributes\": {\n \"matching_attributes\": {\n \"cluster_assignment\": {\n \"cluster_pool_name\": \"<string>\"\n },\n \"cluster_resource_attributes\": {\n \"attributes\": {}\n },\n \"execution_cluster_label\": {\n \"value\": \"<string>\"\n },\n \"execution_queue_attributes\": {\n \"tags\": [\n \"<string>\"\n ]\n },\n \"plugin_overrides\": {\n \"overrides\": [\n {\n \"missing_plugin_behavior\": \"FAIL\",\n \"plugin_id\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ]\n },\n \"quality_of_service\": {\n \"spec\": {\n \"queueing_budget\": \"<string>\"\n },\n \"tier\": \"UNDEFINED\"\n },\n \"task_resource_attributes\": {\n \"defaults\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n },\n \"limits\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n }\n },\n \"workflow_execution_config\": {\n \"annotations\": {\n \"values\": {}\n },\n \"envs\": {\n \"values\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"execution_env_assignments\": [\n {\n \"execution_env\": {\n \"extant\": {},\n \"name\": \"<string>\",\n \"spec\": {},\n \"type\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"node_ids\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ],\n \"interruptible\": true,\n \"labels\": {\n \"values\": {}\n },\n \"max_parallelism\": 123,\n \"overwrite_cache\": true,\n \"raw_output_data_config\": {\n \"output_location_prefix\": \"<string>\"\n },\n \"security_context\": {\n \"run_as\": {\n \"execution_identity\": \"<string>\",\n \"iam_role\": \"<string>\",\n \"k8s_service_account\": \"<string>\",\n \"oauth2_client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n }\n },\n \"secrets\": [\n {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n ],\n \"tokens\": [\n {\n \"client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n },\n \"idp_discovery_endpoint\": \"<string>\",\n \"name\": \"<string>\",\n \"token_endpoint\": \"<string>\",\n \"type\": \"CLIENT_CREDENTIALS\"\n }\n ]\n }\n }\n },\n \"org\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"attributes\": {\n \"matching_attributes\": {\n \"cluster_assignment\": {\n \"cluster_pool_name\": \"<string>\"\n },\n \"cluster_resource_attributes\": {\n \"attributes\": {}\n },\n \"execution_cluster_label\": {\n \"value\": \"<string>\"\n },\n \"execution_queue_attributes\": {\n \"tags\": [\n \"<string>\"\n ]\n },\n \"plugin_overrides\": {\n \"overrides\": [\n {\n \"missing_plugin_behavior\": \"FAIL\",\n \"plugin_id\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ]\n },\n \"quality_of_service\": {\n \"spec\": {\n \"queueing_budget\": \"<string>\"\n },\n \"tier\": \"UNDEFINED\"\n },\n \"task_resource_attributes\": {\n \"defaults\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n },\n \"limits\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n }\n },\n \"workflow_execution_config\": {\n \"annotations\": {\n \"values\": {}\n },\n \"envs\": {\n \"values\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"execution_env_assignments\": [\n {\n \"execution_env\": {\n \"extant\": {},\n \"name\": \"<string>\",\n \"spec\": {},\n \"type\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"node_ids\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ],\n \"interruptible\": true,\n \"labels\": {\n \"values\": {}\n },\n \"max_parallelism\": 123,\n \"overwrite_cache\": true,\n \"raw_output_data_config\": {\n \"output_location_prefix\": \"<string>\"\n },\n \"security_context\": {\n \"run_as\": {\n \"execution_identity\": \"<string>\",\n \"iam_role\": \"<string>\",\n \"k8s_service_account\": \"<string>\",\n \"oauth2_client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n }\n },\n \"secrets\": [\n {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n ],\n \"tokens\": [\n {\n \"client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n },\n \"idp_discovery_endpoint\": \"<string>\",\n \"name\": \"<string>\",\n \"token_endpoint\": \"<string>\",\n \"type\": \"CLIENT_CREDENTIALS\"\n }\n ]\n }\n }\n },\n \"org\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Last modified on August 19, 2026
Related topics
Creates or updates custom MatchableAttributesConfiguration for a project and domain.Creates or updates custom MatchableAttributesConfiguration for a project, domain and workflow.Deletes custom MatchableAttributesConfiguration for a project and domain.Fetches custom MatchableAttributesConfiguration for a project and domain.Was this page helpful?
⌘I
Creates or updates custom MatchableAttributesConfiguration at the project level
curl --request PUT \
--url https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project} \
--header 'Content-Type: application/json' \
--data '
{
"attributes": {
"matching_attributes": {
"cluster_assignment": {
"cluster_pool_name": "<string>"
},
"cluster_resource_attributes": {
"attributes": {}
},
"execution_cluster_label": {
"value": "<string>"
},
"execution_queue_attributes": {
"tags": [
"<string>"
]
},
"plugin_overrides": {
"overrides": [
{
"missing_plugin_behavior": "FAIL",
"plugin_id": [
"<string>"
],
"task_type": "<string>"
}
]
},
"quality_of_service": {
"spec": {
"queueing_budget": "<string>"
},
"tier": "UNDEFINED"
},
"task_resource_attributes": {
"defaults": {
"cpu": "<string>",
"ephemeral_storage": "<string>",
"gpu": "<string>",
"memory": "<string>",
"storage": "<string>"
},
"limits": {
"cpu": "<string>",
"ephemeral_storage": "<string>",
"gpu": "<string>",
"memory": "<string>",
"storage": "<string>"
}
},
"workflow_execution_config": {
"annotations": {
"values": {}
},
"envs": {
"values": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"execution_env_assignments": [
{
"execution_env": {
"extant": {},
"name": "<string>",
"spec": {},
"type": "<string>",
"version": "<string>"
},
"node_ids": [
"<string>"
],
"task_type": "<string>"
}
],
"interruptible": true,
"labels": {
"values": {}
},
"max_parallelism": 123,
"overwrite_cache": true,
"raw_output_data_config": {
"output_location_prefix": "<string>"
},
"security_context": {
"run_as": {
"execution_identity": "<string>",
"iam_role": "<string>",
"k8s_service_account": "<string>",
"oauth2_client": {
"client_id": "<string>",
"client_secret": {
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
}
},
"secrets": [
{
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
],
"tokens": [
{
"client": {
"client_id": "<string>",
"client_secret": {
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
},
"idp_discovery_endpoint": "<string>",
"name": "<string>",
"token_endpoint": "<string>",
"type": "CLIENT_CREDENTIALS"
}
]
}
}
},
"org": "<string>"
}
}
'import requests
url = "https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project}"
payload = { "attributes": {
"matching_attributes": {
"cluster_assignment": { "cluster_pool_name": "<string>" },
"cluster_resource_attributes": { "attributes": {} },
"execution_cluster_label": { "value": "<string>" },
"execution_queue_attributes": { "tags": ["<string>"] },
"plugin_overrides": { "overrides": [
{
"missing_plugin_behavior": "FAIL",
"plugin_id": ["<string>"],
"task_type": "<string>"
}
] },
"quality_of_service": {
"spec": { "queueing_budget": "<string>" },
"tier": "UNDEFINED"
},
"task_resource_attributes": {
"defaults": {
"cpu": "<string>",
"ephemeral_storage": "<string>",
"gpu": "<string>",
"memory": "<string>",
"storage": "<string>"
},
"limits": {
"cpu": "<string>",
"ephemeral_storage": "<string>",
"gpu": "<string>",
"memory": "<string>",
"storage": "<string>"
}
},
"workflow_execution_config": {
"annotations": { "values": {} },
"envs": { "values": [
{
"key": "<string>",
"value": "<string>"
}
] },
"execution_env_assignments": [
{
"execution_env": {
"extant": {},
"name": "<string>",
"spec": {},
"type": "<string>",
"version": "<string>"
},
"node_ids": ["<string>"],
"task_type": "<string>"
}
],
"interruptible": True,
"labels": { "values": {} },
"max_parallelism": 123,
"overwrite_cache": True,
"raw_output_data_config": { "output_location_prefix": "<string>" },
"security_context": {
"run_as": {
"execution_identity": "<string>",
"iam_role": "<string>",
"k8s_service_account": "<string>",
"oauth2_client": {
"client_id": "<string>",
"client_secret": {
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
}
},
"secrets": [
{
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
],
"tokens": [
{
"client": {
"client_id": "<string>",
"client_secret": {
"env_var": "<string>",
"group": "<string>",
"group_version": "<string>",
"key": "<string>",
"mount_requirement": "ANY"
}
},
"idp_discovery_endpoint": "<string>",
"name": "<string>",
"token_endpoint": "<string>",
"type": "CLIENT_CREDENTIALS"
}
]
}
}
},
"org": "<string>"
} }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
attributes: {
matching_attributes: {
cluster_assignment: {cluster_pool_name: '<string>'},
cluster_resource_attributes: {attributes: {}},
execution_cluster_label: {value: '<string>'},
execution_queue_attributes: {tags: ['<string>']},
plugin_overrides: {
overrides: [
{
missing_plugin_behavior: 'FAIL',
plugin_id: ['<string>'],
task_type: '<string>'
}
]
},
quality_of_service: {spec: {queueing_budget: '<string>'}, tier: 'UNDEFINED'},
task_resource_attributes: {
defaults: {
cpu: '<string>',
ephemeral_storage: '<string>',
gpu: '<string>',
memory: '<string>',
storage: '<string>'
},
limits: {
cpu: '<string>',
ephemeral_storage: '<string>',
gpu: '<string>',
memory: '<string>',
storage: '<string>'
}
},
workflow_execution_config: {
annotations: {values: {}},
envs: {values: [{key: '<string>', value: '<string>'}]},
execution_env_assignments: [
{
execution_env: {extant: {}, name: '<string>', spec: {}, type: '<string>', version: '<string>'},
node_ids: ['<string>'],
task_type: '<string>'
}
],
interruptible: true,
labels: {values: {}},
max_parallelism: 123,
overwrite_cache: true,
raw_output_data_config: {output_location_prefix: '<string>'},
security_context: {
run_as: {
execution_identity: '<string>',
iam_role: '<string>',
k8s_service_account: '<string>',
oauth2_client: {
client_id: '<string>',
client_secret: {
env_var: '<string>',
group: '<string>',
group_version: '<string>',
key: '<string>',
mount_requirement: 'ANY'
}
}
},
secrets: [
{
env_var: '<string>',
group: '<string>',
group_version: '<string>',
key: '<string>',
mount_requirement: 'ANY'
}
],
tokens: [
{
client: {
client_id: '<string>',
client_secret: {
env_var: '<string>',
group: '<string>',
group_version: '<string>',
key: '<string>',
mount_requirement: 'ANY'
}
},
idp_discovery_endpoint: '<string>',
name: '<string>',
token_endpoint: '<string>',
type: 'CLIENT_CREDENTIALS'
}
]
}
}
},
org: '<string>'
}
})
};
fetch('https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project}', 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/flows/api/v1/project_attributes/{attributes.project}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'attributes' => [
'matching_attributes' => [
'cluster_assignment' => [
'cluster_pool_name' => '<string>'
],
'cluster_resource_attributes' => [
'attributes' => [
]
],
'execution_cluster_label' => [
'value' => '<string>'
],
'execution_queue_attributes' => [
'tags' => [
'<string>'
]
],
'plugin_overrides' => [
'overrides' => [
[
'missing_plugin_behavior' => 'FAIL',
'plugin_id' => [
'<string>'
],
'task_type' => '<string>'
]
]
],
'quality_of_service' => [
'spec' => [
'queueing_budget' => '<string>'
],
'tier' => 'UNDEFINED'
],
'task_resource_attributes' => [
'defaults' => [
'cpu' => '<string>',
'ephemeral_storage' => '<string>',
'gpu' => '<string>',
'memory' => '<string>',
'storage' => '<string>'
],
'limits' => [
'cpu' => '<string>',
'ephemeral_storage' => '<string>',
'gpu' => '<string>',
'memory' => '<string>',
'storage' => '<string>'
]
],
'workflow_execution_config' => [
'annotations' => [
'values' => [
]
],
'envs' => [
'values' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
],
'execution_env_assignments' => [
[
'execution_env' => [
'extant' => [
],
'name' => '<string>',
'spec' => [
],
'type' => '<string>',
'version' => '<string>'
],
'node_ids' => [
'<string>'
],
'task_type' => '<string>'
]
],
'interruptible' => true,
'labels' => [
'values' => [
]
],
'max_parallelism' => 123,
'overwrite_cache' => true,
'raw_output_data_config' => [
'output_location_prefix' => '<string>'
],
'security_context' => [
'run_as' => [
'execution_identity' => '<string>',
'iam_role' => '<string>',
'k8s_service_account' => '<string>',
'oauth2_client' => [
'client_id' => '<string>',
'client_secret' => [
'env_var' => '<string>',
'group' => '<string>',
'group_version' => '<string>',
'key' => '<string>',
'mount_requirement' => 'ANY'
]
]
],
'secrets' => [
[
'env_var' => '<string>',
'group' => '<string>',
'group_version' => '<string>',
'key' => '<string>',
'mount_requirement' => 'ANY'
]
],
'tokens' => [
[
'client' => [
'client_id' => '<string>',
'client_secret' => [
'env_var' => '<string>',
'group' => '<string>',
'group_version' => '<string>',
'key' => '<string>',
'mount_requirement' => 'ANY'
]
],
'idp_discovery_endpoint' => '<string>',
'name' => '<string>',
'token_endpoint' => '<string>',
'type' => 'CLIENT_CREDENTIALS'
]
]
]
]
],
'org' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/flows/api/v1/project_attributes/{attributes.project}"
payload := strings.NewReader("{\n \"attributes\": {\n \"matching_attributes\": {\n \"cluster_assignment\": {\n \"cluster_pool_name\": \"<string>\"\n },\n \"cluster_resource_attributes\": {\n \"attributes\": {}\n },\n \"execution_cluster_label\": {\n \"value\": \"<string>\"\n },\n \"execution_queue_attributes\": {\n \"tags\": [\n \"<string>\"\n ]\n },\n \"plugin_overrides\": {\n \"overrides\": [\n {\n \"missing_plugin_behavior\": \"FAIL\",\n \"plugin_id\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ]\n },\n \"quality_of_service\": {\n \"spec\": {\n \"queueing_budget\": \"<string>\"\n },\n \"tier\": \"UNDEFINED\"\n },\n \"task_resource_attributes\": {\n \"defaults\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n },\n \"limits\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n }\n },\n \"workflow_execution_config\": {\n \"annotations\": {\n \"values\": {}\n },\n \"envs\": {\n \"values\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"execution_env_assignments\": [\n {\n \"execution_env\": {\n \"extant\": {},\n \"name\": \"<string>\",\n \"spec\": {},\n \"type\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"node_ids\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ],\n \"interruptible\": true,\n \"labels\": {\n \"values\": {}\n },\n \"max_parallelism\": 123,\n \"overwrite_cache\": true,\n \"raw_output_data_config\": {\n \"output_location_prefix\": \"<string>\"\n },\n \"security_context\": {\n \"run_as\": {\n \"execution_identity\": \"<string>\",\n \"iam_role\": \"<string>\",\n \"k8s_service_account\": \"<string>\",\n \"oauth2_client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n }\n },\n \"secrets\": [\n {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n ],\n \"tokens\": [\n {\n \"client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n },\n \"idp_discovery_endpoint\": \"<string>\",\n \"name\": \"<string>\",\n \"token_endpoint\": \"<string>\",\n \"type\": \"CLIENT_CREDENTIALS\"\n }\n ]\n }\n }\n },\n \"org\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project}")
.header("Content-Type", "application/json")
.body("{\n \"attributes\": {\n \"matching_attributes\": {\n \"cluster_assignment\": {\n \"cluster_pool_name\": \"<string>\"\n },\n \"cluster_resource_attributes\": {\n \"attributes\": {}\n },\n \"execution_cluster_label\": {\n \"value\": \"<string>\"\n },\n \"execution_queue_attributes\": {\n \"tags\": [\n \"<string>\"\n ]\n },\n \"plugin_overrides\": {\n \"overrides\": [\n {\n \"missing_plugin_behavior\": \"FAIL\",\n \"plugin_id\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ]\n },\n \"quality_of_service\": {\n \"spec\": {\n \"queueing_budget\": \"<string>\"\n },\n \"tier\": \"UNDEFINED\"\n },\n \"task_resource_attributes\": {\n \"defaults\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n },\n \"limits\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n }\n },\n \"workflow_execution_config\": {\n \"annotations\": {\n \"values\": {}\n },\n \"envs\": {\n \"values\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"execution_env_assignments\": [\n {\n \"execution_env\": {\n \"extant\": {},\n \"name\": \"<string>\",\n \"spec\": {},\n \"type\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"node_ids\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ],\n \"interruptible\": true,\n \"labels\": {\n \"values\": {}\n },\n \"max_parallelism\": 123,\n \"overwrite_cache\": true,\n \"raw_output_data_config\": {\n \"output_location_prefix\": \"<string>\"\n },\n \"security_context\": {\n \"run_as\": {\n \"execution_identity\": \"<string>\",\n \"iam_role\": \"<string>\",\n \"k8s_service_account\": \"<string>\",\n \"oauth2_client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n }\n },\n \"secrets\": [\n {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n ],\n \"tokens\": [\n {\n \"client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n },\n \"idp_discovery_endpoint\": \"<string>\",\n \"name\": \"<string>\",\n \"token_endpoint\": \"<string>\",\n \"type\": \"CLIENT_CREDENTIALS\"\n }\n ]\n }\n }\n },\n \"org\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/flows/api/v1/project_attributes/{attributes.project}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"attributes\": {\n \"matching_attributes\": {\n \"cluster_assignment\": {\n \"cluster_pool_name\": \"<string>\"\n },\n \"cluster_resource_attributes\": {\n \"attributes\": {}\n },\n \"execution_cluster_label\": {\n \"value\": \"<string>\"\n },\n \"execution_queue_attributes\": {\n \"tags\": [\n \"<string>\"\n ]\n },\n \"plugin_overrides\": {\n \"overrides\": [\n {\n \"missing_plugin_behavior\": \"FAIL\",\n \"plugin_id\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ]\n },\n \"quality_of_service\": {\n \"spec\": {\n \"queueing_budget\": \"<string>\"\n },\n \"tier\": \"UNDEFINED\"\n },\n \"task_resource_attributes\": {\n \"defaults\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n },\n \"limits\": {\n \"cpu\": \"<string>\",\n \"ephemeral_storage\": \"<string>\",\n \"gpu\": \"<string>\",\n \"memory\": \"<string>\",\n \"storage\": \"<string>\"\n }\n },\n \"workflow_execution_config\": {\n \"annotations\": {\n \"values\": {}\n },\n \"envs\": {\n \"values\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"execution_env_assignments\": [\n {\n \"execution_env\": {\n \"extant\": {},\n \"name\": \"<string>\",\n \"spec\": {},\n \"type\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"node_ids\": [\n \"<string>\"\n ],\n \"task_type\": \"<string>\"\n }\n ],\n \"interruptible\": true,\n \"labels\": {\n \"values\": {}\n },\n \"max_parallelism\": 123,\n \"overwrite_cache\": true,\n \"raw_output_data_config\": {\n \"output_location_prefix\": \"<string>\"\n },\n \"security_context\": {\n \"run_as\": {\n \"execution_identity\": \"<string>\",\n \"iam_role\": \"<string>\",\n \"k8s_service_account\": \"<string>\",\n \"oauth2_client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n }\n },\n \"secrets\": [\n {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n ],\n \"tokens\": [\n {\n \"client\": {\n \"client_id\": \"<string>\",\n \"client_secret\": {\n \"env_var\": \"<string>\",\n \"group\": \"<string>\",\n \"group_version\": \"<string>\",\n \"key\": \"<string>\",\n \"mount_requirement\": \"ANY\"\n }\n },\n \"idp_discovery_endpoint\": \"<string>\",\n \"name\": \"<string>\",\n \"token_endpoint\": \"<string>\",\n \"type\": \"CLIENT_CREDENTIALS\"\n }\n ]\n }\n }\n },\n \"org\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}