Skip to content

Latest commit

 

History

History
172 lines (134 loc) · 4.67 KB

Disable-AnsibleNotificationTemplate.md

File metadata and controls

172 lines (134 loc) · 4.67 KB
external help file Module Name online version schema
Jagabata.psm.dll-Help.xml
Jagabata.psm
2.0.0

Disable-AnsibleNotificationTemplate

SYNOPSIS

Disable a NotificationTemplate.

SYNTAX

Disable-AnsibleNotificationTemplate [-Id] <UInt64> [-For] <IResource> [-On] <String[]> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Disable notification at the specified timings (Started, Success, Error and Approval) for the target resource (Organization, Project, InventorySource, JobTemplate, SystemJobTemplate and WorkflowJobTemplate). The timing Approval is only available for Organization and WorkflowJobTemplate.

Implements following Rest API:

  • /api/v2/organizations/{id}/notification_templates_approvals/ (POST)
  • /api/v2/organizations/{id}/notification_templates_error/ (POST)
  • /api/v2/organizations/{id}/notification_templates_started/ (POST)
  • /api/v2/organizations/{id}/notification_templates_success/ (POST)
  • /api/v2/projects/{id}/notification_templates_error/ (POST)
  • /api/v2/projects/{id}/notification_templates_started/ (POST)
  • /api/v2/projects/{id}/notification_templates_success/ (POST)
  • /api/v2/inventory_sources/{id}/notification_templates_error/ (POST)
  • /api/v2/inventory_sources/{id}/notification_templates_started/ (POST)
  • /api/v2/inventory_sources/{id}/notification_templates_success/ (POST)
  • /api/v2/job_templates/{id}/notification_templates_error/ (POST)
  • /api/v2/job_templates/{id}/notification_templates_started/ (POST)
  • /api/v2/job_templates/{id}/notification_templates_success/ (POST)
  • /api/v2/system_job_templates/{id}/notification_templates_error/ (POST)
  • /api/v2/system_job_templates/{id}/notification_templates_started/ (POST)
  • /api/v2/system_job_templates/{id}/notification_templates_success/ (POST)
  • /api/v2/workflow_job_templates/{id}/notification_templates_approvals/ (POST)
  • /api/v2/workflow_job_templates/{id}/notification_templates_error/ (POST)
  • /api/v2/workflow_job_templates/{id}/notification_templates_started/ (POST)
  • /api/v2/workflow_job_templates/{id}/notification_templates_success/ (POST)

EXAMPLES

Example 1

PS C:\> Disable-AnsibleNotificationTemplate -Id 5 -For (Get-AnsibleJobTemplate -Id 3) -On Success,Error

PARAMETERS

-For

The target resource to be enabled the notification.

The available resources:

  • Organization
  • Project
  • InventorySource
  • JobTemplate
  • SystemJobTemplate
  • WorkflowJobTemplate
Type: IResource
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Id

NotificationTemplate ID.

Type: UInt64
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-On

Timing of notifications to be enabled.

Available timings:

  • Started
  • Success
  • Error
  • Approval (only for Organization and WorkflowJobTemplate resource)
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: Started, Success, Error, Approval

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.UInt64

NotificationTemplate ID.

OUTPUTS

None

NOTES

RELATED LINKS

Get-AnsibleNotificationTemplate

Find-AnsibleNotificationTemplate

New-AnsibleNotificationTemplate

Enable-AnsibleNotificationTemplate

Update-AnsibleNotificationTemplate

Remove-AnsibleNotificationTemplate