New-ASPackageRequest
Edition:PowerShell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.
A PowerShell API to be called by an external system. When you send a request through an external system, request will automatically lands in the package backlog in the AdminStudio and will avoid manual communication for the package request.
Note:When a duplicate package request is sent to AdminStudio, the below warning message is displayed:
“Package request not added. A request for this application already exists in the AdminStudio Backlog”.
Examples
New-ASPackageRequest -Product 'Firefox' -Source 'FlexraOne' -Vendor 'Mozilla' -Priority '2' -Version
'15.0'
New-ASPackageRequest -Product "7-zip" -Vendor "Igor Pavlov" -Source "NewRequest" -CatalogPackageId 2 -PackageFeedId 9 -WorkflowId 1 -Subscribe Yes
Parameters
The New-ASPackageRequest cmdlet has the following parameters:
Parameter |
Description |
||||||
Product |
Product name of the Package. It is a mandatory parameter. |
||||||
Source |
Source of the Package. It is a mandatory parameter. |
||||||
Vendor |
Manufacturer of the Package. |
||||||
Version |
Version of the Package. |
||||||
Priority |
Priority of the Package. Note:Priority value should not exceed more than five. Other wise an error message will be shown. |
||||||
CatalogPackageId |
The Catalog Package Id from the list of matching package entries from Catalog with specified product details. |
||||||
PackageFeedId |
The Package Feed Id from the list of matching package entries from Package Feed Module with specified product details. |
||||||
WorkflowId |
The ID of the Workflows. If any Workflow is marked as default workflow in the catalog then the WorkflowId will be added for all requests though the value is not specified while adding the request. |
||||||
Subscribe |
Set one of the following subscribe status:
By default, the Subscribe status will be set to No. If Subscribe is set to Yes, then it will be added to the request when valid PackageFeedId and WorkflowId values are provided. |
Note:The Product and Vendor parameters are taken into consideration for the duplicate checks.
Note:If Package Feed Id or Catalog Package Id values are not a valid match then the request will ignore the values and adds the request with the specified product details.
Return Values
Returns the PackageRequestId.