mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-07 12:27:47 +00:00
adding powershell sdk docs back
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
---
|
||||
id: v2024-test-invocation
|
||||
title: TestInvocation
|
||||
pagination_label: TestInvocation
|
||||
sidebar_label: TestInvocation
|
||||
sidebar_class_name: powershellsdk
|
||||
keywords: ['powershell', 'PowerShell', 'sdk', 'TestInvocation', 'V2024TestInvocation']
|
||||
slug: /tools/sdk/powershell/v2024/models/test-invocation
|
||||
tags: ['SDK', 'Software Development Kit', 'TestInvocation', 'V2024TestInvocation']
|
||||
---
|
||||
|
||||
|
||||
# TestInvocation
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**TriggerId** | **String** | Trigger ID | [required]
|
||||
**VarInput** | Pointer to [**SystemCollectionsHashtable**]https://learn.microsoft.com/en-us/dotnet/api/system.collections.hashtable?view=net-9.0 | Mock input to use for test invocation. This must adhere to the input schema defined in the trigger being invoked. If this property is omitted, then the default trigger sample payload will be sent. | [optional]
|
||||
**ContentJson** | [**SystemCollectionsHashtable**]https://learn.microsoft.com/en-us/dotnet/api/system.collections.hashtable?view=net-9.0 | JSON map of invocation metadata. | [required]
|
||||
**SubscriptionIds** | Pointer to **[]String** | Only send the test event to the subscription IDs listed. If omitted, the test event will be sent to all subscribers. | [optional]
|
||||
|
||||
## Examples
|
||||
|
||||
- Prepare the resource
|
||||
```powershell
|
||||
$TestInvocation = Initialize-PSSailpoint.V2024TestInvocation -TriggerId idn:access-request-post-approval `
|
||||
-VarInput {identityId=201327fda1c44704ac01181e963d463c} `
|
||||
-ContentJson {workflowId=1234} `
|
||||
-SubscriptionIds [0f11f2a4-7c94-4bf3-a2bd-742580fe3bde]
|
||||
```
|
||||
|
||||
- Convert the resource to JSON
|
||||
```powershell
|
||||
$TestInvocation | ConvertTo-JSON
|
||||
```
|
||||
|
||||
|
||||
[[Back to top]](#)
|
||||
|
||||
Reference in New Issue
Block a user