Skip to content

Commit

Permalink
Dev adhybridhealthservice microsoft.ad hybrid health service 2014 01 …
Browse files Browse the repository at this point in the history
…01 binilkk (#5042)

* Fixes for:

Issue #1 : #4576 (comment)

Typo in the DeltaOperationType Enum.

Issue #2 : #4844 (comment)

GlobalAdmins list is marked as an object, while it's an array.

* Updated the Specification as example for Risky IP Download report.

* Added the Result details

* Fixed review comments, changed the URI scheme as well as changed get/post methods

* Addressing Review Feedback, changing POST call of blobUri -> generateBlobUri
  • Loading branch information
binilkk authored and jhendrixMSFT committed Mar 2, 2019
1 parent ae4cea8 commit ab12855
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3258,6 +3258,76 @@
}
}
}
},
"/providers/Microsoft.ADHybridHealthService/services/{serviceName}/reports/riskyIp/blobUris": {
"get": {
"tags": [ "Reports" ],
"description": "Gets all Risky IP report URIs for the last 7 days.",
"x-ms-examples": {
"services_listAllRiskyIpDownloadReport": {
"$ref": "./examples/RiskyIpDownload.json"
}
},
"operationId": "services_listAllRiskyIpDownloadReport",
"parameters": [
{
"name": "serviceName",
"in": "path",
"description": "The name of the service.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "Risky IP report URIs for the last 7 days.",
"schema": {
"$ref": "#/definitions/RiskyIPBlobUris"
}
}
},
"x-ms-pageable": {
"nextLinkName": null
}
}
},
"/providers/Microsoft.ADHybridHealthService/services/{serviceName}/reports/riskyIp/generateBlobUri": {
"post": {
"tags": [ "Reports" ],
"description": "Initiate the generation of a new Risky IP report. Returns the URI for the new one.",
"x-ms-examples": {
"services_listCurrentRiskyIpDownloadReport": {
"$ref": "./examples/RiskyIpDownload.json"
}
},
"operationId": "services_listCurrentRiskyIpDownloadReport",
"parameters": [
{
"name": "serviceName",
"in": "path",
"description": "The name of the service.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "The URI of the Risky IP report that was requested.",
"schema": {
"$ref": "#/definitions/RiskyIPBlobUris"
}
}
},
"x-ms-pageable": {
"nextLinkName": null
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -5721,6 +5791,51 @@
}
}
},
"RiskyIPBlobUri": {
"description": "The blob uri pointing to Risky IP Report.",
"type": "object",
"properties": {
"tenantId": {
"description": "The tenant id for whom the report belongs to.",
"type": "string"
},
"serviceId": {
"description": "The service id for whom the report belongs to.",
"type": "string"
},
"resultSasUri": {
"description": "The blob uri for the report.",
"type": "string"
},
"blobCreateDateTime": {
"description": "Time at which the the new Risky IP report was requested.",
"type": "string",
"format": "date-time"
},
"jobCompletionTime": {
"description": "Time at which the blob creation job for the new Risky IP report was completed.",
"type": "string",
"format": "date-time"
},
"status": {
"description": "Status of the Risky IP report generation.",
"type": "string"
}
}
},
"RiskyIPBlobUris": {
"description": "The list containing blob uris.",
"type": "object",
"properties": {
"value": {
"description": "The list of blob uris.",
"type": "array",
"items": {
"$ref": "#/definitions/RiskyIPBlobUri"
}
}
}
},
"RuleErrorInfo": {
"description": "The error details in legacy rule processing.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"serviceName": "sampleServiceName",
"api-version": "2014-01-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"tenantId": "TenantId of the tenant.",
"serviceId": "ServiceId of the tenant.",
"resultSasUri": "SAS Uri of the blob.",
"blobCreateDateTime": "2019-01-07T20:32:02+00:00",
"jobCompletionTime": "2019-01-07T20:32:05+00:00",
"status": "status of the task."
}
]
}
}
}
}

0 comments on commit ab12855

Please sign in to comment.