Skip to content

Commit

Permalink
added retrieval of business entities and adding of applications
Browse files Browse the repository at this point in the history
  • Loading branch information
ffeldhaus committed Dec 21, 2015
1 parent c7ba24a commit 2763153
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/OnCommand-Insight.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,18 @@ function Get-OciCmdlets {
'GET /rest/v1/assets/applications' {
$Name = "Get-OciApplications"
}
'POST /rest/v1/assets/applications' {
$Name = "Add-OciApplication"
}
'GET /rest/v1/assets/applications/{id}' {
$Name = "Get-OciApplication"
}
'GET /rest/v1/assets/businessEntities' {
$Name = "Get-OciBusinessEntities"
}
'GET /rest/v1/assets/businessEntities/{id}' {
$Name = "Get-OciBusinessEntity"
}
'GET /rest/v1/assets/dataStores' {
$Name = "Get-OciDatastores"
}
Expand Down Expand Up @@ -912,6 +921,12 @@ function Get-OciCmdlets {
$operation.parameters += New-Object -TypeName PSCustomObject -Property @{Name="applicationId";Required=$True;Description="Valid application id which should be associated";DataType="String";AllowMultiple=$False}
$body = '{ `"id`": `"$applicationId`" }'
}
'POST /rest/v1/assets/applications' {
$operation.parameters += New-Object -TypeName PSCustomObject -Property @{Name="name";Required=$True;Description="Name of the application";DataType="String";AllowMultiple=$False}
$operation.parameters += New-Object -TypeName PSCustomObject -Property @{Name="priority";Required=$False;Description="Name of the application";DataType="String";AllowMultiple=$False}
$operation.parameters += New-Object -TypeName PSCustomObject -Property @{Name="businessEntity";Required=$True;Description="Business entity of the application";DataType="String";AllowMultiple=$False}
$body = '{ `"name`": `"$applicationId`", `"priority`": `"$priority`", `"priority`": `"$priority`", `"businessEntity`": { `"id`": `"$businessEntity`" } }'
}
}

foreach ($Parameter in $($operation.parameters)) {
Expand Down

0 comments on commit 2763153

Please sign in to comment.