Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding adding get ipAggregates API. #9038

Merged
merged 10 commits into from
Apr 20, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ exportstatus
externaldatasources
externalDNSIPAddress01
externalDNSIPAddress02
extranet
EYWQ
faceapi
facelists
Expand Down Expand Up @@ -1040,6 +1041,7 @@ overridable
OWASP
oxxm
pageable
paginized
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
Parallelise
paramref
PARAVIRTUAL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3535,6 +3535,125 @@
}
}
}
},
"/providers/Microsoft.ADHybridHealthService/services/{serviceName}/ipAddressAggregates": {
"get": {
"tags": [
"Reports"
],
"description": "Gets the ipAddressAggregates for a given service.",
"x-ms-examples": {
"services_listIpAddressAggregates": {
"$ref": "./examples/IpAddressAggregates.json"
}
},
"operationId": "services_listIpAddressAggregates",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"parameters": [
{
"name": "serviceName",
"in": "path",
"description": "The name of the service.",
"required": true,
"type": "string"
},
{
"name": "skiptoken",
allenjzhang marked this conversation as resolved.
Show resolved Hide resolved
"in": "query",
"description": "Used to paginate results",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"required": false,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "The list of ip addresses.",
"schema": {
"$ref": "#/definitions/IpAddressAggregates"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/providers/Microsoft.ADHybridHealthService/services/{serviceName}/ipAddressAggregateSettings": {
"get": {
"tags": [
"Reports"
],
"description": "Gets the ipAddressAggregateSettings.",
"x-ms-examples": {
"services_getIpAddressAggregateSettings": {
"$ref": "./examples/IpAddressAggregateSettings.json"
}
},
"operationId": "services_getIpAddressAggregateSettings",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"parameters": [
{
"name": "serviceName",
"in": "path",
"description": "The name of the service.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "Ip AddressAggregate Settings.",
"schema": {
"$ref": "#/definitions/IpAddressAggregateSetting"
}
}
}
},
"patch": {
"tags": [
"Configuration"
],
"description": "Updates the ipAddressAggregateSettings alert thresholds.",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"x-ms-examples": {
"configuration_updateIpAddressAggregateSettings": {
"$ref": "./examples/IpAddressAggregateSettingsUpdate.json"
}
},
"operationId": "configuration_updateIpAddressAggregateSettings",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"parameters": [
{
"name": "serviceName",
"in": "path",
"description": "The name of the service.",
"required": true,
"type": "string"
},
{
"name": "ipAddressAggregateSetting",
"in": "body",
"description": "The ipAddressAggregateSetting object.",
"required": true,
"schema": {
"$ref": "#/definitions/IpAddressAggregateSetting"
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
}
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "Ip AddressAggregate Settings.",
"schema": {
"$ref": "#/definitions/IpAddressAggregateSetting"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -5331,6 +5450,135 @@
}
}
},
"IpAddressAggregate": {
"description": "The key value pair for properties.",
"type": "object",
"properties": {
"id": {
"description": "Unique ID for the entree",
"type": "string"
},
"tenantId": {
"description": "The tenant ID",
"type": "string"
},
"serviceId": {
"description": "The service ID",
"type": "string"
},
"ipAddress": {
"description": "The Bad Ip Address",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"type": "string"
},
"timestamp": {
"description": "When the event occurred",
"type": "string"
},
"firstAuditTimestamp": {
"description": "The first audit timestamp",
"type": "string"
},
"lastAuditTimestamp": {
"description": "The last audit timestamp",
"type": "string"
},
"extranetLockoutErrorCount": {
"description": "The extranet lockout error count",
"type": "integer"
},
"badPasswordErrorCount": {
"description": "The bad password error count",
"type": "integer"
},
"uniqueUsernamesAttemptedCount": {
"description": "The unique usernames attempted",
"type": "integer"
},
"attemptCountThresholdIsExceeded": {
"description": "Has the attempt count threshold been exceeded",
"type": "boolean"
},
"timeSpan": {
"description": "The timespan of the event",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"type": "string"
},
"isWhitelistedIpAddress": {
"description": "Is the address a whitelisted IP address?",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"type": "boolean"
},
"networkLocation": {
"description": "The network location",
"type": "string"
},
"attemptCountThresholdOnTrigger": {
"description": "The attempted count threshold on trigger.",
"type": "integer"
},
"attemptThresholdTypeOnTrigger": {
"description": "The attempt threshold type on trigger.",
"type": "string"
},
"geographicLocation": {
"description": "The geographic location.",
"type": "string"
}
}
},
"IpAddressAggregates": {
"description": "The list of Risky IP Aggregates.",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"type": "object",
"properties": {
"value": {
"description": "The value returned by the operation.",
"type": "array",
"items": {
"$ref": "#/definitions/IpAddressAggregate"
}
},
"nextLink": {
"description": "The next link if the page is paginized.",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"type": "string"
},
"totalCount": {
"description": "The number of results.",
"type": "integer"
},
"continuationToken": {
"description": "The key for the property.",
"type": "string"
}
}
},
"IpAddressAggregateSetting": {
"description": "The key value pair for IP Aggregate Thresholds.",
"type": "object",
"properties": {
"id": {
"description": "Unique ID for the entree",
"type": "string"
},
"badPasswordAndExtranetLockoutCombinedDailyThreshold": {
"description": "The tenant ID",
"type": "integer"
},
"badPasswordAndExtranetLockoutCombinedHourlyThreshold": {
"description": "The service ID",
"type": "integer"
},
"extranetLockoutDailyThreshold": {
"description": "The Bad Ip Address",
"type": "integer"
},
"extranetLockoutHourlyThreshold": {
"description": "When the event occurred",
"type": "integer"
},
"emailNotificationEnabled": {
"description": "The first audit timestamp",
henrycyan marked this conversation as resolved.
Show resolved Hide resolved
"type": "boolean"
}
}
},
"Item": {
"description": "The key value pair for properties.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"serviceName": "sampleServiceName",
"api-version": "2014-01-01"
},
"responses": {
"200": {
"body": {
"id": "ipAddressAggregateSettings",
"badPasswordAndExtranetLockoutCombinedDailyThreshold": 11,
"badPasswordAndExtranetLockoutCombinedHourlyThreshold": 7,
"extranetLockoutDailyThreshold": 7,
"extranetLockoutHourlyThreshold": 8,
"emailNotificationEnabled": true
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"serviceName": "sampleServiceName",
"ipAddressAggregateSetting": {
"id": "ipAddressAggregateSettings",
"badPasswordAndExtranetLockoutCombinedDailyThreshold": 11,
"badPasswordAndExtranetLockoutCombinedHourlyThreshold": 7,
"extranetLockoutDailyThreshold": 7,
"extranetLockoutHourlyThreshold": 8,
"emailNotificationEnabled": true
},
"api-version": "2014-01-01"
},
"responses": {
"200": {
"body": {
"id": "ipAddressAggregateSettings",
"badPasswordAndExtranetLockoutCombinedDailyThreshold": 11,
"badPasswordAndExtranetLockoutCombinedHourlyThreshold": 7,
"extranetLockoutDailyThreshold": 7,
"extranetLockoutHourlyThreshold": 8,
"emailNotificationEnabled": true
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"serviceName": "sampleServiceName",
"skiptoken": "someSkipToken",
"api-version": "2014-01-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "MjE1MjI4L2hvdXIvRXh0cmFuZXQvLS8wL1RydWU=",
"tenantId": "22fbe147-e69f-40a3-b5ee-578e52b73640",
"serviceId": "1b322937-1795-43d7-988c-cdb238ff906f",
"ipAddress": "-",
"timestamp": "2020-02-20T23:00:00Z",
"firstAuditTimestamp": "2020-02-27T23:01:12.015Z",
"lastAuditTimestamp": "2020-02-26T23:44:45Z",
"extranetLockoutErrorCount": 4,
"badPasswordErrorCount": 24,
"uniqueUsernamesAttemptedCount": 19,
"attemptCountThresholdIsExceeded": true,
"timeSpan": "hour",
"isWhitelistedIpAddress": true,
"networkLocation": "Extranet",
"attemptCountThresholdOnTrigger": 0,
"attemptThresholdTypeOnTrigger": "NotSet",
"geographicLocation": null
}
],
"nextLink": null,
"totalCount": 1,
"continuationToken": null
}
}
}
}