4.8.0 • Published 8 months ago

@dynatrace-sdk/client-automation v4.8.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 months ago

@dynatrace-sdk/client-automation

npm License

Automation API allows working with workflows and various trigger options.

Installation

npm install @dynatrace-sdk/client-automation

Getting help

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.

API reference

Full API reference for the latest version of the SDK is also available at the Dynatrace Developer.

actionExecutionsClient

import { actionExecutionsClient } from '@dynatrace-sdk/client-automation';

getActionExecution

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this action execution.

Returns

Return typeStatus codeDescription
ActionExecution200

Throws

Error TypeError Message
ErrorEnvelopeError
import { actionExecutionsClient } from "@dynatrace-sdk/client-automation";

const data =
  await actionExecutionsClient.getActionExecution({
    id: "...",
  });

getActionExecutionLog

Required scope: automation:workflows:read

Returns the log output of a specific ActionExecution.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this action execution.

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { actionExecutionsClient } from "@dynatrace-sdk/client-automation";

const data =
  await actionExecutionsClient.getActionExecutionLog({
    id: "...",
  });

actionsSampleResultClient

import { actionsSampleResultClient } from '@dynatrace-sdk/client-automation';

getActionSampleResult

Required scope: automation:workflows:read

Parameters

NameType
config.actionIdentifier*requiredstring

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { actionsSampleResultClient } from "@dynatrace-sdk/client-automation";

const data =
  await actionsSampleResultClient.getActionSampleResult({
    actionIdentifier: "...",
  });

businessCalendarsClient

import { businessCalendarsClient } from '@dynatrace-sdk/client-automation';

createBusinessCalendar

Required scope: automation:calendars:write

Parameters

NameType
config.body*requiredBusinessCalendarRequest

Returns

Return typeStatus codeDescription
BusinessCalendarResponse201

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.createBusinessCalendar({
    body: { title: "..." },
  });

deleteBusinessCalendar

Required scope: automation:calendars:write

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this business calendar.

Returns

Return typeStatus codeDescription
void204No response body

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.deleteBusinessCalendar({
    id: "...",
  });

duplicateBusinessCalendar

Required scope: automation:calendars:write

Parameters

NameTypeDescription
config.body*requiredDuplicationRequest
config.id*requiredstringA UUID string identifying this business calendar.

Returns

Return typeStatus codeDescription
BusinessCalendarResponse201

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.duplicateBusinessCalendar({
    id: "...",
    body: {},
  });

getBusinessCalendar

Required scope: automation:calendars:read

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this business calendar.

Returns

Return typeStatus codeDescription
BusinessCalendarResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.getBusinessCalendar({
    id: "...",
  });

getBusinessCalendarHistoryRecord

Required scope: automation:calendars:read

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this business calendar.
config.version*requiredstring

Returns

Return typeStatus codeDescription
BusinessCalendarResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.getBusinessCalendarHistoryRecord(
    { id: "...", version: "..." },
  );

getBusinessCalendarHistoryRecords

Required scope: automation:calendars:read

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this business calendar.

Returns

Return typeStatus codeDescription
PaginatedChangeHistory200

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.getBusinessCalendarHistoryRecords(
    { id: "..." },
  );

getBusinessCalendars

Required scope: automation:calendars:read

Parameters

NameTypeDescription
config.limitnumberNumber of results to return per page.
config.offsetnumberThe initial index from which to return the results.
config.orderingstringWhich field to use when ordering the results.
config.searchstringA search term.

Returns

Return typeStatus codeDescription
PaginatedBusinessCalendarResponseList200

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.getBusinessCalendars();

patchBusinessCalendar

Required scope: automation:calendars:write

Parameters

NameTypeDescription
config.body*requiredPatchedBusinessCalendarRequest
config.id*requiredstringA UUID string identifying this business calendar.

Returns

Return typeStatus codeDescription
BusinessCalendarResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.patchBusinessCalendar({
    id: "...",
    body: {},
  });

restoreBusinessCalendarHistoryRecord

Required scope: automation:calendars:write

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this business calendar.
config.version*requiredstring

Returns

Return typeStatus codeDescription
BusinessCalendarResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.restoreBusinessCalendarHistoryRecord(
    { id: "...", version: "..." },
  );

updateBusinessCalendar

Required scope: automation:calendars:write

Parameters

NameTypeDescription
config.body*requiredBusinessCalendarRequest
config.id*requiredstringA UUID string identifying this business calendar.

Returns

Return typeStatus codeDescription
BusinessCalendarResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { businessCalendarsClient } from "@dynatrace-sdk/client-automation";

const data =
  await businessCalendarsClient.updateBusinessCalendar({
    id: "...",
    body: { title: "..." },
  });

eventTriggersClient

import { eventTriggersClient } from '@dynatrace-sdk/client-automation';

previewFilter

Required scope: automation:workflows:read

Parameters

NameType
config.body*requiredEventTriggerPreviewRequest

Returns

Return typeStatus codeDescription
EventTriggerPreviewResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { eventTriggersClient } from "@dynatrace-sdk/client-automation";

const data = await eventTriggersClient.previewFilter({
  body: {
    triggerConfiguration: {
      type: EventQueryTriggerConfigType.Event,
      value: { query: "..." },
    },
  },
});

executionsClient

import { executionsClient } from '@dynatrace-sdk/client-automation';

cancelExecution

Required scope: automation:workflows:run

Tries to cancel an Execution. Can only be done, if the Execution is in an active state.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this execution.

Returns

Return typeStatus codeDescription
void204No response body

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.cancelExecution({
  id: "...",
});

cancelTaskExecution

Required scope: automation:workflows:run

Cancels task execution. Canceling action executions cause the task to be cancelled, which causes the workflow to be canceled.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.executionId*requiredstring
config.id*requiredstringTask name

Returns

Return typeStatus codeDescription
void200No response body

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.cancelTaskExecution({
  executionId: "...",
  id: "...",
});

getAllEventLogs

Required scope: automation:workflows:read

Get all event logs

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this execution.

Returns

Return typeStatus codeDescription
EventLogs200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getAllEventLogs({
  id: "...",
});

getExecution

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this execution.

Returns

Return typeStatus codeDescription
Execution200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getExecution({
  id: "...",
});

getExecutionActions

Required scope: automation:workflows:read

Return list of actions assigned to tasks in a given Execution.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this execution.

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getExecutionActions({
  id: "...",
});

getExecutionLog

Required scope: automation:workflows:read

Gets the execution log

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this execution.

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getExecutionLog({
  id: "...",
});

getExecutions

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.limitnumberNumber of results to return per page.
config.offsetnumberThe initial index from which to return the results.
config.orderingstringWhich field to use when ordering the results.
config.scheduleArray<string>Multiple values may be separated by commas.
config.searchstringA search term.
config.startedAtGtestring
config.startedAtLtestring
config.stateArray<string>Multiple values may be separated by commas.
config.taskstring
config.triggerstring
config.triggerTypestring
config.userArray<string>Multiple values may be separated by commas.
config.workflowArray<string>Multiple values may be separated by commas.

Returns

Return typeStatus codeDescription
PaginatedExecutionList200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getExecutions();

getTaskExecution

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.executionId*requiredstring
config.id*requiredstringTask name

Returns

Return typeStatus codeDescription
TaskExecution200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getTaskExecution({
  executionId: "...",
  id: "...",
});

getTaskExecutionInput

Required scope: automation:workflows:read

Returns merged inputs from all ActionExecutions belonging to the TaskExecution.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.executionId*requiredstring
config.id*requiredstringTask name

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getTaskExecutionInput({
  executionId: "...",
  id: "...",
});

getTaskExecutionLog

Required scope: automation:workflows:read

Returns the log output of a specific task. This can be large as its the STDOUT of the Action as defined by the user.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.executionId*requiredstring
config.id*requiredstringTask name

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getTaskExecutionLog({
  executionId: "...",
  id: "...",
});

getTaskExecutionResult

Required scope: automation:workflows:read

Returns merged results from all ActionExecutions belonging to the TaskExecution.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.executionId*requiredstring
config.id*requiredstringTask name

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getTaskExecutionResult({
  executionId: "...",
  id: "...",
});

getTaskExecutions

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.executionId*requiredstring

Returns

Return typeStatus codeDescription
TaskExecutions200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getTaskExecutions({
  executionId: "...",
});

getTransitions

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.executionId*requiredstring

Returns

Return typeStatus codeDescription
TaskTransitions200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.getTransitions({
  executionId: "...",
});

pauseExecution

Required scope: automation:workflows:run

Pauses an Execution. Can only be done, if the Execution is in an active state.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this execution.

Returns

Return typeStatus codeDescription
void204No response body

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.pauseExecution({
  id: "...",
});

previewTaskInput

Required scope: automation:workflows:read

Returns preview expression by given task id from the workflow definition

Parameters

NameType
config.body*requiredPreviewTaskInputRequest

Returns

Return typeStatus codeDescription
PreviewTaskInputResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.previewTaskInput({
  body: {
    expression: {},
    task: "...",
    workflow: {
      title: "...",
      throttle: { isLimitHit: false },
    },
  },
});

resumeExecution

Required scope: automation:workflows:run

Resumes an Execution. Can only be done, if the Execution is in an inactive state.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this execution.

Returns

Return typeStatus codeDescription
void204No response body

Throws

Error TypeError Message
ErrorEnvelopeError
import { executionsClient } from "@dynatrace-sdk/client-automation";

const data = await executionsClient.resumeExecution({
  id: "...",
});

schedulesClient

import { schedulesClient } from '@dynatrace-sdk/client-automation';

getCountries

Required scope: automation:workflows:read

Returns the list of countries that can be used to look up the holiday calendar

Returns

Return typeStatus codeDescription
CountryList200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulesClient.getCountries();

getHolidayCalendar

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.fromstringFrom date in ISO format
config.key*requiredstringThe country name
config.tostringTo date in ISO format

Returns

Return typeStatus codeDescription
HolidayCalendarList200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulesClient.getHolidayCalendar({
  key: "...",
});

getTimezones

Required scope: automation:workflows:read

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulesClient.getTimezones();

previewSchedule

Required scope: automation:workflows:read

Parameters

NameType
config.body*requiredSchedulePreviewRequest

Returns

Return typeStatus codeDescription
SchedulePreviewResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulesClient.previewSchedule({
  body: {
    schedule: {
      trigger: {
        type: CronTriggerType.Cron,
        cron: "0 0 * * *",
      },
    },
  },
});

schedulingRulesClient

import { schedulingRulesClient } from '@dynatrace-sdk/client-automation';

createRule

Required scope: automation:rules:write

Parameters

NameType
config.body*requiredRuleRequest

Returns

Return typeStatus codeDescription
Rule201

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulingRulesClient.createRule({
  body: {
    title: "...",
    ruleType: RuleRequestRuleType.Rrule,
  },
});

deleteRule

Required scope: automation:rules:write

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this rule.

Returns

Return typeStatus codeDescription
void204No response body

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulingRulesClient.deleteRule({
  id: "...",
});

duplicateRule

Required scope: automation:rules:write

Parameters

NameTypeDescription
config.body*requiredDuplicationRequest
config.id*requiredstringA UUID string identifying this rule.

Returns

Return typeStatus codeDescription
Rule201

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulingRulesClient.duplicateRule({
  id: "...",
  body: {},
});

getRule

Required scope: automation:rules:read

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this rule.

Returns

Return typeStatus codeDescription
Rule200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulingRulesClient.getRule({
  id: "...",
});

getRuleHistoryRecord

Required scope: automation:rules:read

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this rule.
config.version*requiredstring

Returns

Return typeStatus codeDescription
Rule200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data =
  await schedulingRulesClient.getRuleHistoryRecord({
    id: "...",
    version: "...",
  });

getRuleHistoryRecords

Required scope: automation:rules:read

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this rule.

Returns

Return typeStatus codeDescription
PaginatedChangeHistory200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data =
  await schedulingRulesClient.getRuleHistoryRecords({
    id: "...",
  });

getRules

Required scope: automation:rules:read

Parameters

NameTypeDescription
config.limitnumberNumber of results to return per page.
config.offsetnumberThe initial index from which to return the results.
config.orderingstringWhich field to use when ordering the results.
config.searchstringA search term.

Returns

Return typeStatus codeDescription
PaginatedRuleList200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulingRulesClient.getRules();

patchRule

Required scope: automation:rules:write

Parameters

NameTypeDescription
config.body*requiredPatchedRuleRequest
config.id*requiredstringA UUID string identifying this rule.

Returns

Return typeStatus codeDescription
Rule200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulingRulesClient.patchRule({
  id: "...",
  body: {},
});

previewRule

Required scope: automation:workflows:read

Parameters

NameType
config.body*requiredRulePreviewRequest

Returns

Return typeStatus codeDescription
RulePreviewResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulingRulesClient.previewRule({
  body: {
    ruleType: RRulePreviewRequestRuleType.Rrule,
    rrule: { freq: RRuleFreq.Yearly, datestart: "..." },
  },
});

restoreRuleHistoryRecord

Required scope: automation:rules:write

Parameters

NameTypeDescription
config.id*requiredstringA UUID string identifying this rule.
config.version*requiredstring

Returns

Return typeStatus codeDescription
Rule200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data =
  await schedulingRulesClient.restoreRuleHistoryRecord({
    id: "...",
    version: "...",
  });

updateRule

Required scope: automation:rules:write

Parameters

NameTypeDescription
config.body*requiredRuleRequest
config.id*requiredstringA UUID string identifying this rule.

Returns

Return typeStatus codeDescription
Rule200

Throws

Error TypeError Message
ErrorEnvelopeError
import { schedulingRulesClient } from "@dynatrace-sdk/client-automation";

const data = await schedulingRulesClient.updateRule({
  id: "...",
  body: {
    title: "...",
    ruleType: RuleRequestRuleType.Rrule,
  },
});

settingsClient

import { settingsClient } from '@dynatrace-sdk/client-automation';

getServiceUsers

Required scope: automation:workflows:read

Get service users who could be used as workflow actor (deprecated).

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { settingsClient } from "@dynatrace-sdk/client-automation";

const data = await settingsClient.getServiceUsers();

getSettings

Required scope: automation:workflows:read

Get system settings

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { settingsClient } from "@dynatrace-sdk/client-automation";

const data = await settingsClient.getSettings();

getUserPermissions

Required scope: automation:workflows:read

Get current user effective permissions.

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { settingsClient } from "@dynatrace-sdk/client-automation";

const data = await settingsClient.getUserPermissions();

getUserSettings

Required scope: automation:workflows:read

Get user-specific settings

Returns

Return typeStatus codeDescription
UserSettings200

Throws

Error TypeError Message
ErrorEnvelopeError
import { settingsClient } from "@dynatrace-sdk/client-automation";

const data = await settingsClient.getUserSettings();

updateAuthorizations

Required scope: automation:workflows:write

Returns

Return typeStatus codeDescription
void202No response body

Throws

Error TypeError Message
ErrorEnvelopeError
import { settingsClient } from "@dynatrace-sdk/client-automation";

const data = await settingsClient.updateAuthorizations();

versionClient

import { versionClient } from '@dynatrace-sdk/client-automation';

getVersion

Required scope: automation:workflows:read

Returns

Return typeStatus codeDescription
VersionResponse200

Throws

Error TypeError Message
ErrorEnvelopeError
import { versionClient } from "@dynatrace-sdk/client-automation";

const data = await versionClient.getVersion();

workflowsClient

import { workflowsClient } from '@dynatrace-sdk/client-automation';

createWorkflow

Required scope: automation:workflows:write

Creates a workflow and sets usages

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.body*requiredWorkflowRequest

Returns

Return typeStatus codeDescription
Workflow201

Throws

Error TypeError Message
ErrorEnvelopeError
import { workflowsClient } from "@dynatrace-sdk/client-automation";

const data = await workflowsClient.createWorkflow({
  body: { title: "...", throttle: { isLimitHit: false } },
});

deleteWorkflow

Required scope: automation:workflows:write

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this workflow.

Returns

Return typeStatus codeDescription
void204No response body

Throws

Error TypeError Message
ErrorEnvelopeError
import { workflowsClient } from "@dynatrace-sdk/client-automation";

const data = await workflowsClient.deleteWorkflow({
  id: "...",
});

duplicateWorkflow

Required scope: automation:workflows:write

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.body*requiredDuplicationRequest
config.id*requiredstringA UUID string identifying this workflow.

Returns

Return typeStatus codeDescription
Workflow201

Throws

Error TypeError Message
ErrorEnvelopeError
import { workflowsClient } from "@dynatrace-sdk/client-automation";

const data = await workflowsClient.duplicateWorkflow({
  id: "...",
  body: {},
});

getWorkflow

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this workflow.

Returns

Return typeStatus codeDescription
Workflow200

Throws

Error TypeError Message
ErrorEnvelopeError
import { workflowsClient } from "@dynatrace-sdk/client-automation";

const data = await workflowsClient.getWorkflow({
  id: "...",
});

getWorkflowActions

Required scope: automation:workflows:read

Return list of actions assigned to tasks in a given Workflow.

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this workflow.

Returns

Return typeStatus codeDescription
void200

Throws

Error TypeError Message
ErrorEnvelopeError
import { workflowsClient } from "@dynatrace-sdk/client-automation";

const data = await workflowsClient.getWorkflowActions({
  id: "...",
});

getWorkflowHistoryRecord

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this workflow.
config.version*requiredstring

Returns

Return typeStatus codeDescription
Workflow200

Throws

Error TypeError Message
ErrorEnvelopeError
import { workflowsClient } from "@dynatrace-sdk/client-automation";

const data = await workflowsClient.getWorkflowHistoryRecord(
  { id: "...", version: "..." },
);

getWorkflowHistoryRecords

Required scope: automation:workflows:read

Parameters

NameTypeDescription
config.adminAccessbooleanAllow access to all workflows/executions - additionally requires automation:workflows:admin
config.id*requiredstringA UUID string identifying this workflow.

Returns

Return typeStatus codeDescription
PaginatedChangeHistory200

Throws

Error TypeError Message
ErrorEnvelopeError
4.8.0

8 months ago

3.1.2

12 months ago

3.1.1

1 year ago

3.1.0

1 year ago

4.5.0

9 months ago

4.6.0

9 months ago

4.0.0

11 months ago

4.3.0

10 months ago

4.2.0

10 months ago

3.0.2

1 year ago

3.0.1

1 year ago

2.4.6

1 year ago

2.4.3

1 year ago

2.4.2

1 year ago

2.4.0

1 year ago

2.2.0

1 year ago

2.1.1

1 year ago

2.0.2

2 years ago

1.6.1

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

2.0.1

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago