EDMCS Rest API Call using Powershell to list all applications from the instance.

 

<#####################################################################

Copyright (c) 2020, Saravana Janardhan

Name: Get Applications
Purpose: This script list all applications from EDMCS Instance using powershell.
Usage:
$User= EDMCS username. use the following format. domain.username. example: a555666.sponge.bob@bikneybottom.com
$Password= EDMCS user's password. This script uses plain text password not the encrypted password file.

Change all the highlighted text to fit your instance.
####################################################################>

$User = "domain.username"
$Password="MyPassword"
$PWord = ConvertTo-SecureString -String $Password -AsPlainText -Force
$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $PWord
$result=Invoke-RestMethod -Uri https://edmcs-instance-name-domain.epm.datacenter.oraclecloud.com/epm/rest/v1/applications -Credential $Credential
Write-Output $result.items| Format-Table -Property Name,Description,ObjectStatus,TimeCreated,CreatedBy

-----------------------SAMPLE OUTPUT-----------------------------

Comments