Get-BT_TaskMetadata

Syntax

Get-BT_TaskMetadata -Ticket <Ticket> [-Environment <string>] [-PageOffset <int>] [-PageSize <int>] [-RetrieveAll] [-ShouldUnmaskProperties <bool>] [-Id <Object[]>] [-IsDeleted <string>] [-Created <string[]>] [-SortBy_Created_Ascending] [-SortBy_Created_Descending] [-Updated <string[]>] [-SortBy_Updated_Ascending] [-SortBy_Updated_Descending] [-Version <Object[]>] [-SortBy_Version_Ascending] [-SortBy_Version_Descending] [-EditVersion <Object[]>] [-SortBy_EditVersion_Ascending] [-SortBy_EditVersion_Descending] [-SystemUserId <Object[]>] [-WorkgroupOrganizationId <Object[]>] [-DefaultAssignedToUserId <Object[]>] [-DefaultAssignedToTeamId <Object[]>] [-CallbackHandlerName <Object[]>] [-SortBy_CallbackHandlerName_Ascending] [-SortBy_CallbackHandlerName_Descending] [-AdditionalCallbackHandlerNames <Object[]>] [-SortBy_AdditionalCallbackHandlerNames_Ascending] [-SortBy_AdditionalCallbackHandlerNames_Descending] [-Name <Object[]>] [-SortBy_Name_Ascending] [-SortBy_Name_Descending] [-KeyName <Object[]>] [-SortBy_KeyName_Ascending] [-SortBy_KeyName_Descending] [-Description <Object[]>] [-SortBy_Description_Ascending] [-SortBy_Description_Descending] [-Instructions <Object[]>] [-SortBy_Instructions_Ascending] [-SortBy_Instructions_Descending] [-DefaultCategory <string[]>] [-DefaultPriority <string[]>] [-DefaultReminderPeriodInMinutes <Object[]>] [-SortBy_DefaultReminderPeriodInMinutes_Ascending] [-SortBy_DefaultReminderPeriodInMinutes_Descending] [-DefaultDueByType <string[]>] [-DefaultDueBy <string[]>] [-SortBy_DefaultDueBy_Ascending] [-SortBy_DefaultDueBy_Descending] [-DefaultDueByMinutesFromStart <Object[]>] [-SortBy_DefaultDueByMinutesFromStart_Ascending] [-SortBy_DefaultDueByMinutesFromStart_Descending] [-DefaultReminderAt <string[]>] [-SortBy_DefaultReminderAt_Ascending] [-SortBy_DefaultReminderAt_Descending] [-CompletionType <string[]>] [-WorkflowType <Object[]>] [-SortBy_WorkflowType_Ascending] [-SortBy_WorkflowType_Descending] [-ActivityName <Object[]>] [-SortBy_ActivityName_Ascending] [-SortBy_ActivityName_Descending] [-RetryCount <Object[]>] [-SortBy_RetryCount_Ascending] [-SortBy_RetryCount_Descending] [-IsSystemAdded <string>] [-LibraryReleaseLevel <string[]>] [-Visibility <string[]>] [-GroupName <Object[]>] [-SortBy_GroupName_Ascending] [-SortBy_GroupName_Descending] [-ShouldAutomaticallyStart <string>] [-AllowedExecutionEnvironment <string[]>] [<CommonParameters>]

Get-BT_TaskMetadata -Ticket <Ticket> -EndpointUrl <string> [-PageOffset <int>] [-PageSize <int>] [-RetrieveAll] [-ShouldUnmaskProperties <bool>] [-Id <Object[]>] [-IsDeleted <string>] [-Created <string[]>] [-SortBy_Created_Ascending] [-SortBy_Created_Descending] [-Updated <string[]>] [-SortBy_Updated_Ascending] [-SortBy_Updated_Descending] [-Version <Object[]>] [-SortBy_Version_Ascending] [-SortBy_Version_Descending] [-EditVersion <Object[]>] [-SortBy_EditVersion_Ascending] [-SortBy_EditVersion_Descending] [-SystemUserId <Object[]>] [-WorkgroupOrganizationId <Object[]>] [-DefaultAssignedToUserId <Object[]>] [-DefaultAssignedToTeamId <Object[]>] [-CallbackHandlerName <Object[]>] [-SortBy_CallbackHandlerName_Ascending] [-SortBy_CallbackHandlerName_Descending] [-AdditionalCallbackHandlerNames <Object[]>] [-SortBy_AdditionalCallbackHandlerNames_Ascending] [-SortBy_AdditionalCallbackHandlerNames_Descending] [-Name <Object[]>] [-SortBy_Name_Ascending] [-SortBy_Name_Descending] [-KeyName <Object[]>] [-SortBy_KeyName_Ascending] [-SortBy_KeyName_Descending] [-Description <Object[]>] [-SortBy_Description_Ascending] [-SortBy_Description_Descending] [-Instructions <Object[]>] [-SortBy_Instructions_Ascending] [-SortBy_Instructions_Descending] [-DefaultCategory <string[]>] [-DefaultPriority <string[]>] [-DefaultReminderPeriodInMinutes <Object[]>] [-SortBy_DefaultReminderPeriodInMinutes_Ascending] [-SortBy_DefaultReminderPeriodInMinutes_Descending] [-DefaultDueByType <string[]>] [-DefaultDueBy <string[]>] [-SortBy_DefaultDueBy_Ascending] [-SortBy_DefaultDueBy_Descending] [-DefaultDueByMinutesFromStart <Object[]>] [-SortBy_DefaultDueByMinutesFromStart_Ascending] [-SortBy_DefaultDueByMinutesFromStart_Descending] [-DefaultReminderAt <string[]>] [-SortBy_DefaultReminderAt_Ascending] [-SortBy_DefaultReminderAt_Descending] [-CompletionType <string[]>] [-WorkflowType <Object[]>] [-SortBy_WorkflowType_Ascending] [-SortBy_WorkflowType_Descending] [-ActivityName <Object[]>] [-SortBy_ActivityName_Ascending] [-SortBy_ActivityName_Descending] [-RetryCount <Object[]>] [-SortBy_RetryCount_Ascending] [-SortBy_RetryCount_Descending] [-IsSystemAdded <string>] [-LibraryReleaseLevel <string[]>] [-Visibility <string[]>] [-GroupName <Object[]>] [-SortBy_GroupName_Ascending] [-SortBy_GroupName_Descending] [-ShouldAutomaticallyStart <string>] [-AllowedExecutionEnvironment <string[]>] [<CommonParameters>]

Detailed Description

Get-BT_TaskMetadata gets a(an) BT_TaskMetadata. Describes different types of tasks and how they behave. A task represents an IT task, which belongs to an IT service you can launch from MSPComplete. A task metadata contains information about one of your executions of the task, such as the execution status and the customer organization id.

Parameters

Total Parameters: 87

EndpointUrl

Paremeter specs:

Required True
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Ticket

Paremeter specs:

Required True
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ActivityName

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

AdditionalCallbackHandlerNames

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

AllowedExecutionEnvironment

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

CallbackHandlerName

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

CompletionType

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Created

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultAssignedToTeamId

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultAssignedToUserId

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultCategory

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultDueBy

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultDueByMinutesFromStart

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultDueByType

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultPriority

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultReminderAt

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

DefaultReminderPeriodInMinutes

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Description

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

EditVersion

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Environment

Available values are listed below.

Value Description
BT Represents BT
Beta Represents Beta
Develop Represents Develop
Release Represents Release
Test Represents Test
China Represents China
Germany Represents Germany
Alpha Represents Alpha
Today Represents Today
Sandbox-02 Represents Sandbox-02
Sandbox-03 Represents Sandbox-03

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

GroupName

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Id

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Instructions

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

IsDeleted

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

IsSystemAdded

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

KeyName

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

LibraryReleaseLevel

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Name

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

PageOffset

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

PageSize

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

RetrieveAll

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

RetryCount

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ShouldAutomaticallyStart

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

ShouldUnmaskProperties

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_ActivityName_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_ActivityName_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_AdditionalCallbackHandlerNames_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_AdditionalCallbackHandlerNames_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_CallbackHandlerName_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_CallbackHandlerName_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Created_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Created_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_DefaultDueBy_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_DefaultDueBy_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_DefaultDueByMinutesFromStart_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_DefaultDueByMinutesFromStart_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_DefaultReminderAt_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_DefaultReminderAt_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_DefaultReminderPeriodInMinutes_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_DefaultReminderPeriodInMinutes_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Description_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Description_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_EditVersion_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_EditVersion_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_GroupName_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_GroupName_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Instructions_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Instructions_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_KeyName_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_KeyName_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Name_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Name_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_RetryCount_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_RetryCount_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Updated_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Updated_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Version_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_Version_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_WorkflowType_Ascending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SortBy_WorkflowType_Descending

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

SystemUserId

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Updated

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Version

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Visibility

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

WorkflowType

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

WorkgroupOrganizationId

Paremeter specs:

Required False
ValueFromPipeline False
ValueFromPipelineByPropertyName False

Outputs

System.Object

Notes

Task metadata and task instance

There are two different types of entities for tasks:

the metadata, called TaskMetadata, which contains information about the task, such as the name and the type of the task

the instance, called TaskInstance, which contains information about one of your executions of the task, such as the execution status and the customer organization id


Public and private MSPComplete tasks

With MSPC, you can create your own custom tasks. While MSPComplete tasks offered by BitTitan do not belong to any workgroup, your private tasks belong to your workgroups.


Examples

-------------------------- Example 1 -------------------------

$offeringMetadataEntities = Get-BT_OfferingMetadata -Ticket $btTicket -KeyName "HealthCheckForAzure"

$offeringMetadataToTaskMetadataEntities = Get-BT_OfferingMetadataToTaskMetadata -Ticket $btTicket -OfferingMetadataId $offeringMetadataEntities[0].Id -SortBy_TaskDefaultExecutionOrder_Ascending

$taskMetadataEntities = Get-BT_TaskMetadata -Ticket $btTicket -Id $offeringMetadataToTaskMetadataEntities.TaskMetadataId