From 8ac1fdee9947a43b4288d28b4187492390c07fcf Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Wed, 14 Sep 2022 16:11:34 -0700 Subject: [PATCH 1/9] Add new API folder --- .../stable/2022-09-01/domainservices.json | 1113 +++++++++++++++++ .../examples/CreateDomainService.json | 181 +++ .../examples/CreateOuContainer.json | 94 ++ .../examples/DeleteDomainService.json | 16 + .../examples/DeleteOuContainer.json | 20 + .../2022-09-01/examples/GetDomainService.json | 85 ++ .../2022-09-01/examples/GetOperations.json | 63 + .../2022-09-01/examples/GetOuContainer.json | 37 + .../ListDomainServicesByResourceGroup.json | 88 ++ .../ListDomainServicesBySubscription.json | 87 ++ .../2022-09-01/examples/ListOuContainers.json | 63 + .../examples/UpdateDomainService.json | 176 +++ .../examples/UpdateOuContainer.json | 68 + .../stable/2022-09-01/oucontainer.json | 578 +++++++++ 14 files changed, 2669 insertions(+) create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateDomainService.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateOuContainer.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOperations.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOuContainer.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListOuContainers.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json create mode 100644 specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json new file mode 100644 index 000000000000..33eb5ab103fd --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json @@ -0,0 +1,1113 @@ +{ + "swagger": "2.0", + "info": { + "title": "Domain Services Resource Provider", + "description": "The AAD Domain Services API.", + "version": "2021-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.AAD/operations": { + "get": { + "tags": [ + "DomainServices" + ], + "description": "Lists all the available Domain Services operations.", + "operationId": "DomainServiceOperations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/OperationEntityListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Operations": { + "$ref": "./examples/GetOperations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AAD/domainServices": { + "get": { + "tags": [ + "DomainServices" + ], + "operationId": "DomainServices_List", + "summary": "List Domain Services in Subscription", + "description": "The List Domain Services in Subscription operation lists all the domain services available under the given subscription (and across all resource groups within that subscription).", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/DomainServiceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Domain Service": { + "$ref": "./examples/ListDomainServicesBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices": { + "get": { + "tags": [ + "DomainServices" + ], + "operationId": "DomainServices_ListByResourceGroup", + "summary": "List Domain Services in Resource Group", + "description": "The List Domain Services in Resource Group operation lists all the domain services available under the given resource group.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/DomainServiceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Domain Service": { + "$ref": "./examples/ListDomainServicesByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}": { + "put": { + "tags": [ + "DomainServices" + ], + "operationId": "DomainServices_CreateOrUpdate", + "summary": "Create or Update Domain Service (PUT Resource)", + "description": "The Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + }, + { + "name": "domainService", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DomainService" + }, + "description": "Properties supplied to the Create or Update a Domain Service operation." + } + ], + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/DomainService" + } + }, + "201": { + "description": "HTTP 201 (Created) if the operation completed successfully.", + "schema": { + "$ref": "#/definitions/DomainService" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DomainService" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create Domain Service": { + "$ref": "./examples/CreateDomainService.json" + } + } + }, + "get": { + "tags": [ + "DomainServices" + ], + "operationId": "DomainServices_Get", + "summary": "Get Domain Service", + "description": "The Get Domain Service operation retrieves a json representation of the Domain Service.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + } + ], + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/DomainService" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Domain Service": { + "$ref": "./examples/GetDomainService.json" + } + } + }, + "delete": { + "tags": [ + "DomainServices" + ], + "operationId": "DomainServices_Delete", + "summary": "Delete Domain Service (DELETE Resource)", + "description": "The Delete Domain Service operation deletes an existing Domain Service.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + } + ], + "responses": { + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + }, + "204": { + "description": "HTTP 204 (Not Content) should be used if the resource does not exist and the request is well formed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete Domain Service": { + "$ref": "./examples/DeleteDomainService.json" + } + } + }, + "patch": { + "tags": [ + "DomainServices" + ], + "operationId": "DomainServices_Update", + "summary": "Update Domain Service (PATCH Resource)", + "description": "The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + }, + { + "name": "domainService", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DomainService" + }, + "description": "Properties supplied to the Update a Domain Service operation." + } + ], + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/DomainService" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DomainService" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update Domain Service": { + "$ref": "./examples/UpdateDomainService.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "etag": { + "type": "string", + "description": "Resource etag" + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "x-ms-azure-resource": true + }, + "DomainService": { + "description": "Domain service.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DomainServiceProperties", + "description": "Domain service properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "DomainServiceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DomainService" + }, + "description": "the list of domain services." + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + }, + "description": "The response from the List Domain Services operation." + }, + "DomainServiceProperties": { + "description": "Properties of the Domain Service.", + "properties": { + "version": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Data Model Version" + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "Azure Active Directory Tenant Id" + }, + "domainName": { + "type": "string", + "description": "The name of the Azure domain that the user would like to deploy Domain Services to." + }, + "deploymentId": { + "readOnly": true, + "type": "string", + "description": "Deployment Id" + }, + "syncOwner": { + "readOnly": true, + "type": "string", + "description": "SyncOwner ReplicaSet Id" + }, + "replicaSets": { + "type": "array", + "items": { + "$ref": "#/definitions/ReplicaSet", + "description": "ReplicaSet" + }, + "description": "List of ReplicaSets" + }, + "ldapsSettings": { + "$ref": "#/definitions/LdapsSettings", + "description": "Secure LDAP Settings" + }, + "resourceForestSettings": { + "$ref": "#/definitions/ResourceForestSettings", + "description": "Resource Forest Settings" + }, + "domainSecuritySettings": { + "$ref": "#/definitions/DomainSecuritySettings", + "description": "DomainSecurity Settings" + }, + "domainConfigurationType": { + "type": "string", + "description": "Domain Configuration Type" + }, + "sku": { + "type": "string", + "description": "Sku Type" + }, + "filteredSync": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "description": "Enabled or Disabled flag to turn on Group-based filtered sync", + "x-ms-enum": { + "name": "FilteredSync", + "modelAsString": true + } + }, + "notificationSettings": { + "$ref": "#/definitions/NotificationSettings", + "description": "Notification Settings" + }, + "migrationProperties": { + "readOnly": true, + "$ref": "#/definitions/MigrationProperties", + "description": "Migration Properties" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "the current deployment or provisioning state, which only appears in the response." + }, + "configDiagnostics": { + "$ref": "#/definitions/ConfigDiagnostics", + "description": "Configuration diagnostics data containing latest execution from client." + } + } + }, + "ReplicaSet": { + "description": "Replica Set Definition", + "properties": { + "replicaSetId": { + "readOnly": true, + "type": "string", + "description": "ReplicaSet Id" + }, + "location": { + "type": "string", + "description": "Virtual network location" + }, + "vnetSiteId": { + "readOnly": true, + "type": "string", + "description": "Virtual network site id" + }, + "subnetId": { + "type": "string", + "description": "The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName." + }, + "domainControllerIpAddress": { + "readOnly": true, + "type": "array", + "items": { + "type": "string", + "description": "Domain Controller IP Address" + }, + "description": "List of Domain Controller IP Address" + }, + "externalAccessIpAddress": { + "readOnly": true, + "type": "string", + "description": "External access ip address." + }, + "serviceStatus": { + "readOnly": true, + "type": "string", + "description": "Status of Domain Service instance" + }, + "healthLastEvaluated": { + "readOnly": true, + "type": "string", + "format": "date-time-rfc1123", + "description": "Last domain evaluation run DateTime" + }, + "healthMonitors": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/HealthMonitor", + "description": "Domain Health Monitors" + }, + "description": "List of Domain Health Monitors" + }, + "healthAlerts": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/HealthAlert", + "description": "Domain Health Alerts" + }, + "description": "List of Domain Health Alerts" + } + } + }, + "LdapsSettings": { + "description": "Secure LDAP Settings", + "properties": { + "ldaps": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Disabled", + "description": "A flag to determine whether or not Secure LDAP is enabled or disabled.", + "x-ms-enum": { + "name": "Ldaps", + "modelAsString": true + } + }, + "pfxCertificate": { + "type": "string", + "description": "The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file." + }, + "pfxCertificatePassword": { + "type": "string", + "description": "The password to decrypt the provided Secure LDAP certificate pfx file." + }, + "publicCertificate": { + "readOnly": true, + "type": "string", + "description": "Public certificate used to configure secure ldap." + }, + "certificateThumbprint": { + "readOnly": true, + "type": "string", + "description": "Thumbprint of configure ldaps certificate." + }, + "certificateNotAfter": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "NotAfter DateTime of configure ldaps certificate." + }, + "externalAccess": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Disabled", + "description": "A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled.", + "x-ms-enum": { + "name": "ExternalAccess", + "modelAsString": true + } + } + } + }, + "HealthMonitor": { + "description": "Health Monitor Description", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Health Monitor Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Health Monitor Name" + }, + "details": { + "readOnly": true, + "type": "string", + "description": "Health Monitor Details" + } + } + }, + "HealthAlert": { + "description": "Health Alert Description", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Health Alert Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Health Alert Name" + }, + "issue": { + "readOnly": true, + "type": "string", + "description": "Health Alert Issue" + }, + "severity": { + "readOnly": true, + "type": "string", + "description": "Health Alert Severity" + }, + "raised": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Health Alert Raised DateTime" + }, + "lastDetected": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Health Alert Last Detected DateTime" + }, + "resolutionUri": { + "readOnly": true, + "type": "string", + "description": "Health Alert TSG Link" + } + } + }, + "NotificationSettings": { + "description": "Settings for notification", + "properties": { + "notifyGlobalAdmins": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "description": "Should global admins be notified", + "x-ms-enum": { + "name": "notifyGlobalAdmins", + "modelAsString": true + } + }, + "notifyDcAdmins": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "description": "Should domain controller admins be notified", + "x-ms-enum": { + "name": "notifyDcAdmins", + "modelAsString": true + } + }, + "additionalRecipients": { + "type": "array", + "items": { + "type": "string", + "description": "Email address for additional recipient" + }, + "description": "The list of additional recipients" + } + } + }, + "ResourceForestSettings": { + "description": "Settings for Resource Forest", + "properties": { + "settings": { + "type": "array", + "items": { + "$ref": "#/definitions/ForestTrust" + }, + "description": "List of settings for Resource Forest" + }, + "resourceForest": { + "type": "string", + "description": "Resource Forest" + } + } + }, + "ForestTrust": { + "description": "Forest Trust Setting", + "properties": { + "trustedDomainFqdn": { + "type": "string", + "description": "Trusted Domain FQDN" + }, + "trustDirection": { + "type": "string", + "description": "Trust Direction" + }, + "friendlyName": { + "type": "string", + "description": "Friendly Name" + }, + "remoteDnsIps": { + "type": "string", + "description": "Remote Dns ips" + }, + "trustPassword": { + "type": "string", + "description": "Trust Password", + "x-ms-secret": true + } + } + }, + "MigrationProperties": { + "description": "Migration Properties", + "properties": { + "oldSubnetId": { + "readOnly": true, + "type": "string", + "description": "Old Subnet Id" + }, + "oldVnetSiteId": { + "readOnly": true, + "type": "string", + "description": "Old Vnet Site Id" + }, + "migrationProgress": { + "readOnly": true, + "$ref": "#/definitions/MigrationProgress", + "description": "Migration Progress" + } + } + }, + "MigrationProgress": { + "description": "Migration Progress", + "properties": { + "completionPercentage": { + "type": "number", + "format": "double", + "description": "Completion Percentage" + }, + "progressMessage": { + "type": "string", + "description": "Progress Message" + } + } + }, + "DomainSecuritySettings": { + "description": "Domain Security Settings", + "properties": { + "ntlmV1": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "description": "A flag to determine whether or not NtlmV1 is enabled or disabled.", + "x-ms-enum": { + "name": "NtlmV1", + "modelAsString": true + } + }, + "tlsV1": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "description": "A flag to determine whether or not TlsV1 is enabled or disabled.", + "x-ms-enum": { + "name": "TlsV1", + "modelAsString": true + } + }, + "syncNtlmPasswords": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "description": "A flag to determine whether or not SyncNtlmPasswords is enabled or disabled.", + "x-ms-enum": { + "name": "SyncNtlmPasswords", + "modelAsString": true + } + }, + "syncKerberosPasswords": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "description": "A flag to determine whether or not SyncKerberosPasswords is enabled or disabled.", + "x-ms-enum": { + "name": "SyncKerberosPasswords", + "modelAsString": true + } + }, + "syncOnPremPasswords": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "description": "A flag to determine whether or not SyncOnPremPasswords is enabled or disabled.", + "x-ms-enum": { + "name": "SyncOnPremPasswords", + "modelAsString": true + } + }, + "kerberosRc4Encryption": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "description": "A flag to determine whether or not KerberosRc4Encryption is enabled or disabled.", + "x-ms-enum": { + "name": "KerberosRc4Encryption", + "modelAsString": true + } + }, + "kerberosArmoring": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Disabled", + "description": "A flag to determine whether or not KerberosArmoring is enabled or disabled.", + "x-ms-enum": { + "name": "KerberosArmoring", + "modelAsString": true + } + } + } + }, + "ConfigDiagnostics": { + "description": "Configuration Diagnostics", + "properties": { + "lastExecuted": { + "type": "string", + "format": "date-time-rfc1123", + "description": "Last domain configuration diagnostics DateTime" + }, + "validatorResults": { + "type": "array", + "description": "List of Configuration Diagnostics validator results.", + "items": { + "$ref": "#/definitions/ConfigDiagnosticsValidatorResult" + } + } + } + }, + "ConfigDiagnosticsValidatorResult": { + "description": "Config Diagnostics validator result data", + "properties": { + "validatorId": { + "type": "string", + "description": "Validator identifier" + }, + "replicaSetSubnetDisplayName": { + "type": "string", + "description": "Replica set location and subnet name" + }, + "status": { + "type": "string", + "enum": [ + "None", + "Running", + "OK", + "Failure", + "Warning", + "Skipped" + ], + "default": "None", + "description": "Status for individual validator after running diagnostics.", + "x-ms-enum": { + "name": "status", + "modelAsString": true + } + }, + "issues": { + "type": "array", + "description": "List of resource config validation issues.", + "items": { + "$ref": "#/definitions/ConfigDiagnosticsValidatorResultIssue" + } + } + } + }, + "ConfigDiagnosticsValidatorResultIssue": { + "description": "Specific issue for a particular config diagnostics validator", + "properties": { + "id": { + "type": "string", + "description": "Validation issue identifier." + }, + "descriptionParams": { + "type": "array", + "items": { + "type": "string", + "description": "Single resource property involved in issue description." + }, + "description": "List of domain resource property name or values used to compose a rich description." + } + } + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "description": "An error response from the Domain Services.", + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An error response from the Domain Services." + }, + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the Domain Services." + }, + "OperationEntityListResult": { + "description": "The list of domain service operation response.", + "type": "object", + "properties": { + "value": { + "description": "The list of operations.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationEntity" + } + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + } + }, + "OperationEntity": { + "description": "The operation supported by Domain Services.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplayInfo", + "description": "The operation supported by Domain Services." + }, + "origin": { + "description": "The origin of the operation.", + "type": "string" + } + } + }, + "OperationDisplayInfo": { + "description": "The operation supported by Domain Services.", + "type": "object", + "properties": { + "description": { + "description": "The description of the operation.", + "type": "string" + }, + "operation": { + "description": "The action that users can perform, based on their permission level.", + "type": "string" + }, + "provider": { + "description": "Service provider: Domain Services.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the user's subscription. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "DomainServiceNameParameter": { + "name": "domainServiceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the domain service.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateDomainService.json new file mode 100644 index 000000000000..ff0238a0dcae --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateDomainService.json @@ -0,0 +1,181 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "TestResourceGroup", + "domainServiceName": "TestDomainService.com", + "domainService": { + "properties": { + "domainName": "TestDomainService.com", + "replicaSets": [ + { + "location": "West US", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS" + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "pfxCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "pfxCertificatePassword": "", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + } + } + } + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", + "name": "TestDomainService.com", + "type": "Microsoft.AAD/DomainServices", + "properties": { + "version": 2, + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "TestDomainService.com", + "deploymentId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "syncOwner": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "replicaSets": [ + { + "replicaSetId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "location": "West US", + "vnetSiteId": "99083198-a39c-469f-972d-59017e7f078c", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS", + "domainControllerIpAddress": [ + "10.0.0.1", + "10.0.0.2" + ], + "externalAccessIpAddress": "13.64.148.151", + "serviceStatus": "Running" + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", + "certificateNotAfter": "2018-02-15T21:43:21Z", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "provisioningState": "Succeeded" + } + } + }, + "201": { + "description": "HTTP 201 (Created) if the operation completed successfully.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", + "name": "TestDomainService.com", + "type": "Microsoft.AAD/DomainServices", + "properties": { + "version": 2, + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "TestDomainService.com", + "deploymentId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "syncOwner": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "replicaSets": [ + { + "replicaSetId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "location": "West US", + "vnetSiteId": "99083198-a39c-469f-972d-59017e7f078c", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS", + "domainControllerIpAddress": [ + "10.0.0.1", + "10.0.0.2" + ], + "externalAccessIpAddress": "13.64.148.151", + "serviceStatus": "Running" + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", + "certificateNotAfter": "2018-02-15T21:43:21Z", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "provisioningState": "Succeeded" + } + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", + "name": "TestDomainService.com", + "type": "Microsoft.AAD/DomainServices", + "properties": { + "version": 2, + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "TestDomainService.com", + "replicaSets": [ + { + "location": "West US", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS" + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateOuContainer.json new file mode 100644 index 000000000000..86df92943039 --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateOuContainer.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "OuContainerResourceGroup", + "domainServiceName": "OuContainer.com", + "ouContainerName": "OuContainer1", + "containerAccount": { + "accountName": "AccountName1", + "spn": "Spn1", + "password": "" + } + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", + "name": "OuContainer.com/OuContainer1", + "type": "Microsoft.AAD/DomainServices/OuContainer", + "properties": { + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "OuContainer.com", + "deploymentId": "0FC50BDB-AC45-48E4-BC92-F0651EA0687B", + "containerId": "OuContainer1", + "accounts": [ + { + "accountName": "AccountName1", + "spn": "Spn1" + }, + { + "accountName": "AccountName2", + "spn": "Spn2" + } + ], + "serviceStatus": "Running", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "description": "HTTP 201 (Created) if the operation was successful.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", + "name": "OuContainer.com/OuContainer1", + "type": "Microsoft.AAD/DomainServices/OuContainer", + "properties": { + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "OuContainer.com", + "deploymentId": "0FC50BDB-AC45-48E4-BC92-F0651EA0687B", + "containerId": "OuContainer1", + "accounts": [ + { + "accountName": "AccountName1", + "spn": "Spn1" + }, + { + "accountName": "AccountName2", + "spn": "Spn2" + } + ], + "serviceStatus": "Running", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", + "name": "OuContainer.com/OuContainer1", + "type": "Microsoft.AAD/DomainServices/OuContainer", + "properties": { + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "OuContainer.com", + "deploymentId": "0FC50BDB-AC45-48E4-BC92-F0651EA0687B", + "containerId": "OuContainer1", + "accounts": [ + { + "accountName": "AccountName1", + "spn": "Spn1" + }, + { + "accountName": "AccountName2", + "spn": "Spn2" + } + ], + "serviceStatus": "Running", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json new file mode 100644 index 000000000000..d0027523f5aa --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "TestResourceGroup", + "domainServiceName": "TestDomainService.com" + }, + "responses": { + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + }, + "204": { + "description": "HTTP 204 (Not Content) should be used if the resource does not exist and the request is well formed." + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json new file mode 100644 index 000000000000..9f3c63e876a0 --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "OuContainerResourceGroup", + "domainServiceName": "OuContainer.com", + "ouContainerName": "OuContainer1" + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful." + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + }, + "204": { + "description": "HTTP 204 (Not Content) should be used if the resource does not exist and the request is well formed." + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json new file mode 100644 index 000000000000..28d38fb8d575 --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "TestResourceGroup", + "domainServiceName": "TestDomainService.com" + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", + "name": "TestDomainService.com", + "type": "Microsoft.AAD/DomainServices", + "properties": { + "version": 2, + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "TestDomainService.com", + "deploymentId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "syncOwner": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "replicaSets": [ + { + "replicaSetId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "location": "West US", + "vnetSiteId": "99083198-a39c-469f-972d-59017e7f078c", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS", + "domainControllerIpAddress": [ + "10.0.0.1", + "10.0.0.2" + ], + "externalAccessIpAddress": "13.64.148.151", + "serviceStatus": "Running", + "healthLastEvaluated": "2018-02-15T21:43:21Z", + "healthMonitors": [ + { + "id": "AADDS501", + "name": "Backup", + "details": "Last backed up on Tue, 18 Sep 2018 03:37:04 GMT" + }, + { + "id": "AADDS500", + "name": "Synchronization with Azure AD", + "details": "Synchronized on Tue, 18 Sep 2018 16:47:57 GMT." + } + ], + "healthAlerts": [ + { + "id": "AADDS104", + "name": "The managed domain is experiencing a network error", + "issue": "Microsoft is unable to reach the domain controllers for this managed domain. This may happen if a network security group (NSG) configured on your virtual network blocks access to the managed domain. Another possible reason is if there is a user defined route that blocks incoming traffic from the internet.", + "severity": "2", + "raised": "2018-09-18T01:55:40.7834289Z", + "lastDetected": "2018-09-18T17:46:39.2697888Z", + "resolutionUri": "https://aka.ms/aadds-neterr" + } + ] + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", + "certificateNotAfter": "2018-02-15T21:43:21Z", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOperations.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOperations.json new file mode 100644 index 000000000000..df9537d5c20f --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOperations.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AAD/unregister/action", + "display": { + "provider": "Domain Services Resource Provider", + "resource": "Domain Service Type", + "operation": "Unregister Domain Service", + "description": "Unregisters Domain Services" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AAD/register/action", + "display": { + "provider": "Domain Services Resource Provider", + "resource": "Domain Service Type", + "operation": "Register Domain Service", + "description": "Registers Domain Services" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AAD/domainServices/read", + "display": { + "provider": "Domain Services Resource Provider", + "resource": "Domain Service Type", + "operation": "Read Domain Service", + "description": "Reads Domain Services" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AAD/domainServices/write", + "display": { + "provider": "Domain Services Resource Provider", + "resource": "Domain Service Type", + "operation": "Write Domain Service", + "description": "Writes Domain Services" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.AAD/domainServices/delete", + "display": { + "provider": "Domain Services Resource Provider", + "resource": "Domain Service Type", + "operation": "Delete Domain Service", + "description": "Deletes Domain Services" + }, + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOuContainer.json new file mode 100644 index 000000000000..fe3e4df2c077 --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOuContainer.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "OuContainerResourceGroup", + "domainServiceName": "OuContainer.com", + "ouContainerName": "OuContainer1" + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", + "name": "OuContainer.com/OuContainer1", + "type": "Microsoft.AAD/DomainServices/OuContainer", + "properties": { + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "OuContainer.com", + "deploymentId": "0FC50BDB-AC45-48E4-BC92-F0651EA0687B", + "containerId": "OuContainer1", + "accounts": [ + { + "accountName": "AccountName1", + "spn": "Spn1" + }, + { + "accountName": "AccountName2", + "spn": "Spn2" + } + ], + "serviceStatus": "Running", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json new file mode 100644 index 000000000000..a9733d549191 --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "TestResourceGroup" + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "value": [ + { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", + "name": "TestDomainService.com", + "type": "Microsoft.AAD/DomainServices", + "properties": { + "version": 2, + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "TestDomainService.com", + "deploymentId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "syncOwner": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "replicaSets": [ + { + "replicaSetId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "location": "West US", + "vnetSiteId": "99083198-a39c-469f-972d-59017e7f078c", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS", + "domainControllerIpAddress": [ + "10.0.0.1", + "10.0.0.2" + ], + "externalAccessIpAddress": "13.64.148.151", + "serviceStatus": "Running", + "healthLastEvaluated": "2018-02-15T21:43:21Z", + "healthMonitors": [ + { + "id": "AADDS501", + "name": "Backup", + "details": "Last backed up on Tue, 18 Sep 2018 03:37:04 GMT" + }, + { + "id": "AADDS500", + "name": "Synchronization with Azure AD", + "details": "Synchronized on Tue, 18 Sep 2018 16:47:57 GMT." + } + ], + "healthAlerts": [ + { + "id": "AADDS104", + "name": "The managed domain is experiencing a network error", + "issue": "Microsoft is unable to reach the domain controllers for this managed domain. This may happen if a network security group (NSG) configured on your virtual network blocks access to the managed domain. Another possible reason is if there is a user defined route that blocks incoming traffic from the internet.", + "severity": "2", + "raised": "2018-09-18T01:55:40.7834289Z", + "lastDetected": "2018-09-18T17:46:39.2697888Z", + "resolutionUri": "https://aka.ms/aadds-neterr" + } + ] + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", + "certificateNotAfter": "2018-02-15T21:43:21Z", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json new file mode 100644 index 000000000000..00428ee0e7c9 --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d" + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "value": [ + { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", + "name": "TestDomainService.com", + "type": "Microsoft.AAD/DomainServices", + "properties": { + "version": 2, + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "TestDomainService.com", + "deploymentId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "syncOwner": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "replicaSets": [ + { + "replicaSetId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "location": "West US", + "vnetSiteId": "99083198-a39c-469f-972d-59017e7f078c", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS", + "domainControllerIpAddress": [ + "10.0.0.1", + "10.0.0.2" + ], + "externalAccessIpAddress": "13.64.148.151", + "serviceStatus": "Running", + "healthLastEvaluated": "2018-02-15T21:43:21Z", + "healthMonitors": [ + { + "id": "AADDS501", + "name": "Backup", + "details": "Last backed up on Tue, 18 Sep 2018 03:37:04 GMT" + }, + { + "id": "AADDS500", + "name": "Synchronization with Azure AD", + "details": "Synchronized on Tue, 18 Sep 2018 16:47:57 GMT." + } + ], + "healthAlerts": [ + { + "id": "AADDS104", + "name": "The managed domain is experiencing a network error", + "issue": "Microsoft is unable to reach the domain controllers for this managed domain. This may happen if a network security group (NSG) configured on your virtual network blocks access to the managed domain. Another possible reason is if there is a user defined route that blocks incoming traffic from the internet.", + "severity": "2", + "raised": "2018-09-18T01:55:40.7834289Z", + "lastDetected": "2018-09-18T17:46:39.2697888Z", + "resolutionUri": "https://aka.ms/aadds-neterr" + } + ] + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", + "certificateNotAfter": "2018-02-15T21:43:21Z", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListOuContainers.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListOuContainers.json new file mode 100644 index 000000000000..472219f272af --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListOuContainers.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "OuContainerResourceGroup", + "domainServiceName": "OuContainer.com" + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "value": [ + { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", + "name": "OuContainer.com/OuContainer1", + "type": "Microsoft.AAD/DomainServices/OuContainer", + "properties": { + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "OuContainer.com", + "deploymentId": "0FC50BDB-AC45-48E4-BC92-F0651EA0687B", + "containerId": "OuContainer1", + "accounts": [ + { + "accountName": "AccountName1", + "spn": "Spn1" + }, + { + "accountName": "AccountName2", + "spn": "Spn2" + } + ], + "serviceStatus": "Running", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer2", + "name": "OuContainer.com/OuContainer2", + "type": "Microsoft.AAD/DomainServices/OuContainer", + "properties": { + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "OuContainer.com", + "deploymentId": "0FC50BDB-AC45-48E4-BC92-F0651EA0687B", + "containerId": "OuContainer2", + "accounts": [ + { + "accountName": "AccountName3", + "spn": "Spn3" + }, + { + "accountName": "AccountName4", + "spn": "Spn4" + } + ], + "serviceStatus": "Running", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json new file mode 100644 index 000000000000..433a4008f0a9 --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json @@ -0,0 +1,176 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "TestResourceGroup", + "domainServiceName": "TestDomainService.com", + "domainService": { + "properties": { + "replicaSets": [ + { + "location": "West US", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS" + }, + { + "location": "East US", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetEUS/subnets/TestSubnetEUS" + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "pfxCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "pfxCertificatePassword": "", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "configDiagnostics": { + "lastExecuted": "2021-05-05T12:00:23Z;", + "validatorResults": [ + { + "validatorId": "AADDS-CFG-DIAG-V06", + "replicaSetSubnetDisplayName": "West US/aadds-subnet", + "status": "Warning", + "issues": [ + { + "id": "AADDS-CFG-DIAG-I20", + "descriptionParams": [] + } + ] + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", + "name": "TestDomainService.com", + "type": "Microsoft.AAD/DomainServices", + "properties": { + "version": 2, + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "TestDomainService.com", + "deploymentId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "syncOwner": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "replicaSets": [ + { + "replicaSetId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "location": "West US", + "vnetSiteId": "99083198-a39c-469f-972d-59017e7f078c", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS", + "domainControllerIpAddress": [ + "10.0.0.1", + "10.0.0.2" + ], + "externalAccessIpAddress": "13.64.148.151", + "serviceStatus": "Running" + }, + { + "replicaSetId": "5057347d-cad1-4ec8-8db6-66cf7eedf4b8", + "location": "East US", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetEUS/subnets/TestSubnetEUS", + "domainControllerIpAddress": [ + "10.0.0.3", + "10.0.0.4" + ], + "externalAccessIpAddress": "13.64.148.152", + "serviceStatus": "Running" + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", + "certificateNotAfter": "2018-02-15T21:43:21Z", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "provisioningState": "Succeeded" + } + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", + "name": "TestDomainService.com", + "type": "Microsoft.AAD/DomainServices", + "properties": { + "version": 2, + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "TestDomainService.com", + "deploymentId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "syncOwner": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "replicaSets": [ + { + "replicaSetId": "4a619871-0150-41c4-aeb4-0b10deb7940a", + "location": "West US", + "vnetSiteId": "99083198-a39c-469f-972d-59017e7f078c", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS", + "domainControllerIpAddress": [ + "10.0.0.1", + "10.0.0.2" + ], + "serviceStatus": "Running" + }, + { + "location": "East US", + "subnetId": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetEUS/subnets/TestSubnetEUS" + } + ], + "ldapsSettings": { + "ldaps": "Enabled", + "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", + "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", + "certificateNotAfter": "2018-02-15T21:43:21Z", + "externalAccess": "Enabled" + }, + "domainSecuritySettings": { + "ntlmV1": "Enabled", + "tlsV1": "Disabled", + "syncNtlmPasswords": "Enabled" + }, + "filteredSync": "Enabled", + "notificationSettings": { + "notifyGlobalAdmins": "Enabled", + "notifyDcAdmins": "Enabled", + "additionalRecipients": [ + "jicha@microsoft.com", + "caalmont@microsoft.com" + ] + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json new file mode 100644 index 000000000000..fdfe70feff2f --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2021-03-01", + "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", + "resourceGroupName": "OuContainerResourceGroup", + "domainServiceName": "OuContainer.com", + "ouContainerName": "OuContainer1", + "containerAccount": { + "accountName": "AccountName1", + "spn": "Spn1", + "password": "" + } + }, + "responses": { + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", + "name": "OuContainer.com/OuContainer1", + "type": "Microsoft.AAD/DomainServices/OuContainer", + "properties": { + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "OuContainer.com", + "deploymentId": "0FC50BDB-AC45-48E4-BC92-F0651EA0687B", + "containerId": "OuContainer1", + "accounts": [ + { + "accountName": "AccountName1", + "spn": "Spn1" + }, + { + "accountName": "AccountName2", + "spn": "Spn2" + } + ], + "serviceStatus": "Running", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "body": { + "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", + "name": "OuContainer.com/OuContainer1", + "type": "Microsoft.AAD/DomainServices/OuContainer", + "properties": { + "tenantId": "3f8cd22c-7b32-48aa-a01c-f533133b1def", + "domainName": "OuContainer.com", + "deploymentId": "0FC50BDB-AC45-48E4-BC92-F0651EA0687B", + "containerId": "OuContainer1", + "accounts": [ + { + "accountName": "AccountName1", + "spn": "Spn1" + }, + { + "accountName": "AccountName2", + "spn": "Spn2" + } + ], + "serviceStatus": "Running", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json new file mode 100644 index 000000000000..b9a50bae1d69 --- /dev/null +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json @@ -0,0 +1,578 @@ +{ + "swagger": "2.0", + "info": { + "title": "Domain Services Resource Provider", + "description": "The AAD Domain Services API.", + "version": "2021-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Aad/operations": { + "get": { + "tags": [ + "OuContainer" + ], + "description": "Lists all the available OuContainer operations.", + "operationId": "OuContainerOperations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./domainservices.json#/definitions/CloudError" + } + }, + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/OperationEntityListResult" + } + } + }, + "x-ms-examples": { + "Get Operations": { + "$ref": "./examples/GetOperations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer": { + "get": { + "tags": [ + "OuContainer" + ], + "operationId": "OuContainer_List", + "summary": "List of OuContainers in DomainService instance", + "description": "The List of OuContainers in DomainService instance.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./domainservices.json#/definitions/CloudError" + } + }, + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/OuContainerListResult" + } + } + }, + "x-ms-examples": { + "List of OuContainers": { + "$ref": "./examples/ListOuContainers.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}": { + "get": { + "tags": [ + "OuContainer" + ], + "operationId": "OuContainer_Get", + "summary": "Get particular OuContainer in DomainService instance", + "description": "Get OuContainer in DomainService instance.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + }, + { + "$ref": "#/parameters/OuContainerNameParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./domainservices.json#/definitions/CloudError" + } + }, + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/OuContainer" + } + } + }, + "x-ms-examples": { + "List of OuContainers": { + "$ref": "./examples/GetOuContainer.json" + } + } + }, + "put": { + "tags": [ + "OuContainer" + ], + "operationId": "OuContainer_Create", + "summary": "Create OuContainer", + "description": "The Create OuContainer operation creates a new OuContainer under the specified Domain Service instance.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + }, + { + "$ref": "#/parameters/OuContainerNameParameter" + }, + { + "name": "containerAccount", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ContainerAccount" + }, + "description": "Container Account Description." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./domainservices.json#/definitions/CloudError" + } + }, + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/OuContainer" + } + }, + "201": { + "description": "HTTP 201 (Created) if the operation completed successfully.", + "schema": { + "$ref": "#/definitions/OuContainer" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/OuContainer" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create Domain Service": { + "$ref": "./examples/CreateOuContainer.json" + } + } + }, + "delete": { + "tags": [ + "OuContainer" + ], + "operationId": "OuContainer_Delete", + "summary": "Delete OuContainer", + "description": "The Delete OuContainer operation deletes specified OuContainer.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + }, + { + "$ref": "#/parameters/OuContainerNameParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./domainservices.json#/definitions/CloudError" + } + }, + "200": { + "description": "HTTP 200 (OK) if the operation was successful." + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + }, + "204": { + "description": "HTTP 204 (Not Content) should be used if the resource does not exist and the request is well formed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete OuContainer": { + "$ref": "./examples/DeleteOuContainer.json" + } + } + }, + "patch": { + "tags": [ + "OuContainer" + ], + "operationId": "OuContainer_Update", + "summary": "Update OuContainer (PATCH Resource)", + "description": "The Update OuContainer operation can be used to update the existing OuContainers.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DomainServiceNameParameter" + }, + { + "$ref": "#/parameters/OuContainerNameParameter" + }, + { + "name": "containerAccount", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ContainerAccount" + }, + "description": "Container Account Description." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./domainservices.json#/definitions/CloudError" + } + }, + "200": { + "description": "HTTP 200 (OK) if the operation was successful.", + "schema": { + "$ref": "#/definitions/OuContainer" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/OuContainer" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update Domain Service": { + "$ref": "./examples/UpdateOuContainer.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "etag": { + "type": "string", + "description": "Resource etag" + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "x-ms-azure-resource": true + }, + "OuContainerListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OuContainer" + }, + "description": "The list of OuContainer." + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + }, + "description": "The response from the List OuContainer operation." + }, + "OuContainer": { + "description": "Resource for OuContainer.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OuContainerProperties", + "description": "OuContainer properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "OuContainerProperties": { + "description": "Properties of the OuContainer.", + "properties": { + "tenantId": { + "readOnly": true, + "type": "string", + "description": "Azure Active Directory tenant id" + }, + "domainName": { + "readOnly": true, + "type": "string", + "description": "The domain name of Domain Services." + }, + "deploymentId": { + "readOnly": true, + "type": "string", + "description": "The Deployment id" + }, + "containerId": { + "readOnly": true, + "type": "string", + "description": "The OuContainer name" + }, + "accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ContainerAccount", + "description": "Container Account" + }, + "description": "The list of container accounts" + }, + "serviceStatus": { + "readOnly": true, + "type": "string", + "description": "Status of OuContainer instance" + }, + "distinguishedName": { + "readOnly": true, + "type": "string", + "description": "Distinguished Name of OuContainer instance" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The current deployment or provisioning state, which only appears in the response." + } + } + }, + "ContainerAccount": { + "description": "Container Account Description", + "properties": { + "accountName": { + "type": "string", + "description": "The account name" + }, + "spn": { + "type": "string", + "description": "The account spn" + }, + "password": { + "type": "string", + "description": "The account password" + } + } + }, + "OperationEntityListResult": { + "description": "The list of domain service operation response.", + "type": "object", + "properties": { + "value": { + "description": "The list of operations.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationEntity" + } + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + } + }, + "OperationEntity": { + "description": "The operation supported by Domain Services.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplayInfo", + "description": "The operation supported by Domain Services." + }, + "origin": { + "description": "The origin of the operation.", + "type": "string" + } + } + }, + "OperationDisplayInfo": { + "description": "The operation supported by Domain Services.", + "type": "object", + "properties": { + "description": { + "description": "The description of the operation.", + "type": "string" + }, + "operation": { + "description": "The action that users can perform, based on their permission level.", + "type": "string" + }, + "provider": { + "description": "Service provider: Domain Services.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the user's subscription. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "DomainServiceNameParameter": { + "name": "domainServiceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the domain service.", + "x-ms-parameter-location": "method" + }, + "OuContainerNameParameter": { + "name": "ouContainerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the OuContainer.", + "x-ms-parameter-location": "method" + } + } +} From b004efe4af312a4a2ae2fdb19a11fc888940eb19 Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Wed, 14 Sep 2022 16:50:08 -0700 Subject: [PATCH 2/9] Add new API 2022-09-01 --- .../stable/2022-09-01/domainservices.json | 40 ++++++++++++++++++- .../examples/CreateDomainService.json | 2 +- .../examples/CreateOuContainer.json | 2 +- .../examples/DeleteDomainService.json | 2 +- .../examples/DeleteOuContainer.json | 2 +- .../2022-09-01/examples/GetDomainService.json | 2 +- .../2022-09-01/examples/GetOperations.json | 2 +- .../2022-09-01/examples/GetOuContainer.json | 2 +- .../ListDomainServicesByResourceGroup.json | 2 +- .../ListDomainServicesBySubscription.json | 2 +- .../2022-09-01/examples/ListOuContainers.json | 2 +- .../examples/UpdateDomainService.json | 5 ++- .../examples/UpdateOuContainer.json | 5 ++- .../stable/2022-09-01/oucontainer.json | 2 +- .../resource-manager/readme.go.md | 10 +++++ .../domainservices/resource-manager/readme.md | 26 +++++++++++- 16 files changed, 93 insertions(+), 15 deletions(-) diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json index 33eb5ab103fd..acd6a9df4828 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json @@ -3,7 +3,7 @@ "info": { "title": "Domain Services Resource Provider", "description": "The AAD Domain Services API.", - "version": "2021-05-01" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ @@ -498,6 +498,18 @@ "modelAsString": true } }, + "SyncScope": { + "type": "string", + "enum": [ + "All", + "CloudOnly" + ], + "description": "All or CloudOnly, All users in AAD are synced to AAD DS domain or only users actively syncing in the cloud", + "x-ms-enum": { + "name": "FilteredSync", + "modelAsString": true + } + }, "notificationSettings": { "$ref": "#/definitions/NotificationSettings", "description": "Notification Settings" @@ -907,6 +919,32 @@ "name": "KerberosArmoring", "modelAsString": true } + }, + "ldapSigning": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Disabled", + "description": "A flag to determine whether or not LdapSigning is enabled or disabled.", + "x-ms-enum": { + "name": "LdapSigning", + "modelAsString": true + } + }, + "channelBinding": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Disabled", + "description": "A flag to determine whether or not ChannelBinding is enabled or disabled.", + "x-ms-enum": { + "name": "ChannelBinding", + "modelAsString": true + } } } }, diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateDomainService.json index ff0238a0dcae..320f140f2003 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateDomainService.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "TestResourceGroup", "domainServiceName": "TestDomainService.com", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateOuContainer.json index 86df92943039..be6f52e51b0c 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateOuContainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/CreateOuContainer.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "OuContainerResourceGroup", "domainServiceName": "OuContainer.com", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json index d0027523f5aa..b6b40f6b6798 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "TestResourceGroup", "domainServiceName": "TestDomainService.com" diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json index 9f3c63e876a0..4325f34d99c2 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "OuContainerResourceGroup", "domainServiceName": "OuContainer.com", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json index 28d38fb8d575..7dfb3a962d5f 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "TestResourceGroup", "domainServiceName": "TestDomainService.com" diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOperations.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOperations.json index df9537d5c20f..f55e47a00c4c 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOperations.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01" + "api-version": "2022-09-01" }, "responses": { "200": { diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOuContainer.json index fe3e4df2c077..e18b8b32c42f 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOuContainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetOuContainer.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "OuContainerResourceGroup", "domainServiceName": "OuContainer.com", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json index a9733d549191..0c5700cfc3a2 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "TestResourceGroup" }, diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json index 00428ee0e7c9..7e03bdb8075f 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d" }, "responses": { diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListOuContainers.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListOuContainers.json index 472219f272af..03872333b64b 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListOuContainers.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListOuContainers.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "OuContainerResourceGroup", "domainServiceName": "OuContainer.com" diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json index 433a4008f0a9..df15b1667ac4 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "TestResourceGroup", "domainServiceName": "TestDomainService.com", @@ -119,6 +119,9 @@ } }, "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/domainServices/TestDomainService.com?api-version=2022-09-01" + }, "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", "body": { "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json index fdfe70feff2f..2bd88bd18a1c 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-03-01", + "api-version": "2022-09-01", "subscriptionId": "1639790a-76a2-4ac4-98d9-8562f5dfcb4d", "resourceGroupName": "OuContainerResourceGroup", "domainServiceName": "OuContainer.com", @@ -39,6 +39,9 @@ } }, "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/domainServices/TestDomainService.com?api-version=2022-09-01" + }, "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", "body": { "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json index b9a50bae1d69..e4f283819c4a 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json @@ -3,7 +3,7 @@ "info": { "title": "Domain Services Resource Provider", "description": "The AAD Domain Services API.", - "version": "2021-05-01" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/domainservices/resource-manager/readme.go.md b/specification/domainservices/resource-manager/readme.go.md index ecc82a2d9b67..bc42da0427d3 100644 --- a/specification/domainservices/resource-manager/readme.go.md +++ b/specification/domainservices/resource-manager/readme.go.md @@ -21,12 +21,22 @@ azure-arm: true ``` yaml $(go) && $(multiapi) batch: + - tag: package-2022-09 - tag: package-2021-05 - tag: package-2020-01 - tag: package-2017-01 - tag: package-2017-06 ``` +### Tag: package-2022-09 and go + +These settings apply only when `--tag=package-2022-09 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2022-09' && $(go) +output-folder: $(go-sdk-folder)/services/domainservices/mgmt/2022-09-01/$(namespace) +``` + ### Tag: package-2021-05 and go These settings apply only when `--tag=package-2021-05 --go` is specified on the command line. diff --git a/specification/domainservices/resource-manager/readme.md b/specification/domainservices/resource-manager/readme.md index 8abf6ff33e5e..d33be5610979 100644 --- a/specification/domainservices/resource-manager/readme.md +++ b/specification/domainservices/resource-manager/readme.md @@ -26,8 +26,18 @@ These are the global settings for the DomainServices API. ``` yaml openapi-type: arm -tag: package-2021-05 +tag: package-2022-09 ``` +### Tag: package-2022-09 + +These settings apply only when `--tag=package-2022-09` is specified on the command line. + +``` yaml $(tag) == 'package-2022-09' +input-file: +- Microsoft.AAD/stable/2022-09-01/domainservices.json +- Microsoft.AAD/stable/2022-09-01/oucontainer.json +``` + ### Tag: package-2021-05 These settings apply only when `--tag=package-2021-05` is specified on the command line. @@ -132,6 +142,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-domainservices ``` yaml $(java) && $(multiapi) batch: + - tag: package-2022-09 - tag: package-2021-05 - tag: package-2021-03 - tag: package-2020-01 @@ -139,6 +150,19 @@ batch: - tag: package-2017-01 ``` +### Tag: package-2022-09 and java + +These settings apply only when `--tag=package-2022-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2022-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.domainservices.v2022_09_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/domainservices/mgmt-v2022_09_01 +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2021-05 and java These settings apply only when `--tag=package-2021-05 --java` is specified on the command line. From 112456a30f4b5f65b34283e7a0ea66ffcbaa07af Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Mon, 10 Oct 2022 14:26:36 -0700 Subject: [PATCH 3/9] Fixed casing and naming issues --- .../stable/2022-09-01/domainservices.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json index acd6a9df4828..cdd01d0d4ce4 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json @@ -27,7 +27,7 @@ } }, "paths": { - "/providers/Microsoft.AAD/operations": { + "/providers/Microsoft.Aad/operations": { "get": { "tags": [ "DomainServices" @@ -63,7 +63,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AAD/domainServices": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Aad/domainServices": { "get": { "tags": [ "DomainServices" @@ -103,7 +103,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices": { "get": { "tags": [ "DomainServices" @@ -146,7 +146,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}": { "put": { "tags": [ "DomainServices" @@ -498,7 +498,7 @@ "modelAsString": true } }, - "SyncScope": { + "syncScope": { "type": "string", "enum": [ "All", @@ -506,7 +506,7 @@ ], "description": "All or CloudOnly, All users in AAD are synced to AAD DS domain or only users actively syncing in the cloud", "x-ms-enum": { - "name": "FilteredSync", + "name": "SyncScope", "modelAsString": true } }, From cf941eedfb5cdc5ec0c2f667c8a16457f6bc4c57 Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Thu, 13 Oct 2022 16:02:33 -0700 Subject: [PATCH 4/9] Fixing Swagger Violations --- .../stable/2022-09-01/domainservices.json | 27 ++++++++++++++++--- .../2022-09-01/examples/GetDomainService.json | 2 +- .../ListDomainServicesByResourceGroup.json | 2 +- .../ListDomainServicesBySubscription.json | 2 +- .../stable/2022-09-01/oucontainer.json | 5 ++++ 5 files changed, 31 insertions(+), 7 deletions(-) diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json index cdd01d0d4ce4..97b88882c7b4 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json @@ -27,7 +27,7 @@ } }, "paths": { - "/providers/Microsoft.Aad/operations": { + "/providers/Microsoft.AAD/operations": { "get": { "tags": [ "DomainServices" @@ -63,7 +63,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Aad/domainServices": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AAD/domainServices": { "get": { "tags": [ "DomainServices" @@ -103,7 +103,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices": { "get": { "tags": [ "DomainServices" @@ -146,7 +146,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}": { "put": { "tags": [ "DomainServices" @@ -355,6 +355,7 @@ "definitions": { "Resource": { "description": "The Resource model definition.", + "type":"object", "properties": { "id": { "readOnly": true, @@ -400,6 +401,7 @@ }, "DomainService": { "description": "Domain service.", + "type":"object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -414,6 +416,7 @@ ] }, "DomainServiceListResult": { + "type":"object", "properties": { "value": { "type": "array", @@ -432,6 +435,7 @@ }, "DomainServiceProperties": { "description": "Properties of the Domain Service.", + "type":"object", "properties": { "version": { "readOnly": true, @@ -532,6 +536,7 @@ }, "ReplicaSet": { "description": "Replica Set Definition", + "type":"object", "properties": { "replicaSetId": { "readOnly": true, @@ -598,6 +603,7 @@ }, "LdapsSettings": { "description": "Secure LDAP Settings", + "type":"object", "properties": { "ldaps": { "type": "string", @@ -653,6 +659,7 @@ }, "HealthMonitor": { "description": "Health Monitor Description", + "type":"object", "properties": { "id": { "readOnly": true, @@ -673,6 +680,7 @@ }, "HealthAlert": { "description": "Health Alert Description", + "type":"object", "properties": { "id": { "readOnly": true, @@ -715,6 +723,7 @@ }, "NotificationSettings": { "description": "Settings for notification", + "type":"object", "properties": { "notifyGlobalAdmins": { "type": "string", @@ -752,6 +761,7 @@ }, "ResourceForestSettings": { "description": "Settings for Resource Forest", + "type":"object", "properties": { "settings": { "type": "array", @@ -768,6 +778,7 @@ }, "ForestTrust": { "description": "Forest Trust Setting", + "type":"object", "properties": { "trustedDomainFqdn": { "type": "string", @@ -794,6 +805,7 @@ }, "MigrationProperties": { "description": "Migration Properties", + "type":"object", "properties": { "oldSubnetId": { "readOnly": true, @@ -814,6 +826,7 @@ }, "MigrationProgress": { "description": "Migration Progress", + "type":"object", "properties": { "completionPercentage": { "type": "number", @@ -828,6 +841,7 @@ }, "DomainSecuritySettings": { "description": "Domain Security Settings", + "type":"object", "properties": { "ntlmV1": { "type": "string", @@ -950,6 +964,7 @@ }, "ConfigDiagnostics": { "description": "Configuration Diagnostics", + "type":"object", "properties": { "lastExecuted": { "type": "string", @@ -967,6 +982,7 @@ }, "ConfigDiagnosticsValidatorResult": { "description": "Config Diagnostics validator result data", + "type":"object", "properties": { "validatorId": { "type": "string", @@ -1004,6 +1020,7 @@ }, "ConfigDiagnosticsValidatorResultIssue": { "description": "Specific issue for a particular config diagnostics validator", + "type":"object", "properties": { "id": { "type": "string", @@ -1020,6 +1037,7 @@ } }, "CloudError": { + "type":"object", "x-ms-external": true, "properties": { "error": { @@ -1030,6 +1048,7 @@ "description": "An error response from the Domain Services." }, "CloudErrorBody": { + "type":"object", "x-ms-external": true, "properties": { "code": { diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json index 7dfb3a962d5f..b9ed28538d1a 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/GetDomainService.json @@ -30,7 +30,7 @@ ], "externalAccessIpAddress": "13.64.148.151", "serviceStatus": "Running", - "healthLastEvaluated": "2018-02-15T21:43:21Z", + "healthLastEvaluated": "15 Feb 2018 21:43:21 GMT", "healthMonitors": [ { "id": "AADDS501", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json index 0c5700cfc3a2..22612a6631c9 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesByResourceGroup.json @@ -31,7 +31,7 @@ ], "externalAccessIpAddress": "13.64.148.151", "serviceStatus": "Running", - "healthLastEvaluated": "2018-02-15T21:43:21Z", + "healthLastEvaluated": "15 Feb 2018 21:43:04 GMT", "healthMonitors": [ { "id": "AADDS501", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json index 7e03bdb8075f..020e70211182 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/ListDomainServicesBySubscription.json @@ -30,7 +30,7 @@ ], "externalAccessIpAddress": "13.64.148.151", "serviceStatus": "Running", - "healthLastEvaluated": "2018-02-15T21:43:21Z", + "healthLastEvaluated": "15 Feb 2018 21:37:04 GMT", "healthMonitors": [ { "id": "AADDS501", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json index e4f283819c4a..8113f5cf73fb 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json @@ -333,6 +333,7 @@ "definitions": { "Resource": { "description": "The Resource model definition.", + "type":"object", "properties": { "id": { "readOnly": true, @@ -377,6 +378,7 @@ "x-ms-azure-resource": true }, "OuContainerListResult": { + "type":"object", "properties": { "value": { "type": "array", @@ -395,6 +397,7 @@ }, "OuContainer": { "description": "Resource for OuContainer.", + "type":"object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -410,6 +413,7 @@ }, "OuContainerProperties": { "description": "Properties of the OuContainer.", + "type":"object", "properties": { "tenantId": { "readOnly": true, @@ -458,6 +462,7 @@ }, "ContainerAccount": { "description": "Container Account Description", + "type":"object", "properties": { "accountName": { "type": "string", From 900d645c7f09dbf95cc5a4de1b4d3f0040420548 Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Thu, 13 Oct 2022 22:24:28 -0700 Subject: [PATCH 5/9] Fix date-time invalid format --- .../stable/2022-09-01/examples/UpdateDomainService.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json index df15b1667ac4..14c5132beeae 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json @@ -97,7 +97,7 @@ "ldaps": "Enabled", "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", - "certificateNotAfter": "2018-02-15T21:43:21Z", + "certificateNotAfter": "15 Feb 2018 21:43:21 GMT", "externalAccess": "Enabled" }, "domainSecuritySettings": { From ada712af103ad0d009175f9eda7cfdf5d663140c Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Fri, 14 Oct 2022 07:53:29 -0700 Subject: [PATCH 6/9] Fix DateTime attempt 2 --- .../stable/2022-09-01/examples/UpdateDomainService.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json index 14c5132beeae..c3d4c2842985 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json @@ -37,7 +37,7 @@ ] }, "configDiagnostics": { - "lastExecuted": "2021-05-05T12:00:23Z;", + "lastExecuted": "05 May 2021 12:00:23 GMT", "validatorResults": [ { "validatorId": "AADDS-CFG-DIAG-V06", @@ -97,7 +97,7 @@ "ldaps": "Enabled", "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", - "certificateNotAfter": "15 Feb 2018 21:43:21 GMT", + "certificateNotAfter": "2018-15-02T21:43:21Z;", "externalAccess": "Enabled" }, "domainSecuritySettings": { From 6b7a67b594f5c9feb0b6a5d0fe2c6815107ba34b Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Fri, 14 Oct 2022 08:16:37 -0700 Subject: [PATCH 7/9] Fix DateTime attempt 3 --- .../stable/2022-09-01/examples/UpdateDomainService.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json index c3d4c2842985..d929dfd4210d 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json @@ -97,7 +97,7 @@ "ldaps": "Enabled", "publicCertificate": "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...", "certificateThumbprint": "9154A390F0C387D679E0DD040701745CDFED67F3", - "certificateNotAfter": "2018-15-02T21:43:21Z;", + "certificateNotAfter": "2018-02-15T21:43:21Z", "externalAccess": "Enabled" }, "domainSecuritySettings": { From ac61f40a7ded3eede7fa0d4240fe4ab2a757f9d9 Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Fri, 14 Oct 2022 10:04:01 -0700 Subject: [PATCH 8/9] Fix Prettier Check --- .../stable/2022-09-01/domainservices.json | 38 +++++++++---------- .../examples/UpdateDomainService.json | 2 +- .../examples/UpdateOuContainer.json | 2 +- .../stable/2022-09-01/oucontainer.json | 10 ++--- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json index 97b88882c7b4..ed469ecd300f 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/domainservices.json @@ -355,7 +355,7 @@ "definitions": { "Resource": { "description": "The Resource model definition.", - "type":"object", + "type": "object", "properties": { "id": { "readOnly": true, @@ -401,7 +401,7 @@ }, "DomainService": { "description": "Domain service.", - "type":"object", + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -416,7 +416,7 @@ ] }, "DomainServiceListResult": { - "type":"object", + "type": "object", "properties": { "value": { "type": "array", @@ -435,7 +435,7 @@ }, "DomainServiceProperties": { "description": "Properties of the Domain Service.", - "type":"object", + "type": "object", "properties": { "version": { "readOnly": true, @@ -536,7 +536,7 @@ }, "ReplicaSet": { "description": "Replica Set Definition", - "type":"object", + "type": "object", "properties": { "replicaSetId": { "readOnly": true, @@ -603,7 +603,7 @@ }, "LdapsSettings": { "description": "Secure LDAP Settings", - "type":"object", + "type": "object", "properties": { "ldaps": { "type": "string", @@ -659,7 +659,7 @@ }, "HealthMonitor": { "description": "Health Monitor Description", - "type":"object", + "type": "object", "properties": { "id": { "readOnly": true, @@ -680,7 +680,7 @@ }, "HealthAlert": { "description": "Health Alert Description", - "type":"object", + "type": "object", "properties": { "id": { "readOnly": true, @@ -723,7 +723,7 @@ }, "NotificationSettings": { "description": "Settings for notification", - "type":"object", + "type": "object", "properties": { "notifyGlobalAdmins": { "type": "string", @@ -761,7 +761,7 @@ }, "ResourceForestSettings": { "description": "Settings for Resource Forest", - "type":"object", + "type": "object", "properties": { "settings": { "type": "array", @@ -778,7 +778,7 @@ }, "ForestTrust": { "description": "Forest Trust Setting", - "type":"object", + "type": "object", "properties": { "trustedDomainFqdn": { "type": "string", @@ -805,7 +805,7 @@ }, "MigrationProperties": { "description": "Migration Properties", - "type":"object", + "type": "object", "properties": { "oldSubnetId": { "readOnly": true, @@ -826,7 +826,7 @@ }, "MigrationProgress": { "description": "Migration Progress", - "type":"object", + "type": "object", "properties": { "completionPercentage": { "type": "number", @@ -841,7 +841,7 @@ }, "DomainSecuritySettings": { "description": "Domain Security Settings", - "type":"object", + "type": "object", "properties": { "ntlmV1": { "type": "string", @@ -964,7 +964,7 @@ }, "ConfigDiagnostics": { "description": "Configuration Diagnostics", - "type":"object", + "type": "object", "properties": { "lastExecuted": { "type": "string", @@ -982,7 +982,7 @@ }, "ConfigDiagnosticsValidatorResult": { "description": "Config Diagnostics validator result data", - "type":"object", + "type": "object", "properties": { "validatorId": { "type": "string", @@ -1020,7 +1020,7 @@ }, "ConfigDiagnosticsValidatorResultIssue": { "description": "Specific issue for a particular config diagnostics validator", - "type":"object", + "type": "object", "properties": { "id": { "type": "string", @@ -1037,7 +1037,7 @@ } }, "CloudError": { - "type":"object", + "type": "object", "x-ms-external": true, "properties": { "error": { @@ -1048,7 +1048,7 @@ "description": "An error response from the Domain Services." }, "CloudErrorBody": { - "type":"object", + "type": "object", "x-ms-external": true, "properties": { "code": { diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json index d929dfd4210d..48bede672855 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateDomainService.json @@ -121,7 +121,7 @@ "202": { "headers": { "Location": "https://management.azure.com/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/domainServices/TestDomainService.com?api-version=2022-09-01" - }, + }, "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", "body": { "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json index 2bd88bd18a1c..9f07c524d6d3 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/UpdateOuContainer.json @@ -41,7 +41,7 @@ "202": { "headers": { "Location": "https://management.azure.com/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/domainServices/TestDomainService.com?api-version=2022-09-01" - }, + }, "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", "body": { "id": "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/ouContainerResourceGroup/providers/Microsoft.AAD/domainServices/ouContainer.com/ouContainer/ouContainer1", diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json index 8113f5cf73fb..752e1e3691bd 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/oucontainer.json @@ -333,7 +333,7 @@ "definitions": { "Resource": { "description": "The Resource model definition.", - "type":"object", + "type": "object", "properties": { "id": { "readOnly": true, @@ -378,7 +378,7 @@ "x-ms-azure-resource": true }, "OuContainerListResult": { - "type":"object", + "type": "object", "properties": { "value": { "type": "array", @@ -397,7 +397,7 @@ }, "OuContainer": { "description": "Resource for OuContainer.", - "type":"object", + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -413,7 +413,7 @@ }, "OuContainerProperties": { "description": "Properties of the OuContainer.", - "type":"object", + "type": "object", "properties": { "tenantId": { "readOnly": true, @@ -462,7 +462,7 @@ }, "ContainerAccount": { "description": "Container Account Description", - "type":"object", + "type": "object", "properties": { "accountName": { "type": "string", From 709e41494cfcfe4aafac5df9a0e9f3dae2f9ba3c Mon Sep 17 00:00:00 2001 From: ehunter1878 Date: Fri, 28 Oct 2022 09:47:36 -0700 Subject: [PATCH 9/9] Fixing Swagger Violations for LRO --- .../stable/2022-09-01/examples/DeleteDomainService.json | 6 ++++++ .../stable/2022-09-01/examples/DeleteOuContainer.json | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json index b6b40f6b6798..35e7cd139651 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteDomainService.json @@ -7,9 +7,15 @@ }, "responses": { "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/domainServices/TestDomainService.com?api-version=2022-09-01" + }, "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." }, "204": { + "headers": { + "Location": "https://management.azure.com/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/domainServices/TestDomainService.com?api-version=2022-09-01" + }, "description": "HTTP 204 (Not Content) should be used if the resource does not exist and the request is well formed." } } diff --git a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json index 4325f34d99c2..a7cf224cb97b 100644 --- a/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json +++ b/specification/domainservices/resource-manager/Microsoft.AAD/stable/2022-09-01/examples/DeleteOuContainer.json @@ -11,9 +11,15 @@ "description": "HTTP 200 (OK) if the operation was successful." }, "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/domainServices/TestDomainService.com?api-version=2022-09-01" + }, "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." }, "204": { + "headers": { + "Location": "https://management.azure.com/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/domainServices/TestDomainService.com?api-version=2022-09-01" + }, "description": "HTTP 204 (Not Content) should be used if the resource does not exist and the request is well formed." } }