Launch plans
Fetch a LaunchPlan definition.
Retrieve an existing launch plan definition.
GET
/
api
/
v1
/
launch_plans
/
{id.project}
/
{id.domain}
/
{id.name}
/
{id.version}
Fetch a LaunchPlan definition.
curl --request GET \
--url https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}import requests
url = "https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}', 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/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"closure": {
"created_at": "2023-11-07T05:31:56Z",
"expected_inputs": {
"parameters": {}
},
"expected_outputs": {
"variables": {}
},
"state": "INACTIVE",
"updated_at": "2023-11-07T05:31:56Z"
},
"id": {
"domain": "<string>",
"name": "<string>",
"org": "<string>",
"project": "<string>",
"resource_type": "UNSPECIFIED",
"version": "<string>"
},
"spec": {
"annotations": {
"values": {}
},
"auth": {
"assumable_iam_role": "<string>",
"kubernetes_service_account": "<string>"
},
"auth_role": {
"assumable_iam_role": "<string>",
"kubernetes_service_account": "<string>"
},
"cluster_assignment": {
"cluster_pool_name": "<string>"
},
"concurrency_policy": {
"behavior": "CONCURRENCY_LIMIT_BEHAVIOR_UNSPECIFIED",
"max": 123
},
"default_inputs": {
"parameters": {}
},
"entity_metadata": {
"launch_conditions": {
"@type": "<string>"
},
"notifications": [
{
"email": {
"recipients_email": [
"<string>"
],
"template": "<string>"
},
"pager_duty": {
"recipients_email": [
"<string>"
],
"template": "<string>"
},
"phases": [
"UNDEFINED"
],
"slack": {
"recipients_email": [
"<string>"
],
"template": "<string>"
}
}
],
"schedule": {
"cron_expression": "<string>",
"cron_schedule": {
"offset": "<string>",
"schedule": "<string>"
},
"kickoff_time_input_arg": "<string>",
"rate": {
"unit": "MINUTE",
"value": 123
}
}
},
"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>"
}
],
"fixed_inputs": {
"literals": {}
},
"interruptible": true,
"labels": {
"values": {}
},
"max_parallelism": 123,
"overwrite_cache": true,
"quality_of_service": {
"spec": {
"queueing_budget": "<string>"
},
"tier": "UNDEFINED"
},
"raw_output_data_config": {
"output_location_prefix": "<string>"
},
"role": "<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"
}
]
},
"workflow_id": {
"domain": "<string>",
"name": "<string>",
"org": "<string>",
"project": "<string>",
"resource_type": "UNSPECIFIED",
"version": "<string>"
}
}
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Path Parameters
Query Parameters
Identifies the specific type of resource that this identifier corresponds to.
- DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects
Available options:
UNSPECIFIED, TASK, WORKFLOW, LAUNCH_PLAN, DATASET Response
A successful response.
A LaunchPlan provides the capability to templatize workflow executions. Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow definition doesn't necessarily have a default value for said input.
Was this page helpful?
⌘I
Fetch a LaunchPlan definition.
curl --request GET \
--url https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}import requests
url = "https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}', 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/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/flows/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"closure": {
"created_at": "2023-11-07T05:31:56Z",
"expected_inputs": {
"parameters": {}
},
"expected_outputs": {
"variables": {}
},
"state": "INACTIVE",
"updated_at": "2023-11-07T05:31:56Z"
},
"id": {
"domain": "<string>",
"name": "<string>",
"org": "<string>",
"project": "<string>",
"resource_type": "UNSPECIFIED",
"version": "<string>"
},
"spec": {
"annotations": {
"values": {}
},
"auth": {
"assumable_iam_role": "<string>",
"kubernetes_service_account": "<string>"
},
"auth_role": {
"assumable_iam_role": "<string>",
"kubernetes_service_account": "<string>"
},
"cluster_assignment": {
"cluster_pool_name": "<string>"
},
"concurrency_policy": {
"behavior": "CONCURRENCY_LIMIT_BEHAVIOR_UNSPECIFIED",
"max": 123
},
"default_inputs": {
"parameters": {}
},
"entity_metadata": {
"launch_conditions": {
"@type": "<string>"
},
"notifications": [
{
"email": {
"recipients_email": [
"<string>"
],
"template": "<string>"
},
"pager_duty": {
"recipients_email": [
"<string>"
],
"template": "<string>"
},
"phases": [
"UNDEFINED"
],
"slack": {
"recipients_email": [
"<string>"
],
"template": "<string>"
}
}
],
"schedule": {
"cron_expression": "<string>",
"cron_schedule": {
"offset": "<string>",
"schedule": "<string>"
},
"kickoff_time_input_arg": "<string>",
"rate": {
"unit": "MINUTE",
"value": 123
}
}
},
"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>"
}
],
"fixed_inputs": {
"literals": {}
},
"interruptible": true,
"labels": {
"values": {}
},
"max_parallelism": 123,
"overwrite_cache": true,
"quality_of_service": {
"spec": {
"queueing_budget": "<string>"
},
"tier": "UNDEFINED"
},
"raw_output_data_config": {
"output_location_prefix": "<string>"
},
"role": "<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"
}
]
},
"workflow_id": {
"domain": "<string>",
"name": "<string>",
"org": "<string>",
"project": "<string>",
"resource_type": "UNSPECIFIED",
"version": "<string>"
}
}
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}