Skip to content

Commit

Permalink
Add SSO Url in Logz Org and listUserRole API (#3776)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsaha-ms authored May 14, 2021
1 parent 0c8b2f1 commit 7376f2e
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2020-10-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"role": "Admin"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1658,6 +1658,58 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listUserRoles": {
"post": {
"tags": [
"Monitors"
],
"summary": "List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.",
"operationId": "Monitors_ListUserRoles",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/MonitorNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/UserRoleRequest"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/UserRoleListResponse"
}
},
"default": {
"description": "Default error response.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"MainAccount_VMHosts_Update": {
"$ref": "./examples/MainAccount_listUserRoles.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1826,6 +1878,10 @@
"enterpriseAppId": {
"description": "The Id of the Enterprise App used for Single sign on.",
"type": "string"
},
"singleSignOnUrl": {
"description": "The login URL specific to this Logz Organization.",
"type": "string"
}
}
},
Expand Down Expand Up @@ -2306,6 +2362,52 @@
"type": "string"
}
}
},
"UserRoleRequest": {
"description": "Request for checking user's role for Logz.io account.",
"type": "object",
"properties": {
"emailAddress": {
"description": "Email of the user used by Logz for contacting them if needed",
"pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
"type": "string"
}
}
},
"UserRole": {
"description": "User roles on configured in Logz.io account.",
"enum": [
"None",
"User",
"Admin"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "UserRole"
}
},
"UserRoleResponse": {
"description": "Response for checking user's role for Logz.io account.",
"type": "object",
"properties": {
"role": {
"$ref": "#/definitions/UserRole"
}
}
},
"UserRoleListResponse": {
"description": "Response for list of user's role for Logz.io account.",
"type": "object",
"properties": {
"value": {
"description": "List of user roles for Logz.io account.",
"type": "array",
"items": {
"$ref": "#/definitions/UserRoleResponse"
}
}
}
}
},
"parameters": {
Expand Down

0 comments on commit 7376f2e

Please sign in to comment.