List all instances of a given workflow. This API requires an application key scoped with the workflows_read permission.
This endpoint requires the workflows_read authorization scope.
引数
パスパラメーター
名前
種類
説明
workflow_id [required]
string
The ID of the workflow.
クエリ文字列
名前
種類
説明
page[size]
integer
Size for a given page. The maximum allowed value is 100.
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<DD_API_KEY>"DD_APP_KEY="<DD_APP_KEY>"cargo run
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
Get a specific execution of a given workflow. This API requires an application key scoped with the workflows_read permission.
This endpoint requires the workflows_read authorization scope.
// Get a workflow instance returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_workflow_automation::WorkflowAutomationAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=WorkflowAutomationAPI::with_config(configuration);letresp=api.get_workflow_instance("ccf73164-1998-4785-a7a3-8d06c7e5f558".to_string(),"305a472b-71ab-4ce8-8f8d-75db635627b5".to_string(),).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<DD_API_KEY>"DD_APP_KEY="<DD_APP_KEY>"cargo run
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run